2024-08-22 19:23:55 +08:00
var Cb = Object . defineProperty ; var wb = ( e , t , y ) => t in e ? Cb ( e , t , { enumerable : ! 0 , configurable : ! 0 , writable : ! 0 , value : y } ) : e [ t ] = y ; var xb = ( e , t ) => ( ) => ( t || e ( ( t = { exports : { } } ) . exports , t ) , t . exports ) ; var ep = ( e , t , y ) => wb ( e , typeof t != "symbol" ? t + "" : t , y ) ; import mermaid from "https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs" ; var Nb = xb ( ( exports , module ) => { ( function ( ) { const t = document . createElement ( "link" ) . relList ; if ( t && t . supports && t . supports ( "modulepreload" ) ) return ; for ( const k of document . querySelectorAll ( 'link[rel="modulepreload"]' ) ) n ( k ) ; new MutationObserver ( k => { for ( const L of k ) if ( L . type === "childList" ) for ( const $ of L . addedNodes ) $ . tagName === "LINK" && $ . rel === "modulepreload" && n ( $ ) } ) . observe ( document , { childList : ! 0 , subtree : ! 0 } ) ; function y ( k ) { const L = { } ; return k . integrity && ( L . integrity = k . integrity ) , k . referrerPolicy && ( L . referrerPolicy = k . referrerPolicy ) , k . crossOrigin === "use-credentials" ? L . credentials = "include" : k . crossOrigin === "anonymous" ? L . credentials = "omit" : L . credentials = "same-origin" , L } function n ( k ) { if ( k . ep ) return ; k . ep = ! 0 ; const L = y ( k ) ; fetch ( k . href , L ) } } ) ( ) ; const global$1 = globalThis || void 0 || self ; / * *
2024-08-21 13:12:53 +08:00
* @ vue / shared v3 . 4.38
* ( c ) 2018 - present Yuxi ( Evan ) You and Vue contributors
* @ license MIT
* * //*! #__NO_SIDE_EFFECTS__ */function makeMap(e,t){const y=new Set(e.split(","));return n=>y.has(n)}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),isModelListener=e=>e.startsWith("onUpdate:"),extend$1=Object.assign,remove=(e,t)=>{const y=e.indexOf(t);y>-1&&e.splice(y,1)},hasOwnProperty$g=Object.prototype.hasOwnProperty,hasOwn$1=(e,t)=>hasOwnProperty$g.call(e,t),isArray$2=Array.isArray,isMap$1=e=>toTypeString(e)==="[object Map]",isSet$1=e=>toTypeString(e)==="[object Set]",isDate$1=e=>toTypeString(e)==="[object Date]",isFunction$4=e=>typeof e=="function",isString$3=e=>typeof e=="string",isSymbol$1=e=>typeof e=="symbol",isObject$4=e=>e!==null&&typeof e=="object",isPromise=e=>(isObject$4(e)||isFunction$4(e))&&isFunction$4(e.then)&&isFunction$4(e.catch),objectToString$1=Object.prototype.toString,toTypeString=e=>objectToString$1.call(e),toRawType=e=>toTypeString(e).slice(8,-1),isPlainObject$3=e=>toTypeString(e)==="[object Object]",isIntegerKey=e=>isString$3(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=e=>{const t=Object.create(null);return y=>t[y]||(t[y]=e(y))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(e=>e.replace(camelizeRE,(t,y)=>y?y.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate$1=cacheStringFunction(e=>e.replace(hyphenateRE,"-$1").toLowerCase()),capitalize$1=cacheStringFunction(e=>e.charAt(0).toUpperCase()+e.slice(1)),toHandlerKey=cacheStringFunction(e=>e?`on${capitalize$1(e)}`:""),hasChanged=(e,t)=>!Object.is(e,t),invokeArrayFns=(e,...t)=>{for(let y=0;y<e.length;y++)e[y](...t)},def=(e,t,y,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:y})},looseToNumber=e=>{const t=parseFloat(e);return isNaN(t)?e:t},toNumber$3=e=>{const t=isString$3(e)?Number(e):NaN;return isNaN(t)?e:t};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global$1<"u"?global$1:{});function normalizeStyle(e){if(isArray$2(e)){const t={};for(let y=0;y<e.length;y++){const n=e[y],k=isString$3(n)?parseStringStyle(n):normalizeStyle(n);if(k)for(const L in k)t[L]=k[L]}return t}else if(isString$3(e)||isObject$4(e))return e}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(e){const t={};return e.replace(styleCommentRE,"").split(listDelimiterRE).forEach(y=>{if(y){const n=y.split(propertyDelimiterRE);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function normalizeClass(e){let t="";if(isString$3(e))t=e;else if(isArray$2(e))for(let y=0;y<e.length;y++){const n=normalizeClass(e[y]);n&&(t+=n+" ")}else if(isObject$4(e))for(const y in e)e[y]&&(t+=y+" ");return t.trim()}function normalizeProps(e){if(!e)return null;let{class:t,style:y}=e;return t&&!isString$3(t)&&(e.class=normalizeClass(t)),y&&(e.style=normalizeStyle(y)),e}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(e){return!!e||e===""}function looseCompareArrays(e,t){if(e.length!==t.length)return!1;let y=!0;for(let n=0;y&&n<e.length;n++)y=looseEqual(e[n],t[n]);return y}function looseEqual(e,t){if(e===t)return!0;let y=isDate$1(e),n=isDate$1(t);if(y||n)return y&&n?e.getTime()===t.getTime():!1;if(y=isSymbol$1(e),n=isSymbol$1(t),y||n)return e===t;if(y=isArray$2(e),n=isArray$2(t),y||n)return y&&n?looseCompareArrays(e,t):!1;if(y=isObject$4(e),n=isObject$4(t),y||n){if(!y||!n)return!1;const k=Object.keys(e).length,L=Object.keys(t).length;if(k!==L)return!1;for(const $ in e){const j=e.hasOwnProperty($),V=t.hasOwnProperty($);if(j&&!V||!j&&V||!looseEqual(e[$],t[$]))return!1}}return String(e)===String(t)}function looseIndexOf(e,t){return e.findIndex(y=>looseEqual(y,t))}const isRef$1=e=>!!(e&&e.__v_is
* @ vue / reactivity v3 . 4.38
* ( c ) 2018 - present Yuxi ( Evan ) You and Vue contributors
* @ license MIT
* * / l e t a c t i v e E f f e c t S c o p e ; c l a s s E f f e c t S c o p e { c o n s t r u c t o r ( t = ! 1 ) { t h i s . d e t a c h e d = t , t h i s . _ a c t i v e = ! 0 , t h i s . e f f e c t s = [ ] , t h i s . c l e a n u p s = [ ] , t h i s . p a r e n t = a c t i v e E f f e c t S c o p e , ! t & & a c t i v e E f f e c t S c o p e & & ( t h i s . i n d e x = ( a c t i v e E f f e c t S c o p e . s c o p e s | | ( a c t i v e E f f e c t S c o p e . s c o p e s = [ ] ) ) . p u s h ( t h i s ) - 1 ) } g e t a c t i v e ( ) { r e t u r n t h i s . _ a c t i v e } r u n ( t ) { i f ( t h i s . _ a c t i v e ) { c o n s t y = a c t i v e E f f e c t S c o p e ; t r y { r e t u r n a c t i v e E f f e c t S c o p e = t h i s , t ( ) } f i n a l l y { a c t i v e E f f e c t S c o p e = y } } } o n ( ) { a c t i v e E f f e c t S c o p e = t h i s } o f f ( ) { a c t i v e E f f e c t S c o p e = t h i s . p a r e n t } s t o p ( t ) { i f ( t h i s . _ a c t i v e ) { l e t y , n ; f o r ( y = 0 , n = t h i s . e f f e c t s . l e n g t h ; y < n ; y + + ) t h i s . e f f e c t s [ y ] . s t o p ( ) ; f o r ( y = 0 , n = t h i s . c l e a n u p s . l e n g t h ; y < n ; y + + ) t h i s . c l e a n u p s [ y ] ( ) ; i f ( t h i s . s c o p e s ) f o r ( y = 0 , n = t h i s . s c o p e s . l e n g t h ; y < n ; y + + ) t h i s . s c o p e s [ y ] . s t o p ( ! 0 ) ; i f ( ! t h i s . d e t a c h e d & & t h i s . p a r e n t & & ! t ) { c o n s t k = t h i s . p a r e n t . s c o p e s . p o p ( ) ; k & & k ! = = t h i s & & ( t h i s . p a r e n t . s c o p e s [ t h i s . i n d e x ] = k , k . i n d e x = t h i s . i n d e x ) } t h i s . p a r e n t = v o i d 0 , t h i s . _ a c t i v e = ! 1 } } } f u n c t i o n e f f e c t S c o p e ( e ) { r e t u r n n e w E f f e c t S c o p e ( e ) } f u n c t i o n r e c o r d E f f e c t S c o p e ( e , t = a c t i v e E f f e c t S c o p e ) { t & & t . a c t i v e & & t . e f f e c t s . p u s h ( e ) } f u n c t i o n g e t C u r r e n t S c o p e ( ) { r e t u r n a c t i v e E f f e c t S c o p e } f u n c t i o n o n S c o p e D i s p o s e ( e ) { a c t i v e E f f e c t S c o p e & & a c t i v e E f f e c t S c o p e . c l e a n u p s . p u s h ( e ) } l e t a c t i v e E f f e c t ; c l a s s R e a c t i v e E f f e c t { c o n s t r u c t o r ( t , y , n , k ) { t h i s . f n = t , t h i s . t r i g g e r = y , t h i s . s c h e d u l e r = n , t h i s . a c t i v e = ! 0 , t h i s . d e p s = [ ] , t h i s . _ d i r t y L e v e l = 4 , t h i s . _ t r a c k I d = 0 , t h i s . _ r u n n i n g s = 0 , t h i s . _ s h o u l d S c h e d u l e = ! 1 , t h i s . _ d e p s L e n g t h = 0 , r e c o r d E f f e c t S c o p e ( t h i s , k ) } g e t d i r t y ( ) { i f ( t h i s . _ d i r t y L e v e l = = = 2 | | t h i s . _ d i r t y L e v e l = = = 3 ) { t h i s . _ d i r t y L e v e l = 1 , p a u s e T r a c k i n g ( ) ; f o r ( l e t t = 0 ; t < t h i s . _ d e p s L e n g t h ; t + + ) { c o n s t y = t h i s . d e p s [ t ] ; i f ( y . c o m p u t e d & & ( t r i g g e r C o m p u t e d ( y . c o m p u t e d ) , t h i s . _ d i r t y L e v e l > = 4 ) ) b r e a k } t h i s . _ d i r t y L e v e l = = = 1 & & ( t h i s . _ d i r t y L e v e l = 0 ) , r e s e t T r a c k i n g ( ) } r e t u r n t h i s . _ d i r t y L e v e l > = 4 } s e t d i r t y ( t ) { t h i s . _ d i r t y L e v e l = t ? 4 : 0 } r u n ( ) { i f ( t h i s . _ d i r t y L e v e l = 0 , ! t h i s . a c t i v e ) r e t u r n t h i s . f n ( ) ; l e t t = s h o u l d T r a c k , y = a c t i v e E f f e c t ; t r y { r e t u r n s h o u l d T r a c k = ! 0 , a c t i v e E f f e c t = t h i s , t h i s . _ r u n n i n g s + + , p r e C l e a n u p E f f e c t ( t h i s ) , t h i s . f n ( ) } f i n a l l y { p o s t C l e a n u p E f f e c t ( t h i s ) , t h i s . _ r u n n i n g s - - , a c t i v e E f f e c t = y , s h o u l d T r a c k = t } } s t o p ( ) { t h i s . a c t i v e & & ( p r e C l e a n u p E f f e c t ( t h i s ) , p o s t C l e a n u p E f f e c t ( t h i s ) , t h i s . o n S t o p & & t h i s . o n S t o p ( ) , t h i s . a c t i v e = ! 1 ) } } f u n c t i o n t r i g g e r C o m p u t e d ( e ) { r e t u r n e . v a l u e } f u n c t i o n p r e C l e a n u p E f f e c t ( e ) { e . _ t r a c k I d + + , e . _ d e p s L e n g t h = 0 } f u n c t i o n p o s t C l e a n u p E f f e c t ( e ) { i f ( e . d e p s . l e n g t h > e . _ d e p s L e n g t h ) { f o r ( l e t t = e . _ d e p s L e n g t h ; t < e . d e p s . l e n g t h ; t + + ) c l e a n u p D e p E f f e c t ( e . d e p s [ t ] , e ) ; e . d e p s . l e n g t h = e . _ d e p s L e n g t h } } f u n c t i o n c l e a n u p D e p E f f e c t ( e , t ) { c o n s t y = e . g e t ( t ) ; y ! = = v o i d 0 & & t . _ t r a c k I d ! = = y & & ( e . d e l e t e ( t ) , e . s i z e = = = 0 & & e . c l e a n u p ( ) ) } l e t s h o u l d T r a c k = ! 0 , p a u s e S c h e d u l e S t a c k = 0 ; c o n s t t r a c k S t a c k = [ ] ; f u n c t i o n p a u s e T r a c k i n g ( ) { t r a c k S t a c k . p u s h ( s h o u l d T r a c k ) , s h o u l d T r a c k = ! 1 } f u n c t i o n r e s e t T r a c k i n g ( ) { c o n s t e = t r a c k S t a c k . p o p ( ) ; s h o u l d T r a c k = e = = = v o i d 0 ? ! 0 : e } f u n c t i o n p a u s e S c h e d u l i n g ( ) { p a u s e S c h e d u l e S t a c k + + } f u n c t i o n r e s e t S c h e d u l i n g ( ) { f o r ( p a u s e S c h e d u l e S t a c k - - ; ! p a u s e S c h e d u l e S t a c k & & q u e u e E f f e c t S c h e d u l e r s . l e n g t h ; ) q u e u e E f f e c t S c h e d u l e r s . s h i f t ( ) ( ) } f u n c t i o n t r a c k E f f e c t ( e , t , y ) { i f ( t . g e t ( e ) ! = = e . _ t r a c k I d ) { t . s e t ( e , e . _ t r a c k I d ) ; c o n s t n = e . d e p s [ e . _ d e p s L e n g t h ] ; n ! = = t ? ( n & & c l e a n u p D e p E f f e c t ( n , e ) , e . d e p s [ e . _ d e p s L e n g t h + + ] = t ) : e . _ d e p s L e n g t h + + } } c o n s t q u e u e E f f e c t S c h e d u l e r s = [ ] ; f u n c t i o n t r i g g e r E f f e c t s ( e , t , y ) { p a u s e S c h e d u l i n g ( ) ; f o r ( c o n s t n o f e . k e y s ( ) ) { l e t k ; n . _ d i r t y L e v e l < t & & ( k ? ? ( k = e . g e t ( n ) = = = n . _ t r a c k I d ) ) & & ( n . _ s h o u l d S c h e d u l e | | ( n . _ s h o u l d S c h e d u l e = n . _ d i r t y L e v e l = = = 0 ) , n . _ d i r t y L e v e l = t ) , n . _ s h o u l d S c h e d u l e & & ( k ? ? ( k = e . g e t ( n ) = = = n . _ t r a c k I d ) ) & & ( n . t r i g g e r ( ) , ( ! n . _ r u n n i n g s | | n . a l l o w R e c u r s e ) & & n . _ d i r t y L e v e l ! = = 2 & & ( n . _ s h o u l d S c h e d u l e = ! 1 , n . s c h e d u l e r & & q u e u e E f f e c t S c h e d u l e r s . p u s h ( n . s c h e d u l e r ) ) ) } r e s e t S c h e d u l i n g ( ) } c o n s t c r e a t e D e p = ( e , t ) = > { c o n s t y = n e w M a p ; r e t u r n y . c l e a n u p = e , y . c o m p u t e d = t , y } , t a r g e t M a p = n e w W e a k M a p , I T E R A T E _ K E Y = S y m b o l ( " " ) , M A P _ K E Y _ I T E R A T E _ K E Y = S y m b o l ( " " ) ; f u n c t i o n t r a c k ( e , t , y ) { i f ( s h o u l d T r a c k & & a c t i v e E f f e c t ) { l e t n = t a r g e t M a p . g e t ( e ) ; n | | t a r g e t M a p . s e t ( e , n = n e w M a p ) ; l e t k = n . g e t ( y ) ; k | | n . s e t ( y , k = c r e a t e D e p ( ( ) = > n . d e l e t e ( y ) ) ) , t r a c k E f f e c t ( a c t i v e E f f e c t , k ) } } f u n c t i o n t r i g g e r ( e , t , y , n , k , L ) { c o n s t $ = t a r g e t M a p . g e t ( e ) ; i f ( ! $ ) r e t u r n ; l e t j = [ ] ; i f ( t = = = " c l e a r " ) j = [ . . . $ . v a l u e s ( ) ] ; e l s e i f ( y = = = " l e n g t h " & & i s A r r a y $ 2 ( e ) ) { c o n s t V = N u m b e r ( n ) ; $ . f o r E a c h ( ( z , r e ) = > { ( r e = = = " l e n g t h " | | ! i s S y m b o l $ 1 ( r e ) & & r e > = V ) & & j . p u s h ( z ) } ) } e l s e s w i t c
* @ vue / runtime - core v3 . 4.38
* ( c ) 2018 - present Yuxi ( Evan ) You and Vue contributors
* @ license MIT
* * / c o n s t s t a c k = [ ] ; l e t i s W a r n i n g = ! 1 ; f u n c t i o n w a r n $ 1 ( e , . . . t ) { i f ( i s W a r n i n g ) r e t u r n ; i s W a r n i n g = ! 0 , p a u s e T r a c k i n g ( ) ; c o n s t y = s t a c k . l e n g t h ? s t a c k [ s t a c k . l e n g t h - 1 ] . c o m p o n e n t : n u l l , n = y & & y . a p p C o n t e x t . c o n f i g . w a r n H a n d l e r , k = g e t C o m p o n e n t T r a c e ( ) ; i f ( n ) c a l l W i t h E r r o r H a n d l i n g ( n , y , 1 1 , [ e + t . m a p ( L = > { v a r $ , j ; r e t u r n ( j = ( $ = L . t o S t r i n g ) = = n u l l ? v o i d 0 : $ . c a l l ( L ) ) ! = n u l l ? j : J S O N . s t r i n g i f y ( L ) } ) . j o i n ( " " ) , y & & y . p r o x y , k . m a p ( ( { v n o d e : L } ) = > ` a t < $ { f o r m a t C o m p o n e n t N a m e ( y , L . t y p e ) } > ` ) . j o i n ( `
` ),k]);else{const L=[ ` [ Vue warn ] : $ { e } ` ,...t];k.length&&L.push( `
` ,...formatTrace(k)),console.warn(...L)}resetTracking(),isWarning=!1}function getComponentTrace(){let e=stack[stack.length-1];if(!e)return[];const t=[];for(;e;){const y=t[0];y&&y.vnode===e?y.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function formatTrace(e){const t=[];return e.forEach((y,n)=>{t.push(...n===0?[]:[ `
2024-08-24 19:24:09 +08:00
` ],...formatTraceEntry(y))}),t}function formatTraceEntry({vnode:e,recurseCount:t}){const y=t>0? ` ... ( $ { t } recursive calls ) ` :"",n=e.component?e.component.parent==null:!1,k= ` at < $ { formatComponentName ( e . component , e . type , n ) } ` ,L=">"+y;return e.props?[k,...formatProps(e.props),L]:[k+L]}function formatProps(e){const t=[],y=Object.keys(e);return y.slice(0,3).forEach(n=>{t.push(...formatProp(n,e[n]))}),y.length>3&&t.push(" ..."),t}function formatProp(e,t,y){return isString $ 3(t)?(t=JSON.stringify(t),y?t:[ ` $ { e } = $ { t } ` ]):typeof t=="number"||typeof t=="boolean"||t==null?y?t:[ ` $ { e } = $ { t } ` ]:isRef(t)?(t=formatProp(e,toRaw(t.value),!0),y?t:[ ` $ { e } = Ref < ` ,t,">"]):isFunction $ 4(t)?[ ` $ { e } = fn$ { t . name ? ` < ${ t . name } > ` : "" } ` ]:(t=toRaw(t),y?t:[ ` $ { e } = ` ,t])}function callWithErrorHandling(e,t,y,n){try{return n?e(...n):e()}catch(k){handleError(k,t,y)}}function callWithAsyncErrorHandling(e,t,y,n){if(isFunction $ 4(e)){const k=callWithErrorHandling(e,t,y,n);return k&&isPromise(k)&&k.catch(L=>{handleError(L,t,y)}),k}if(isArray $ 2(e)){const k=[];for(let L=0;L<e.length;L++)k.push(callWithAsyncErrorHandling(e[L],t,y,n));return k}}function handleError(e,t,y,n=!0){const k=t?t.vnode:null;if(t){let L=t.parent;const $ =t.proxy,j= ` https : //vuejs.org/error-reference/#runtime-${y}`;for(;L;){const z=L.ec;if(z){for(let re=0;re<z.length;re++)if(z[re](e,$,j)===!1)return}L=L.parent}const V=t.appContext.config.errorHandler;if(V){pauseTracking(),callWithErrorHandling(V,null,10,[e,$,j]),resetTracking();return}}logError(e,y,k,n)}function logError(e,t,y,n=!0){console.error(e)}let isFlushing=!1,isFlushPending=!1;const queue$2=[];let flushIndex=0;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;function nextTick$1(e){const t=currentFlushPromise||resolvedPromise;return e?t.then(this?e.bind(this):e):t}function findInsertionIndex(e){let t=flushIndex+1,y=queue$2.length;for(;t<y;){const n=t+y>>>1,k=queue$2[n],L=getId(k);L<e||L===e&&k.pre?t=n+1:y=n}return t}function queueJob(e){(!queue$2.length||!queue$2.includes(e,isFlushing&&e.allowRecurse?flushIndex+1:flushIndex))&&(e.id==null?queue$2.push(e):queue$2.splice(findInsertionIndex(e.id),0,e),queueFlush())}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob(e){const t=queue$2.indexOf(e);t>flushIndex&&queue$2.splice(t,1)}function queuePostFlushCb(e){isArray$2(e)?pendingPostFlushCbs.push(...e):(!activePostFlushCbs||!activePostFlushCbs.includes(e,e.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(e),queueFlush()}function flushPreFlushCbs(e,t,y=isFlushing?flushIndex+1:0){for(;y<queue$2.length;y++){const n=queue$2[y];if(n&&n.pre){if(e&&n.id!==e.uid)continue;queue$2.splice(y,1),y--,n()}}}function flushPostFlushCbs(e){if(pendingPostFlushCbs.length){const t=[...new Set(pendingPostFlushCbs)].sort((y,n)=>getId(y)-getId(n));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...t);return}for(activePostFlushCbs=t,postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++){const y=activePostFlushCbs[postFlushIndex];y.active!==!1&&y()}activePostFlushCbs=null,postFlushIndex=0}}const getId=e=>e.id==null?1/0:e.id,comparator=(e,t)=>{const y=getId(e)-getId(t);if(y===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return y};function flushJobs(e){isFlushPending=!1,isFlushing=!0,queue$2.sort(comparator);try{for(flushIndex=0;flushIndex<queue$2.length;flushIndex++){const t=queue$2[flushIndex];t&&t.active!==!1&&callWithErrorHandling(t,t.i,t.i?15:14)}}finally{flushIndex=0,queue$2.length=0,flushPostFlushCbs(),isFlushing=!1,currentFlushPromise=null,(queue$2.length||pendingPostFlushCbs.length)&&flushJobs()}}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(e){const t=currentRenderingInstance;return currentRenderingInstance=e,currentScopeId=e&&e.type.__scopeId||null,t}function pushScopeId(e){currentScopeId=e}function popScopeId(){currentScopeId=null}function withCtx(e,t=currentR
2024-08-21 13:12:53 +08:00
* @ vue / runtime - dom v3 . 4.38
* ( c ) 2018 - present Yuxi ( Evan ) You and Vue contributors
* @ license MIT
2024-08-24 19:24:09 +08:00
* * /const svgNS="http:/ / www . w3 . org / 2000 / svg ",mathmlNS=" http : //www.w3.org/1998/Math/MathML",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(e,t,y)=>{t.insertBefore(e,y||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,y,n)=>{const k=t==="svg"?doc.createElementNS(svgNS,e):t==="mathml"?doc.createElementNS(mathmlNS,e):y?doc.createElement(e,{is:y}):doc.createElement(e);return e==="select"&&n&&n.multiple!=null&&k.setAttribute("multiple",n.multiple),k},createText:e=>doc.createTextNode(e),createComment:e=>doc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>doc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,y,n,k,L){const $=y?y.previousSibling:t.lastChild;if(k&&(k===L||k.nextSibling))for(;t.insertBefore(k.cloneNode(!0),y),!(k===L||!(k=k.nextSibling)););else{templateContainer.innerHTML=n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e;const j=templateContainer.content;if(n==="svg"||n==="mathml"){const V=j.firstChild;for(;V.firstChild;)j.appendChild(V.firstChild);j.removeChild(V)}t.insertBefore(j,y)}return[$?$.nextSibling:t.firstChild,y?y.previousSibling:t.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),Transition=(e,{slots:t})=>h$1(BaseTransition,resolveTransitionProps(e),t);Transition.displayName="Transition";const DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=Transition.props=extend$1({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),callHook=(e,t=[])=>{isArray$2(e)?e.forEach(y=>y(...t)):e&&e(...t)},hasExplicitCallback=e=>e?isArray$2(e)?e.some(t=>t.length>1):e.length>1:!1;function resolveTransitionProps(e){const t={};for(const tr in e)tr in DOMTransitionPropsValidators||(t[tr]=e[tr]);if(e.css===!1)return t;const{name:y="v",type:n,duration:k,enterFromClass:L=`${y}-enter-from`,enterActiveClass:$=`${y}-enter-active`,enterToClass:j=`${y}-enter-to`,appearFromClass:V=L,appearActiveClass:z=$,appearToClass:re=j,leaveFromClass:ie=`${y}-leave-from`,leaveActiveClass:oe=`${y}-leave-active`,leaveToClass:ue=`${y}-leave-to`}=e,de=normalizeDuration(k),pe=de&&de[0],Ie=de&&de[1],{onBeforeEnter:_e,onEnter:Ce,onEnterCancelled:he,onLeave:Ne,onLeaveCancelled:Fe,onBeforeAppear:Ue=_e,onAppear:kt=Ce,onAppearCancelled:Et=he}=t,Ve=(tr,rr,ar)=>{removeTransitionClass(tr,rr?re:j),removeTransitionClass(tr,rr?z:$),ar&&ar()},qe=(tr,rr)=>{tr._isLeaving=!1,removeTransitionClass(tr,ie),removeTransitionClass(tr,ue),removeTransitionClass(tr,oe),rr&&rr()},jt=tr=>(rr,ar)=>{const nr=tr?kt:Ce,ur=()=>Ve(rr,tr,ar);callHook(nr,[rr,ur]),nextFrame(()=>{removeTransitionClass(rr,tr?V:L),addTransitionClass(rr,tr?re:j),hasExplicitCallback(nr)||whenTransitionEnds(rr,n,pe,ur)})};return extend$1(t,{onBeforeEnter(tr){callHook(_e,[tr]),addTransitionClass(tr,L),addTransitionClass(tr,$)},onBeforeAppear(tr){callHook(Ue,[tr]),addTransitionClass(tr,V),addTransitionClass(tr,z)},onEnter:jt(!1),onAppear:jt(!0),onLeave(tr,rr){tr._isLeaving=!0;const ar=()=>qe(tr,rr);addTransitionClass(tr,ie),addTransitionClass(tr,oe),forceReflow(),nextFrame(()=>{tr._isLeaving&&(removeTransitionClass(tr,ie),addTransitionClass(tr,ue),hasExplicitCallback(Ne)||whenTransitionEnds(tr,n,Ie,ar))}),callHook(Ne,[tr,ar])},onEnterCancelled(tr){Ve(tr,!1),callHook(he,[tr])},onAppearCancelled(tr){Ve(tr,!0),callHook(Et,[tr])},onLeaveCancelled(tr){qe(tr),callHook(Fe,[tr])}})}function normalizeDuration(e){if(e==null)return null;if(isObject$4(e))return[NumberOf(e.enter),NumberOf(e.leave)];{const t=NumberOf(e);return[t,t]}}function NumberOf(e){return toNumber$3(e)}function addTransitionClass(e,t){t.split(/\s+/).forEach(y=>y&&e.classList.add(y)),(e[v
2024-08-21 13:12:53 +08:00
` ).map(k=>{const L=k.match(/^ \s +/);if(L===null)return k;const[ $ ]=L;return $ .length>=n.length?k.slice(n.length):k}).join( `
` )}let Tokenizer $ 1=class{constructor(t){this.options=t||defaults $ 2}space(t){const y=this.rules.block.newline.exec(t);if(y&&y[0].length>0)return{type:"space",raw:y[0]}}code(t){const y=this.rules.block.code.exec(t);if(y){const n=y[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:y[0],codeBlockStyle:"indented",text:this.options.pedantic?n:rtrim(n, `
2024-08-22 08:49:17 +08:00
` )}}}fences(t){const y=this.rules.block.fences.exec(t);if(y){const n=y[0],k=indentCodeCompensation(n,y[3]||"");return{type:"code",raw:n,lang:y[2]?y[2].trim().replace(this.rules.inline._escapes," $ 1"):y[2],text:k}}}heading(t){const y=this.rules.block.heading.exec(t);if(y){let n=y[2].trim();if(/# $ /.test(n)){const k=rtrim(n,"#");(this.options.pedantic||!k||/ $ /.test(k))&&(n=k.trim())}return{type:"heading",raw:y[0],depth:y[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){const y=this.rules.block.hr.exec(t);if(y)return{type:"hr",raw:y[0]}}blockquote(t){const y=this.rules.block.blockquote.exec(t);if(y){const n=y[0].replace(/^ *>[ \t ]?/gm,""),k=this.lexer.state.top;this.lexer.state.top=!0;const L=this.lexer.blockTokens(n);return this.lexer.state.top=k,{type:"blockquote",raw:y[0],tokens:L,text:n}}}list(t){let y=this.rules.block.list.exec(t);if(y){let n,k,L, $ ,j,V,z,re,ie,oe,ue,de,pe=y[1].trim();const Ie=pe.length>1,_e={type:"list",raw:"",ordered:Ie,start:Ie?+pe.slice(0,-1):"",loose:!1,items:[]};pe=Ie? ` \ \ d { 1 , 9 } \ \ $ { pe . slice ( - 1 ) } ` : ` \ \ $ { pe } ` ,this.options.pedantic&&(pe=Ie?pe:"[*+-]");const Ce=new RegExp( ` ^ ( { 0 , 3 } $ { pe } ) ( ( ? : [ ] [ ^ \ \ n ] * ) ? ( ? : \ \ n | $ ) ) ` );for(;t&&(de=!1,!(!(y=Ce.exec(t))||this.rules.block.hr.test(t)));){if(n=y[0],t=t.substring(n.length),re=y[2].split( `
2024-08-21 13:12:53 +08:00
` ,1)[0].replace(/^ \t +/,Ne=>" ".repeat(3*Ne.length)),ie=t.split( `
` ,1)[0],this.options.pedantic?( $ =2,ue=re.trimLeft()):( $ =y[2].search(/[^ ]/), $ = $ >4?1: $ ,ue=re.slice( $ ), $ +=y[1].length),V=!1,!re&&/^ * $ /.test(ie)&&(n+=ie+ `
2024-08-24 19:24:09 +08:00
` ,t=t.substring(ie.length+1),de=!0),!de){const Ne=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , $ - 1 ) } } ( ? : [ * + - ] | \ \ d { 1 , 9 } [ . ) ] ) ( ( ? : [ ] [ ^ \ \ n ] * ) ? ( ? : \ \ n | $ ) ) ` ),Fe=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , $ - 1 ) } } ( ( ? : - * ) { 3 , } | ( ? : _ * ) { 3 , } | ( ? : \ \ * * ) { 3 , } ) ( ? : \ \ n + | $ ) ` ),Ue=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , $ - 1 ) } } ( ? : \ ` \` \` |~~~) ` ) , kt = new RegExp ( ` ^ {0, ${ Math . min ( 3 , $ - 1 ) } }# ` ) ; for ( ; t && ( oe = t . split ( `
` ,1)[0],ie=oe,this.options.pedantic&&(ie=ie.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(Ue.test(ie)||kt.test(ie)||Ne.test(ie)||Fe.test(t)));){if(ie.search(/[^ ]/)>= $ ||!ie.trim())ue+= `
` +ie.slice( $ );else{if(V||re.search(/[^ ]/)>=4||Ue.test(re)||kt.test(re)||Fe.test(re))break;ue+= `
2024-08-21 13:12:53 +08:00
` +ie}!V&&!ie.trim()&&(V=!0),n+=oe+ `
2024-08-24 19:24:09 +08:00
` ,t=t.substring(oe.length+1),re=ie.slice( $ )}}_e.loose||(z?_e.loose=!0:/ \n * \n * $ /.test(n)&&(z=!0)),this.options.gfm&&(k=/^ \[ [ xX] \] /.exec(ue),k&&(L=k[0]!=="[ ] ",ue=ue.replace(/^ \[ [ xX] \] +/,""))),_e.items.push({type:"list_item",raw:n,task:!!k,checked:L,loose:!1,text:ue}),_e.raw+=n}_e.items[_e.items.length-1].raw=n.trimRight(),_e.items[_e.items.length-1].text=ue.trimRight(),_e.raw=_e.raw.trimRight();const he=_e.items.length;for(j=0;j<he;j++)if(this.lexer.state.top=!1,_e.items[j].tokens=this.lexer.blockTokens(_e.items[j].text,[]),!_e.loose){const Ne=_e.items[j].tokens.filter(Ue=>Ue.type==="space"),Fe=Ne.length>0&&Ne.some(Ue=>/ \n .* \n /.test(Ue.raw));_e.loose=Fe}if(_e.loose)for(j=0;j<he;j++)_e.items[j].loose=!0;return _e}}html(t){const y=this.rules.block.html.exec(t);if(y){const n={type:"html",raw:y[0],pre:!this.options.sanitizer&&(y[1]==="pre"||y[1]==="script"||y[1]==="style"),text:y[0]};if(this.options.sanitize){const k=this.options.sanitizer?this.options.sanitizer(y[0]):escape $ 4(y[0]);n.type="paragraph",n.text=k,n.tokens=this.lexer.inline(k)}return n}}def(t){const y=this.rules.block.def.exec(t);if(y){const n=y[1].toLowerCase().replace(/ \s +/g," "),k=y[2]?y[2].replace(/^<(.*)> $ /," $ 1").replace(this.rules.inline._escapes," $ 1"):"",L=y[3]?y[3].substring(1,y[3].length-1).replace(this.rules.inline._escapes," $ 1"):y[3];return{type:"def",tag:n,raw:y[0],href:k,title:L}}}table(t){const y=this.rules.block.table.exec(t);if(y){const n={type:"table",header:splitCells(y[1]).map(k=>({text:k})),align:y[2].replace(/^ *| \| * $ /g,"").split(/ * \| */),rows:y[3]&&y[3].trim()?y[3].replace(/ \n [ \t ]* $ /,"").split( `
2024-08-21 13:12:53 +08:00
` ):[]};if(n.header.length===n.align.length){n.raw=y[0];let k=n.align.length,L, $ ,j,V;for(L=0;L<k;L++)/^ *-+: * $ /.test(n.align[L])?n.align[L]="right":/^ *:-+: * $ /.test(n.align[L])?n.align[L]="center":/^ *:-+ * $ /.test(n.align[L])?n.align[L]="left":n.align[L]=null;for(k=n.rows.length,L=0;L<k;L++)n.rows[L]=splitCells(n.rows[L],n.header.length).map(z=>({text:z}));for(k=n.header.length, $ =0; $ <k; $ ++)n.header[ $ ].tokens=this.lexer.inline(n.header[ $ ].text);for(k=n.rows.length, $ =0; $ <k; $ ++)for(V=n.rows[ $ ],j=0;j<V.length;j++)V[j].tokens=this.lexer.inline(V[j].text);return n}}}lheading(t){const y=this.rules.block.lheading.exec(t);if(y)return{type:"heading",raw:y[0],depth:y[2].charAt(0)==="="?1:2,text:y[1],tokens:this.lexer.inline(y[1])}}paragraph(t){const y=this.rules.block.paragraph.exec(t);if(y){const n=y[1].charAt(y[1].length-1)=== `
` ?y[1].slice(0,-1):y[1];return{type:"paragraph",raw:y[0],text:n,tokens:this.lexer.inline(n)}}}text(t){const y=this.rules.block.text.exec(t);if(y)return{type:"text",raw:y[0],text:y[0],tokens:this.lexer.inline(y[0])}}escape(t){const y=this.rules.inline.escape.exec(t);if(y)return{type:"escape",raw:y[0],text:escape $ 4(y[1])}}tag(t){const y=this.rules.inline.tag.exec(t);if(y)return!this.lexer.state.inLink&&/^<a /i.test(y[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^< \/ a>/i.test(y[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)( \s |>)/i.test(y[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^< \/ (pre|code|kbd|script)( \s |>)/i.test(y[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:y[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(y[0]):escape $ 4(y[0]):y[0]}}link(t){const y=this.rules.inline.link.exec(t);if(y){const n=y[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/> $ /.test(n))return;const $ =rtrim(n.slice(0,-1)," \\ ");if((n.length- $ .length)%2===0)return}else{const $ =findClosingBracket(y[2],"()");if( $ >-1){const V=(y[0].indexOf("!")===0?5:4)+y[1].length+ $ ;y[2]=y[2].substring(0, $ ),y[0]=y[0].substring(0,V).trim(),y[3]=""}}let k=y[2],L="";if(this.options.pedantic){const $ =/^([^'"]*[^ \s ]) \s +(['"])(.*) \2 /.exec(k); $ &&(k= $ [1],L= $ [3])}else L=y[3]?y[3].slice(1,-1):"";return k=k.trim(),/^</.test(k)&&(this.options.pedantic&&!/> $ /.test(n)?k=k.slice(1):k=k.slice(1,-1)),outputLink(y,{href:k&&k.replace(this.rules.inline._escapes," $ 1"),title:L&&L.replace(this.rules.inline._escapes," $ 1")},y[0],this.lexer)}}reflink(t,y){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let k=(n[2]||n[1]).replace(/ \s +/g," ");if(k=y[k.toLowerCase()],!k){const L=n[0].charAt(0);return{type:"text",raw:L,text:L}}return outputLink(n,k,n[0],this.lexer)}}emStrong(t,y,n=""){let k=this.rules.inline.emStrong.lDelim.exec(t);if(!k||k[3]&&n.match(/[ \p {L} \p {N}]/u))return;const L=k[1]||k[2]||"";if(!L||L&&(n===""||this.rules.inline.punctuation.exec(n))){const $ =k[0].length-1;let j,V,z= $ ,re=0;const ie=k[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(ie.lastIndex=0,y=y.slice(-1*t.length+ $ );(k=ie.exec(y))!=null;){if(j=k[1]||k[2]||k[3]||k[4]||k[5]||k[6],!j)continue;if(V=j.length,k[3]||k[4]){z+=V;continue}else if((k[5]||k[6])&& $ %3&&!(( $ +V)%3)){re+=V;continue}if(z-=V,z>0)continue;V=Math.min(V,V+z+re);const oe=t.slice(0, $ +k.index+(k[0].length-j.length)+V);if(Math.min( $ ,V)%2){const de=oe.slice(1,-1);return{type:"em",raw:oe,text:de,tokens:this.lexer.inlineTokens(de)}}const ue=oe.slice(2,-2);return{type:"strong",raw:oe,text:ue,tokens:this.lexer.inlineTokens(ue)}}}}codespan(t){const y=this.rules.inline.code.exec(t);if(y){let n=y[2].replace(/ \n /g," ");const k=/[^ ]/.test(n),L=/^ /.test(n)&&/ $ /.test(n);return k&&L&&(n=n.substring(1,n.length-1)),n=escape $ 4(n,!0),{type:"codespan",raw:y[0],text:n}}}br(t){const y=this.rules.inline.br.exec(t);if(y)return{type:"br",raw:y[0]}}del(t){const y=this.rules.inline.del.exec(t);if(y)return{type:"del",raw:y[0],text:y[2],tokens:this.lexer.inlineTokens(y[2])}}autolink(t,y){const n=this.rules.inline.autolink.exec(t);if(n){let k,L;return n[2]==="@"?(k=escape $ 4(this.options.mangle?y(n[1]):n[1]),L="mailto:"+k):(k=escape $ 4(n[1]),L=k),{type:"link",raw:n[0],text:k,href:L,tokens:[{type:"text",raw:k,text:k}]}}}url(t,y){let n;if(n=this.rules.inline.url.exec(t)){let k,L;if(n[2]==="@")k=escape $ 4(this.options.mangle?y(n[0]):n[0]),L="mailto:"+k;else{let $ ;do $ =n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while( $ !==n[0]);k=escape $ 4(n[0]),n[1]==="www."?L="http://"+n[0]:L=n[0]}return{type:"link",raw:n[0],text:k,href:L,tokens:[{type:"text",raw:k,text:k}]}}}inlineText(t,y){const n=this.rules.inline.text.exec(t);if(n){let k;return this.lexer.state.inRawBlock?k=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):escape $ 4(n[0]):n[0]:k=escape $ 4(this.options.smartypants?y(
] ` ).replace("lheading",block $ 2.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const inline $ 1={escape:/^ \\ ([!"# $ %&'()*+, \- ./:;<=>?@ \[ \] \\ ^_ ` { | } ~ ] ) / , autolink : /^<(scheme:[^\s\x00-\x1f<>]*|email)>/ , url : noopTest , tag : "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>" , link : /^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/ , reflink : /^!?\[(label)\]\[(ref)\]/ , nolink : /^!?\[(ref)\](?:\[\])?/ , reflinkSearch : "reflink|nolink(?!\\()" , emStrong : { lDelim : /^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/ , rDelimAst : /^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/ , rDelimUnd : /^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/ } , code : /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/ , br : /^( {2,}|\\)\n(?!\s*$)/ , del : noopTest , text : /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/ , punctuation : /^([\spunctuation])/ } ; inline$1 . _punctuation = "!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~" ; inline$1 . punctuation = edit ( inline$1 . punctuation ) . replace ( /punctuation/g , inline$1 . _punctuation ) . getRegex ( ) ; inline$1 . blockSkip = /\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g ; inline$1 . escapedEmSt = /(?:^|[^\\])(?:\\\\)*\\[*_]/g ; inline$1 . _comment = edit ( block$2 . _comment ) . replace ( "(?:-->|$)" , "-->" ) . getRegex ( ) ; inline$1 . emStrong . lDelim = edit ( inline$1 . emStrong . lDelim ) . replace ( /punct/g , inline$1 . _punctuation ) . getRegex ( ) ; inline$1 . emStrong . rDelimAst = edit ( inline$1 . emStrong . rDelimAst , "g" ) . replace ( /punct/g , inline$1 . _punctuation ) . getRegex ( ) ; inline$1 . emStrong . rDelimUnd = edit ( inline$1 . emStrong . rDelimUnd , "g" ) . replace ( /punct/g , inline$1 . _punctuation ) . getRegex ( ) ; inline$1 . _escapes = /\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g ; inline$1 . _scheme = /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/ ; inline$1 . _email = /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/ ; inline$1 . autolink = edit ( inline$1 . autolink ) . replace ( "scheme" , inline$1 . _scheme ) . replace ( "email" , inline$1 . _email ) . getRegex ( ) ; inline$1 . _attribute = /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/ ; inline$1 . tag = edit ( inline$1 . tag ) . replace ( "comment" , inline$1 . _comment ) . replace ( "attribute" , inline$1 . _attribute ) . getRegex ( ) ; inline$1 . _label = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/ ; inline$1 . _href = /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/ ; inline$1 . _title = /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/ ; inline$1 . link = edit ( inline$1 . link ) . replace ( "label" , inline$1 . _label ) . replace ( "href" , inline$1 . _href ) . replace ( "title" , inline$1 . _title ) . getRegex ( ) ; inline$1 . reflink = edit ( inline$1 . reflink ) . replace ( "label" , inline$1 . _label ) . replace ( "ref" , block$2 . _label ) . getRegex ( ) ; inline$1 . nolink = edit ( inline$1 . nolink ) . replace ( "ref" , block$2 . _label ) . getRegex ( ) ; inline$1 . reflinkSearch = edit ( inline$1 . reflinkSearch , "g" ) . replace ( "reflink" , inline$1 . reflink ) . replace ( "nolink" , inline$1 . nolink ) . getRegex ( ) ; inline$1 . normal = { ... inline$1 } ; inline$1 . pedantic = { ... inline$1 . normal , strong : { start : /^__|\*\*/ , middle : /^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/ , endAst : /\*\*(?!\*)/g , endUnd : /__(?!_)/g } , em : { start : /^_|\*/ , middle : /^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/ , endAst : /\*(?!\*)/g , endUnd : /_(?!_)/g } , link : edit ( /^!?\[(label)\]\((.*?)\)/ ) . replace ( "label" , inline$1 . _label ) . getRegex ( ) , reflink : edit ( /^!?\[(label)\]\s*\[([^\]]*)\]/ ) . replace ( "label" , inline$1 . _label ) . getRegex ( ) } ; inline$1 . gfm = { ... inline$1 . normal , escape : edit ( inline$1 . escape ) . replace ( "])" , "~|])" ) . getRegex ( ) , _extended _email : /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/ , url : / ^ ( ( ? :
` ),this.blockTokens(t,this.tokens);let y;for(;y=this.inlineQueue.shift();)this.inlineTokens(y.src,y.tokens);return this.tokens}blockTokens(t,y=[]){this.options.pedantic?t=t.replace(/ \t /g," ").replace(/^ + $ /gm,""):t=t.replace(/^( *)( \t +)/gm,(j,V,z)=>V+" ".repeat(z.length));let n,k,L, $ ;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(j=>(n=j.call({lexer:this},t,y))?(t=t.substring(n.raw.length),y.push(n),!0):!1))){if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length),n.raw.length===1&&y.length>0?y[y.length-1].raw+= `
` :y.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length),k=y[y.length-1],k&&(k.type==="paragraph"||k.type==="text")?(k.raw+= `
` +n.raw,k.text+= `
` +n.text,this.inlineQueue[this.inlineQueue.length-1].src=k.text):y.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length),k=y[y.length-1],k&&(k.type==="paragraph"||k.type==="text")?(k.raw+= `
` +n.raw,k.text+= `
` +n.raw,this.inlineQueue[this.inlineQueue.length-1].src=k.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),y.push(n);continue}if(L=t,this.options.extensions&&this.options.extensions.startBlock){let j=1/0;const V=t.slice(1);let z;this.options.extensions.startBlock.forEach(function(re){z=re.call({lexer:this},V),typeof z=="number"&&z>=0&&(j=Math.min(j,z))}),j<1/0&&j>=0&&(L=t.substring(0,j+1))}if(this.state.top&&(n=this.tokenizer.paragraph(L))){k=y[y.length-1], $ &&k.type==="paragraph"?(k.raw+= `
` +n.raw,k.text+= `
` +n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=k.text):y.push(n), $ =L.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length),k=y[y.length-1],k&&k.type==="text"?(k.raw+= `
` +n.raw,k.text+= `
` +n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=k.text):y.push(n);continue}if(t){const j="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(j);break}else throw new Error(j)}}return this.state.top=!0,y}inline(t,y=[]){return this.inlineQueue.push({src:t,tokens:y}),y}inlineTokens(t,y=[]){let n,k,L, $ =t,j,V,z;if(this.tokens.links){const re=Object.keys(this.tokens.links);if(re.length>0)for(;(j=this.tokenizer.rules.inline.reflinkSearch.exec( $ ))!=null;)re.includes(j[0].slice(j[0].lastIndexOf("[")+1,-1))&&( $ = $ .slice(0,j.index)+"["+repeatString("a",j[0].length-2)+"]"+ $ .slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(j=this.tokenizer.rules.inline.blockSkip.exec( $ ))!=null;) $ = $ .slice(0,j.index)+"["+repeatString("a",j[0].length-2)+"]"+ $ .slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(j=this.tokenizer.rules.inline.escapedEmSt.exec( $ ))!=null;) $ = $ .slice(0,j.index+j[0].length-2)+"++"+ $ .slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;t;)if(V||(z=""),V=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(re=>(n=re.call({lexer:this},t,y))?(t=t.substring(n.raw.length),y.push(n),!0):!1))){if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),k=y[y.length-1],k&&n.type==="text"&&k.type==="text"?(k.raw+=n.raw,k.text+=n.text):y.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length),k=y[y.length-1],k&&n.type==="text"&&k.type==="text"?(k.raw+=n.raw,k.text+=n.text):y.push(n);continue}if(n=this.tokenizer.emStrong(t, $ ,z)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.autolink(t,mangle)){t=t.substring(n.raw.length),y.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t,mangle))){t=t.substring(n.raw.length),y.push(n);continue}if(L=t,this.options.extensions&&this.options.extensions.startInline){let re=1/0;const ie=t.slice(1);let oe;this.options.extensions.startInline.forEach(function(ue){oe=ue.call({lexer:this},ie),typeof oe=="number"&&oe>=0&&(re=Math.min(re,oe))}),re<1/0&&re>=0&&(L=t.substring(0,re+1))}if(n=this.tokenizer.inlineText(L,smartypants)){t=t.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(z=n.raw.slice(-1)),V=!0,k=y[y.length-1],k&&k.type==="text"?(k.raw+=n.raw,k.text+=n.text):y.push(n);continue}if(t){const re="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(re);break}else throw new Error(re)}}return y}};class Renderer{constructor(t){this.options=t||defaults $ 2}code(t,y,n){const k=(y||"").match(/ \S */)[0];if(this.options.highlight){const L=this.options.highlight(t,k);L!=null&&L!==t&&(n=!0,t=L)}return t=t.replace(/ \n $ /,"")+ `
` ,k?'<pre><code class="'+this.options.langPrefix+escape $ 4(k)+'">'+(n?t:escape $ 4(t,!0))+ ` < / c o d e > < / p r e >
` :"<pre><code>"+(n?t:escape $ 4(t,!0))+ ` < / c o d e > < / p r e >
` }blockquote(t){return ` < blockquote >
$ { t } < / b l o c k q u o t e >
` }html(t){return t}heading(t,y,n,k){if(this.options.headerIds){const L=this.options.headerPrefix+k.slug(n);return ` < h$ { y } id = "${L}" > $ { t } < / h $ { y } >
` }return ` < h$ { y } > $ { t } < / h $ { y } >
` }hr(){return this.options.xhtml? ` < hr / >
` : ` < hr >
` }list(t,y,n){const k=y?"ol":"ul",L=y&&n!==1?' start="'+n+'"':"";return"<"+k+L+ ` >
` +t+"</"+k+ ` >
` }listitem(t){return ` < li > $ { t } < / l i >
` }checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(t){return ` < p > $ { t } < / p >
` }table(t,y){return y&&(y= ` < tbody > $ { y } < / t b o d y > ` ) , ` < t a b l e >
< thead >
` +t+ ` < / t h e a d >
` +y+ ` < / t a b l e >
` }tablerow(t){return ` < tr >
$ { t } < / t r >
` }tablecell(t,y){const n=y.header?"th":"td";return(y.align? ` < $ { n } align = "${y.align}" > ` : ` < $ { n } > ` )+t+ ` < / $ { n } >
2024-08-24 19:24:09 +08:00
` }strong(t){return ` < strong > $ { t } < / s t r o n g > ` } e m ( t ) { r e t u r n ` < e m > $ { t } < / e m > ` } c o d e s p a n ( t ) { r e t u r n ` < c o d e > $ { t } < / c o d e > ` } b r ( ) { r e t u r n t h i s . o p t i o n s . x h t m l ? " < b r / > " : " < b r > " } d e l ( t ) { r e t u r n ` < d e l > $ { t } < / d e l > ` } l i n k ( t , y , n ) { i f ( t = c l e a n U r l ( t h i s . o p t i o n s . s a n i t i z e , t h i s . o p t i o n s . b a s e U r l , t ) , t = = = n u l l ) r e t u r n n ; l e t k = ' < a h r e f = " ' + t + ' " ' ; r e t u r n y & & ( k + = ' t i t l e = " ' + y + ' " ' ) , k + = " > " + n + " < / a > " , k } i m a g e ( t , y , n ) { i f ( t = c l e a n U r l ( t h i s . o p t i o n s . s a n i t i z e , t h i s . o p t i o n s . b a s e U r l , t ) , t = = = n u l l ) r e t u r n n ; l e t k = ` < i m g s r c = " $ { t } " a l t = " $ { n } " ` ; r e t u r n y & & ( k + = ` t i t l e = " $ { y } " ` ) , k + = t h i s . o p t i o n s . x h t m l ? " / > " : " > " , k } t e x t ( t ) { r e t u r n t } } c l a s s T e x t R e n d e r e r { s t r o n g ( t ) { r e t u r n t } e m ( t ) { r e t u r n t } c o d e s p a n ( t ) { r e t u r n t } d e l ( t ) { r e t u r n t } h t m l ( t ) { r e t u r n t } t e x t ( t ) { r e t u r n t } l i n k ( t , y , n ) { r e t u r n " " + n } i m a g e ( t , y , n ) { r e t u r n " " + n } b r ( ) { r e t u r n " " } } c l a s s S l u g g e r { c o n s t r u c t o r ( ) { t h i s . s e e n = { } } s e r i a l i z e ( t ) { r e t u r n t . t o L o w e r C a s e ( ) . t r i m ( ) . r e p l a c e ( / < [ ! \ / a - z ] . * ? > / i g , " " ) . r e p l a c e ( / [ \ u 2 0 0 0 - \ u 2 0 6 F \ u 2 E 0 0 - \ u 2 E 7 F \ \ ' ! " # $ % & ( ) * + , . / : ; < = > ? @ [ \ ] ^ ` { | } ~ ] / g , " " ) . r e p l a c e ( / \ s / g , " - " ) } g e t N e x t S a f e S l u g ( t , y ) { l e t n = t , k = 0 ; i f ( t h i s . s e e n . h a s O w n P r o p e r t y ( n ) ) { k = t h i s . s e e n [ t ] ; d o k + + , n = t + " - " + k ; w h i l e ( t h i s . s e e n . h a s O w n P r o p e r t y ( n ) ) } r e t u r n y | | ( t h i s . s e e n [ t ] = k , t h i s . s e e n [ n ] = 0 ) , n } s l u g ( t , y = { } ) { c o n s t n = t h i s . s e r i a l i z e ( t ) ; r e t u r n t h i s . g e t N e x t S a f e S l u g ( n , y . d r y r u n ) } } l e t P a r s e r $ 2 = c l a s s V 0 { c o n s t r u c t o r ( t ) { t h i s . o p t i o n s = t | | d e f a u l t s $ 2 , t h i s . o p t i o n s . r e n d e r e r = t h i s . o p t i o n s . r e n d e r e r | | n e w R e n d e r e r , t h i s . r e n d e r e r = t h i s . o p t i o n s . r e n d e r e r , t h i s . r e n d e r e r . o p t i o n s = t h i s . o p t i o n s , t h i s . t e x t R e n d e r e r = n e w T e x t R e n d e r e r , t h i s . s l u g g e r = n e w S l u g g e r } s t a t i c p a r s e ( t , y ) { r e t u r n n e w V 0 ( y ) . p a r s e ( t ) } s t a t i c p a r s e I n l i n e ( t , y ) { r e t u r n n e w V 0 ( y ) . p a r s e I n l i n e ( t ) } p a r s e ( t , y = ! 0 ) { l e t n = " " , k , L , $ , j , V , z , r e , i e , o e , u e , d e , p e , I e , _ e , C e , h e , N e , F e , U e ; c o n s t k t = t . l e n g t h ; f o r ( k = 0 ; k < k t ; k + + ) { i f ( u e = t [ k ] , t h i s . o p t i o n s . e x t e n s i o n s & & t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s & & t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s [ u e . t y p e ] & & ( U e = t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s [ u e . t y p e ] . c a l l ( { p a r s e r : t h i s } , u e ) , U e ! = = ! 1 | | ! [ " s p a c e " , " h r " , " h e a d i n g " , " c o d e " , " t a b l e " , " b l o c k q u o t e " , " l i s t " , " h t m l " , " p a r a g r a p h " , " t e x t " ] . i n c l u d e s ( u e . t y p e ) ) ) { n + = U e | | " " ; c o n t i n u e } s w i t c h ( u e . t y p e ) { c a s e " s p a c e " : c o n t i n u e ; c a s e " h r " : { n + = t h i s . r e n d e r e r . h r ( ) ; c o n t i n u e } c a s e " h e a d i n g " : { n + = t h i s . r e n d e r e r . h e a d i n g ( t h i s . p a r s e I n l i n e ( u e . t o k e n s ) , u e . d e p t h , u n e s c a p e $ 2 ( t h i s . p a r s e I n l i n e ( u e . t o k e n s , t h i s . t e x t R e n d e r e r ) ) , t h i s . s l u g g e r ) ; c o n t i n u e } c a s e " c o d e " : { n + = t h i s . r e n d e r e r . c o d e ( u e . t e x t , u e . l a n g , u e . e s c a p e d ) ; c o n t i n u e } c a s e " t a b l e " : { f o r ( i e = " " , r e = " " , j = u e . h e a d e r . l e n g t h , L = 0 ; L < j ; L + + ) r e + = t h i s . r e n d e r e r . t a b l e c e l l ( t h i s . p a r s e I n l i n e ( u e . h e a d e r [ L ] . t o k e n s ) , { h e a d e r : ! 0 , a l i g n : u e . a l i g n [ L ] } ) ; f o r ( i e + = t h i s . r e n d e r e r . t a b l e r o w ( r e ) , o e = " " , j = u e . r o w s . l e n g t h , L = 0 ; L < j ; L + + ) { f o r ( z = u e . r o w s [ L ] , r e = " " , V = z . l e n g t h , $ = 0 ; $ < V ; $ + + ) r e + = t h i s . r e n d e r e r . t a b l e c e l l ( t h i s . p a r s e I n l i n e ( z [ $ ] . t o k e n s ) , { h e a d e r : ! 1 , a l i g n : u e . a l i g n [ $ ] } ) ; o e + = t h i s . r e n d e r e r . t a b l e r o w ( r e ) } n + = t h i s . r e n d e r e r . t a b l e ( i e , o e ) ; c o n t i n u e } c a s e " b l o c k q u o t e " : { o e = t h i s . p a r s e ( u e . t o k e n s ) , n + = t h i s . r e n d e r e r . b l o c k q u o t e ( o e ) ; c o n t i n u e } c a s e " l i s t " : { f o r ( d e = u e . o r d e r e d , p e = u e . s t a r t , I e = u e . l o o s e , j = u e . i t e m s . l e n g t h , o e = " " , L = 0 ; L < j ; L + + ) C e = u e . i t e m s [ L ] , h e = C e . c h e c k e d , N e = C e . t a s k , _ e = " " , C e . t a s k & & ( F e = t h i s . r e n d e r e r . c h e c k b o x ( h e ) , I e ? C e . t o k e n s . l e n g t h > 0 & & C e . t o k e n s [ 0 ] . t y p e = = = " p a r a g r a p h " ? ( C e . t o k e n s [ 0 ] . t e x t = F e + " " + C e . t o k e n s [ 0 ] . t e x t , C e . t o k e n s [ 0 ] . t o k e n s & & C e . t o k e n s [ 0 ] . t o k e n s . l e n g t h > 0 & & C e . t o k e n s [ 0 ] . t o k e n s [ 0 ] . t y p e = = = " t e x t " & & ( C e . t o k e n s [ 0 ] . t o k e n s [ 0 ] . t e x t = F e + " " + C e . t o k e n s [ 0 ] . t o k e n s [ 0 ] . t e x t ) ) : C e . t o k e n s . u n s h i f t ( { t y p e : " t e x t " , t e x t : F e } ) : _ e + = F e ) , _ e + = t h i s . p a r s e ( C e . t o k e n s , I e ) , o e + = t h i s . r e n d e r e r . l i s t i t e m ( _ e , N e , h e ) ; n + = t h i s . r e n d e r e r . l i s t ( o e , d e , p e ) ; c o n t i n u e } c a s e " h t m l " : { n + = t h i s . r e n d e r e r . h t m l ( u e . t e x t ) ; c o n t i n u e } c a s e " p a r a g r a p h " : { n + = t h i s . r e n d e r e r . p a r a g r a p h ( t h i s . p a r s e I n l i n e ( u e . t o k e n s ) ) ; c o n t i n u e } c a s e " t e x t " : { f o r ( o e = u e . t o k e n s ? t h i s . p a r s e I n l i n e ( u e . t o k e n s ) : u e . t e x t ; k + 1 < k t & & t [ k + 1 ] . t y p e = = = " t e x t " ; ) u e = t [ + + k ] , o e + = `
2024-08-22 19:23:55 +08:00
` +(ue.tokens?this.parseInline(ue.tokens):ue.text);n+=y?this.renderer.paragraph(oe):oe;continue}default:{const Et='Token with "'+ue.type+'" type was not found.';if(this.options.silent){console.error(Et);return}else throw new Error(Et)}}}return n}parseInline(t,y){y=y||this.renderer;let n="",k,L, $ ;const j=t.length;for(k=0;k<j;k++){if(L=t[k],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[L.type]&&( $ =this.options.extensions.renderers[L.type].call({parser:this},L), $ !==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(L.type))){n+= $ ||"";continue}switch(L.type){case"escape":{n+=y.text(L.text);break}case"html":{n+=y.html(L.text);break}case"link":{n+=y.link(L.href,L.title,this.parseInline(L.tokens,y));break}case"image":{n+=y.image(L.href,L.title,L.text);break}case"strong":{n+=y.strong(this.parseInline(L.tokens,y));break}case"em":{n+=y.em(this.parseInline(L.tokens,y));break}case"codespan":{n+=y.codespan(L.text);break}case"br":{n+=y.br();break}case"del":{n+=y.del(this.parseInline(L.tokens,y));break}case"text":{n+=y.text(L.text);break}default:{const V='Token with "'+L.type+'" type was not found.';if(this.options.silent){console.error(V);return}else throw new Error(V)}}}return n}};class Hooks{constructor(t){this.options=t||defaults $ 2}preprocess(t){return t}postprocess(t){return t}}ep(Hooks,"passThroughHooks",new Set(["preprocess","postprocess"]));function onError(e,t,y){return n=>{if(n.message+= `
2024-08-24 19:24:09 +08:00
Please report this to https : //github.com/markedjs/marked.`,e){const k="<p>An error occurred:</p><pre>"+escape$4(n.message+"",!0)+"</pre>";if(t)return Promise.resolve(k);if(y){y(null,k);return}return k}if(t)return Promise.reject(n);if(y){y(n);return}throw n}}function parseMarkdown(e,t){return(y,n,k)=>{typeof n=="function"&&(k=n,n=null);const L={...n};n={...marked.defaults,...L};const $=onError(n.silent,n.async,k);if(typeof y>"u"||y===null)return $(new Error("marked(): input parameter is undefined or null"));if(typeof y!="string")return $(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(y)+", string expected"));if(checkSanitizeDeprecation(n),n.hooks&&(n.hooks.options=n),k){const j=n.highlight;let V;try{n.hooks&&(y=n.hooks.preprocess(y)),V=e(y,n)}catch(ie){return $(ie)}const z=function(ie){let oe;if(!ie)try{n.walkTokens&&marked.walkTokens(V,n.walkTokens),oe=t(V,n),n.hooks&&(oe=n.hooks.postprocess(oe))}catch(ue){ie=ue}return n.highlight=j,ie?$(ie):k(null,oe)};if(!j||j.length<3||(delete n.highlight,!V.length))return z();let re=0;marked.walkTokens(V,function(ie){ie.type==="code"&&(re++,setTimeout(()=>{j(ie.text,ie.lang,function(oe,ue){if(oe)return z(oe);ue!=null&&ue!==ie.text&&(ie.text=ue,ie.escaped=!0),re--,re===0&&z()})},0))}),re===0&&z();return}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(y):y).then(j=>e(j,n)).then(j=>n.walkTokens?Promise.all(marked.walkTokens(j,n.walkTokens)).then(()=>j):j).then(j=>t(j,n)).then(j=>n.hooks?n.hooks.postprocess(j):j).catch($);try{n.hooks&&(y=n.hooks.preprocess(y));const j=e(y,n);n.walkTokens&&marked.walkTokens(j,n.walkTokens);let V=t(j,n);return n.hooks&&(V=n.hooks.postprocess(V)),V}catch(j){return $(j)}}}function marked(e,t,y){return parseMarkdown(Lexer$1.lex,Parser$2.parse)(e,t,y)}marked.options=marked.setOptions=function(e){return marked.defaults={...marked.defaults,...e},changeDefaults(marked.defaults),marked};marked.getDefaults=getDefaults;marked.defaults=defaults$2;marked.use=function(...e){const t=marked.defaults.extensions||{renderers:{},childTokens:{}};e.forEach(y=>{const n={...y};if(n.async=marked.defaults.async||n.async||!1,y.extensions&&(y.extensions.forEach(k=>{if(!k.name)throw new Error("extension name required");if(k.renderer){const L=t.renderers[k.name];L?t.renderers[k.name]=function(...$){let j=k.renderer.apply(this,$);return j===!1&&(j=L.apply(this,$)),j}:t.renderers[k.name]=k.renderer}if(k.tokenizer){if(!k.level||k.level!=="block"&&k.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");t[k.level]?t[k.level].unshift(k.tokenizer):t[k.level]=[k.tokenizer],k.start&&(k.level==="block"?t.startBlock?t.startBlock.push(k.start):t.startBlock=[k.start]:k.level==="inline"&&(t.startInline?t.startInline.push(k.start):t.startInline=[k.start]))}k.childTokens&&(t.childTokens[k.name]=k.childTokens)}),n.extensions=t),y.renderer){const k=marked.defaults.renderer||new Renderer;for(const L in y.renderer){const $=k[L];k[L]=(...j)=>{let V=y.renderer[L].apply(k,j);return V===!1&&(V=$.apply(k,j)),V}}n.renderer=k}if(y.tokenizer){const k=marked.defaults.tokenizer||new Tokenizer$1;for(const L in y.tokenizer){const $=k[L];k[L]=(...j)=>{let V=y.tokenizer[L].apply(k,j);return V===!1&&(V=$.apply(k,j)),V}}n.tokenizer=k}if(y.hooks){const k=marked.defaults.hooks||new Hooks;for(const L in y.hooks){const $=k[L];Hooks.passThroughHooks.has(L)?k[L]=j=>{if(marked.defaults.async)return Promise.resolve(y.hooks[L].call(k,j)).then(z=>$.call(k,z));const V=y.hooks[L].call(k,j);return $.call(k,V)}:k[L]=(...j)=>{let V=y.hooks[L].apply(k,j);return V===!1&&(V=$.apply(k,j)),V}}n.hooks=k}if(y.walkTokens){const k=marked.defaults.walkTokens;n.walkTokens=function(L){let $=[];return $.push(y.walkTokens.call(this,L)),k&&($=$.concat(k.call(this,L))),$}}marked.setOptions(n)})};marked.walkTokens=function(e,t){let y=[];for(const n of e)switch(y=y.concat(t.call(marked,n)),n.type){case"table":{for(const k of n.header)y=y.concat(marked.walkTokens(k.tokens,t));for(const k of n.rows)for(const L of k)y=y.concat(marked.walkTokens(L.tokens,t));break}case"list":{y=y.con
2024-08-21 13:12:53 +08:00
b ` .split(/ \n /).length!=3?function( $ e){for(var er=0,ir=[],lr= $ e.length;er<=lr;){var dr= $ e.indexOf( `
2024-08-24 19:24:09 +08:00
` ,er);dr==-1&&(dr= $ e.length);var $ r= $ e.slice(er, $ e.charAt(dr-1)==" \r "?dr-1:dr),Zr= $ r.indexOf(" \r ");Zr!=-1?(ir.push( $ r.slice(0,Zr)),er+=Zr+1):(ir.push( $ r),er=dr+1)}return ir}:function( $ e){return $ e.split(/ \r \n ?| \n /)},Zn=window.getSelection?function( $ e){try{return $ e.selectionStart!= $ e.selectionEnd}catch{return!1}}:function( $ e){var er;try{er= $ e.ownerDocument.selection.createRange()}catch{}return!er||er.parentElement()!= $ e?!1:er.compareEndPoints("StartToEnd",er)!=0},hn=function(){var $ e=nr("div");return"oncopy"in $ e?!0:( $ e.setAttribute("oncopy","return;"),typeof $ e.oncopy=="function")}(),Ln=null;function Vi( $ e){if(Ln!=null)return Ln;var er=ar( $ e,nr("span","x")),ir=er.getBoundingClientRect(),lr=cr(er,0,1).getBoundingClientRect();return Ln=Math.abs(ir.left-lr.left)>1}var Wi={},pa={};function Ki( $ e,er){arguments.length>2&&(er.dependencies=Array.prototype.slice.call(arguments,2)),Wi[ $ e]=er}function Yo( $ e,er){pa[ $ e]=er}function Eo( $ e){if(typeof $ e=="string"&&pa.hasOwnProperty( $ e)) $ e=pa[ $ e];else if( $ e&&typeof $ e.name=="string"&&pa.hasOwnProperty( $ e.name)){var er=pa[ $ e.name];typeof er=="string"&&(er={name:er}), $ e=Qr(er, $ e), $ e.name=er.name}else{if(typeof $ e=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ xml $ /.test( $ e))return Eo("application/xml");if(typeof $ e=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ json $ /.test( $ e))return Eo("application/json")}return typeof $ e=="string"?{name: $ e}: $ e||{name:"null"}}function Fo( $ e,er){er=Eo(er);var ir=Wi[er.name];if(!ir)return Fo( $ e,"text/plain");var lr=ir( $ e,er);if(hs.hasOwnProperty(er.name)){var dr=hs[er.name];for(var $ r in dr)dr.hasOwnProperty( $ r)&&(lr.hasOwnProperty( $ r)&&(lr["_"+ $ r]=lr[ $ r]),lr[ $ r]=dr[ $ r])}if(lr.name=er.name,er.helperType&&(lr.helperType=er.helperType),er.modeProps)for(var Zr in er.modeProps)lr[Zr]=er.modeProps[Zr];return lr}var hs={};function An( $ e,er){var ir=hs.hasOwnProperty( $ e)?hs[ $ e]:hs[ $ e]={};gr(er,ir)}function Uo( $ e,er){if(er===!0)return er;if( $ e.copyState)return $ e.copyState(er);var ir={};for(var lr in er){var dr=er[lr];dr instanceof Array&&(dr=dr.concat([])),ir[lr]=dr}return ir}function cu( $ e,er){for(var ir; $ e.innerMode&&(ir= $ e.innerMode(er),!(!ir||ir.mode== $ e));)er=ir.state, $ e=ir.mode;return ir||{mode: $ e,state:er}}function Io( $ e,er,ir){return $ e.startState? $ e.startState(er,ir):!0}var vu=function( $ e,er,ir){this.pos=this.start=0,this.string= $ e,this.tabSize=er||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ir};vu.prototype.eol=function(){return this.pos>=this.string.length},vu.prototype.sol=function(){return this.pos==this.lineStart},vu.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},vu.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},vu.prototype.eat=function( $ e){var er=this.string.charAt(this.pos),ir;if(typeof $ e=="string"?ir=er== $ e:ir=er&&( $ e.test? $ e.test(er): $ e(er)),ir)return++this.pos,er},vu.prototype.eatWhile=function( $ e){for(var er=this.pos;this.eat( $ e););return this.pos>er},vu.prototype.eatSpace=function(){for(var $ e=this.pos;/[ \s \u 00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos> $ e},vu.prototype.skipToEnd=function(){this.pos=this.string.length},vu.prototype.skipTo=function( $ e){var er=this.string.indexOf( $ e,this.pos);if(er>-1)return this.pos=er,!0},vu.prototype.backUp=function( $ e){this.pos-= $ e},vu.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=jr(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?jr(this.string,this.lineStart,this.tabSize):0)},vu.prototype.indentation=function(){return jr(this.string,null,this.tabSize)-(this.lineStart?jr(this.string,this.lineStart,this.tabSize):0)},vu.prototype.match=function( $ e,er,ir){if(typeof $ e=="string"){var lr=function(Zr){return ir?Zr.toLowerCase():Zr},dr=this.string.substr(this.pos, $ e.length);if(lr(dr)==lr( $ e))return er!==!1&&(this.pos+= $ e.length),!0}else{var $ r=this.string.slice(this.pos).match( $ e);return $ r&& $ r.index>0?null:( $ r&&er!==!1&&(this.pos+= $ r[0].length), $ r)}},vu.prototype.current=funct
` ?(Hl=io.appendChild(nr("span",gs[0]==" \r "?"␍":"","cm-invalidchar")),Hl.setAttribute("cm-text",gs[0]), $ e.col+=1):(Hl= $ e.cm.options.specialCharPlaceholder(gs[0]),Hl.setAttribute("cm-text",gs[0]),V&&z<9?io.appendChild(nr("span",[Hl])):io.appendChild(Hl), $ e.col+=1); $ e.map.push( $ e.pos, $ e.pos+1,Hl), $ e.pos++}}if( $ e.trailingSpace=Hn.charCodeAt(er.length-1)==32,ir||lr||dr||ma|| $ r||Zr){var gu=ir||"";lr&&(gu+=lr),dr&&(gu+=dr);var vs=nr("span",[io],gu, $ r);if(Zr)for(var pc in Zr)Zr.hasOwnProperty(pc)&&pc!="style"&&pc!="class"&&vs.setAttribute(pc,Zr[pc]);return $ e.content.appendChild(vs)} $ e.content.appendChild(io)}}function Fm( $ e,er){if( $ e.length>1&&!/ /.test( $ e))return $ e;for(var ir=er,lr="",dr=0;dr< $ e.length;dr++){var $ r= $ e.charAt(dr); $ r==" "&&ir&&(dr== $ e.length-1|| $ e.charCodeAt(dr+1)==32)&&( $ r=" "),lr+= $ r,ir= $ r==" "}return lr}function rp( $ e,er){return function(ir,lr,dr, $ r,Zr,Hn,mi){dr=dr?dr+" cm-force-border":"cm-force-border";for(var ma=ir.pos,io=ma+lr.length;;){for(var ms=void 0,gs=0;gs<er.length&&(ms=er[gs],!(ms.to>ma&&ms.from<=ma));gs++);if(ms.to>=io)return $ e(ir,lr,dr, $ r,Zr,Hn,mi); $ e(ir,lr.slice(0,ms.to-ma),dr, $ r,null,Hn,mi), $ r=null,lr=lr.slice(ms.to-ma),ma=ms.to}}}function zf( $ e,er,ir,lr){var dr=!lr&&ir.widgetNode;dr&& $ e.map.push( $ e.pos, $ e.pos+er,dr),!lr&& $ e.cm.display.input.needsContentAttribute&&(dr||(dr= $ e.content.appendChild(document.createElement("span"))),dr.setAttribute("cm-marker",ir.id)),dr&&( $ e.cm.display.input.setUneditable(dr), $ e.content.appendChild(dr)), $ e.pos+=er, $ e.trailingSpace=!1}function Um( $ e,er,ir){var lr= $ e.markedSpans,dr= $ e.text, $ r=0;if(!lr){for(var Zr=1;Zr<ir.length;Zr+=2)er.addToken(er,dr.slice( $ r, $ r=ir[Zr]),Wd(ir[Zr+1],er.cm.options));return}for(var Hn=dr.length,mi=0,ma=1,io="",ms,gs,Cs=0,Js,Hl,sl,pu,gu;;){if(Cs==mi){Js=Hl=sl=gs="",gu=null,pu=null,Cs=1/0;for(var vs=[],pc=void 0,vc=0;vc<lr.length;++vc){var $ u=lr[vc],dc= $ u.marker;if(dc.type=="bookmark"&& $ u.from==mi&&dc.widgetNode)vs.push(dc);else if( $ u.from<=mi&&( $ u.to==null|| $ u.to>mi||dc.collapsed&& $ u.to==mi&& $ u.from==mi)){if( $ u.to!=null&& $ u.to!=mi&&Cs> $ u.to&&(Cs= $ u.to,Hl=""),dc.className&&(Js+=" "+dc.className),dc.css&&(gs=(gs?gs+";":"")+dc.css),dc.startStyle&& $ u.from==mi&&(sl+=" "+dc.startStyle),dc.endStyle&& $ u.to==Cs&&(pc||(pc=[])).push(dc.endStyle, $ u.to),dc.title&&((gu||(gu={})).title=dc.title),dc.attributes)for(var zc in dc.attributes)(gu||(gu={}))[zc]=dc.attributes[zc];dc.collapsed&&(!pu||Gc(pu.marker,dc)<0)&&(pu= $ u)}else $ u.from>mi&&Cs> $ u.from&&(Cs= $ u.from)}if(pc)for(var Vd=0;Vd<pc.length;Vd+=2)pc[Vd+1]==Cs&&(Hl+=" "+pc[Vd]);if(!pu||pu.from==mi)for(var co=0;co<vs.length;++co)zf(er,0,vs[co]);if(pu&&(pu.from||0)==mi){if(zf(er,(pu.to==null?Hn+1:pu.to)-mi,pu.marker,pu.from==null),pu.to==null)return;pu.to==mi&&(pu=!1)}}if(mi>=Hn)break;for(var rl=Math.min(Hn,Cs);;){if(io){var Ju=mi+io.length;if(!pu){var jc=Ju>rl?io.slice(0,rl-mi):io;er.addToken(er,jc,ms?ms+Js:Js,sl,mi+jc.length==Cs?Hl:"",gs,gu)}if(Ju>=rl){io=io.slice(rl-mi),mi=rl;break}mi=Ju,sl=""}io=dr.slice( $ r, $ r=ir[ma++]),ms=Wd(ir[ma++],er.cm.options)}}}function yh( $ e,er,ir){this.line=er,this.rest=If(er),this.size=this.rest?kn(Wr(this.rest))-ir+1:1,this.node=this.text=null,this.hidden=tp( $ e,er)}function Om( $ e,er,ir){for(var lr=[],dr, $ r=er; $ r<ir; $ r=dr){var Zr=new yh( $ e.doc,Ul( $ e.doc, $ r), $ r);dr= $ r+Zr.size,lr.push(Zr)}return lr}var kp=null;function Hh( $ e){kp?kp.ops.push( $ e): $ e.ownsGroup=kp={ops:[ $ e],delayedCallbacks:[]}}function Yh( $ e){var er= $ e.delayedCallbacks,ir=0;do{for(;ir<er.length;ir++)er[ir].call(null);for(var lr=0;lr< $ e.ops.length;lr++){var dr= $ e.ops[lr];if(dr.cursorActivityHandlers)for(;dr.cursorActivityCalled<dr.cursorActivityHandlers.length;)dr.cursorActivityHandlers[dr.cursorActivityCalled++].call(null,dr.cm)}}while(ir<er.length)}function zh( $ e,er){var ir= $ e.ownsGroup;if(ir)try{Yh(ir)}finally{kp=null,er(ir)}}var Gp=null;function np( $ e,er){var ir=na( $ e,er);if(ir.length){var lr=Array.prototype.slice.call(arguments,2),dr;kp?dr=kp.delayedCallbacks:Gp?dr=Gp:(dr=Gp=[],setTimeout(Rh,0));for(var $ r=function(Hn){dr.push(function(){return ir[Hn].apply(null,lr)})},Zr=0;Zr<ir.length;++Zr) $ r(
2024-08-21 13:12:53 +08:00
top : ` +pc+"px; width: "+(vc??mi-vs)+ ` px ;
2024-08-24 19:24:09 +08:00
height : ` +( $ u-pc)+"px"))}function ms(vs,pc,vc){var $ u=Ul(dr,vs),dc= $ u.text.length,zc,Vd;function co(jc,Wc){return Yl( $ e,ml(vs,jc),"div", $ u,Wc)}function rl(jc,Wc,Xd){var yd=zd( $ e, $ u,null,jc),kd=Wc=="ltr"==(Xd=="after")?"left":"right",Ld=Xd=="after"?yd.begin:yd.end-(/ \s /.test( $ u.text.charAt(yd.end-1))?2:1);return co(Ld,kd)[kd]}var Ju=qa( $ u,dr.direction);return On(Ju,pc||0,vc??dc,function(jc,Wc,Xd,yd){var kd=Xd=="ltr",Ld=co(jc,kd?"left":"right"), $ d=co(Wc-1,kd?"right":"left"), $ c=pc==null&&jc==0,Xc=vc==null&&Wc==dc,Vp=yd==0,Tm=!Ju||yd==Ju.length-1;if( $ d.top-Ld.top<=3){var Hp=(ma? $ c:Xc)&&Vp,u0=(ma?Xc: $ c)&&Tm,Lm=Hp?Hn:(kd?Ld: $ d).left,mh=u0?mi:(kd? $ d:Ld).right;io(Lm,Ld.top,mh-Lm,Ld.bottom)}else{var Ym,sf,o0,h0;kd?(Ym=ma&& $ c&&Vp?Hn:Ld.left,sf=ma?mi:rl(jc,Xd,"before"),o0=ma?Hn:rl(Wc,Xd,"after"),h0=ma&&Xc&&Tm?mi: $ d.right):(Ym=ma?rl(jc,Xd,"before"):Hn,sf=!ma&& $ c&&Vp?mi:Ld.right,o0=!ma&&Xc&&Tm?Hn: $ d.left,h0=ma?rl(Wc,Xd,"after"):mi),io(Ym,Ld.top,sf-Ym,Ld.bottom),Ld.bottom< $ d.top&&io(Hn,Ld.bottom,null, $ d.top),io(o0, $ d.top,h0-o0, $ d.bottom)}(!zc||Kf(Ld,zc)<0)&&(zc=Ld),Kf( $ d,zc)<0&&(zc= $ d),(!Vd||Kf(Ld,Vd)<0)&&(Vd=Ld),Kf( $ d,Vd)<0&&(Vd= $ d)}),{start:zc,end:Vd}}var gs=er.from(),Cs=er.to();if(gs.line==Cs.line)ms(gs.line,gs.ch,Cs.ch);else{var Js=Ul(dr,gs.line),Hl=Ul(dr,Cs.line),sl=Bd(Js)==Bd(Hl),pu=ms(gs.line,gs.ch,sl?Js.text.length+1:null).end,gu=ms(Cs.line,sl?0:null,Cs.ch).start;sl&&(pu.top<gu.top-2?(io(pu.right,pu.top,null,pu.bottom),io(Hn,gu.top,gu.left,gu.bottom)):io(pu.right,pu.top,gu.left-pu.right,pu.bottom)),pu.bottom<gu.top&&io(Hn,pu.bottom,null,gu.top)}ir.appendChild( $ r)}function Os( $ e){if( $ e.state.focused){var er= $ e.display;clearInterval(er.blinker);var ir=!0;er.cursorDiv.style.visibility="", $ e.options.cursorBlinkRate>0?er.blinker=setInterval(function(){ $ e.hasFocus()||Ao( $ e),er.cursorDiv.style.visibility=(ir=!ir)?"":"hidden"}, $ e.options.cursorBlinkRate): $ e.options.cursorBlinkRate<0&&(er.cursorDiv.style.visibility="hidden")}}function os( $ e){ $ e.hasFocus()||( $ e.display.input.focus(), $ e.state.focused||Do( $ e))}function Co( $ e){ $ e.state.delayingBlurEvent=!0,setTimeout(function(){ $ e.state.delayingBlurEvent&&( $ e.state.delayingBlurEvent=!1, $ e.state.focused&&Ao( $ e))},100)}function Do( $ e,er){ $ e.state.delayingBlurEvent&&! $ e.state.draggingText&&( $ e.state.delayingBlurEvent=!1), $ e.options.readOnly!="nocursor"&&( $ e.state.focused||(Ns( $ e,"focus", $ e,er), $ e.state.focused=!0,Er( $ e.display.wrapper,"CodeMirror-focused"),! $ e.curOp&& $ e.display.selForContextMenu!= $ e.doc.sel&&( $ e.display.input.reset(),re&&setTimeout(function(){return $ e.display.input.reset(!0)},20)), $ e.display.input.receivedFocus()),Os( $ e))}function Ao( $ e,er){ $ e.state.delayingBlurEvent||( $ e.state.focused&&(Ns( $ e,"blur", $ e,er), $ e.state.focused=!1,tr( $ e.display.wrapper,"CodeMirror-focused")),clearInterval( $ e.display.blinker),setTimeout(function(){ $ e.state.focused||( $ e.display.shift=!1)},150))}function eo( $ e){for(var er= $ e.display,ir=er.lineDiv.offsetTop,lr=Math.max(0,er.scroller.getBoundingClientRect().top),dr=er.lineDiv.getBoundingClientRect().top, $ r=0,Zr=0;Zr<er.view.length;Zr++){var Hn=er.view[Zr],mi= $ e.options.lineWrapping,ma=void 0,io=0;if(!Hn.hidden){if(dr+=Hn.line.height,V&&z<8){var ms=Hn.node.offsetTop+Hn.node.offsetHeight;ma=ms-ir,ir=ms}else{var gs=Hn.node.getBoundingClientRect();ma=gs.bottom-gs.top,!mi&&Hn.text.firstChild&&(io=Hn.text.firstChild.getBoundingClientRect().right-gs.left-1)}var Cs=Hn.line.height-ma;if((Cs>.005||Cs<-.005)&&(dr<lr&&( $ r-=Cs),Ku(Hn.line,ma),So(Hn.line),Hn.rest))for(var Js=0;Js<Hn.rest.length;Js++)So(Hn.rest[Js]);if(io> $ e.display.sizerWidth){var Hl=Math.ceil(io/Wf( $ e.display));Hl> $ e.display.maxLineLength&&( $ e.display.maxLineLength=Hl, $ e.display.maxLine=Hn.line, $ e.display.maxLineChanged=!0)}}}Math.abs( $ r)>2&&(er.scroller.scrollTop+= $ r)}function So( $ e){if( $ e.widgets)for(var er=0;er< $ e.widgets.length;++er){var ir= $ e.widgets[er],lr=ir.node.parentNode;lr&&(ir.height=lr.offsetHeight)}}function Ro( $ e,er,ir){var lr=ir&&ir.top!=null?Math.max(0,ir.top): $ e.scroller.scrollTop;lr=Math.floor(lr-qf( $ e));var dr=ir&&ir.bottom!=null?ir.bottom:lr+ $ e.w
2024-08-22 19:23:55 +08:00
top : ` +(er.top-ir.viewOffset-qf( $ e.display))+ ` px ;
height : ` +(er.bottom-er.top+xf( $ e)+ir.barHeight)+ ` px ;
2024-08-24 19:24:09 +08:00
left : ` +er.left+"px; width: "+Math.max(2,er.right-er.left)+"px;"); $ e.display.lineSpace.appendChild(Zr),Zr.scrollIntoView(dr), $ e.display.lineSpace.removeChild(Zr)}}}function qo( $ e,er,ir,lr){lr==null&&(lr=0);var dr;! $ e.options.lineWrapping&&er==ir&&(ir=er.sticky=="before"?ml(er.line,er.ch+1,"before"):er,er=er.ch?ml(er.line,er.sticky=="before"?er.ch-1:er.ch,"after"):er);for(var $ r=0; $ r<5; $ r++){var Zr=!1,Hn=Pl( $ e,er),mi=!ir||ir==er?Hn:Pl( $ e,ir);dr={left:Math.min(Hn.left,mi.left),top:Math.min(Hn.top,mi.top)-lr,right:Math.max(Hn.left,mi.left),bottom:Math.max(Hn.bottom,mi.bottom)+lr};var ma= $ o( $ e,dr),io= $ e.doc.scrollTop,ms= $ e.doc.scrollLeft;if(ma.scrollTop!=null&&(ns( $ e,ma.scrollTop),Math.abs( $ e.doc.scrollTop-io)>1&&(Zr=!0)),ma.scrollLeft!=null&&(Es( $ e,ma.scrollLeft),Math.abs( $ e.doc.scrollLeft-ms)>1&&(Zr=!0)),!Zr)break}return dr}function Ja( $ e,er){var ir= $ o( $ e,er);ir.scrollTop!=null&&ns( $ e,ir.scrollTop),ir.scrollLeft!=null&&Es( $ e,ir.scrollLeft)}function $ o( $ e,er){var ir= $ e.display,lr=vf( $ e.display);er.top<0&&(er.top=0);var dr= $ e.curOp&& $ e.curOp.scrollTop!=null? $ e.curOp.scrollTop:ir.scroller.scrollTop, $ r=Rm( $ e),Zr={};er.bottom-er.top> $ r&&(er.bottom=er.top+ $ r);var Hn= $ e.doc.height+vm(ir),mi=er.top<lr,ma=er.bottom>Hn-lr;if(er.top<dr)Zr.scrollTop=mi?0:er.top;else if(er.bottom>dr+ $ r){var io=Math.min(er.top,(ma?Hn:er.bottom)- $ r);io!=dr&&(Zr.scrollTop=io)}var ms= $ e.options.fixedGutter?0:ir.gutters.offsetWidth,gs= $ e.curOp&& $ e.curOp.scrollLeft!=null? $ e.curOp.scrollLeft:ir.scroller.scrollLeft-ms,Cs=tm( $ e)-ir.gutters.offsetWidth,Js=er.right-er.left>Cs;return Js&&(er.right=er.left+Cs),er.left<10?Zr.scrollLeft=0:er.left<gs?Zr.scrollLeft=Math.max(0,er.left+ms-(Js?0:10)):er.right>Cs+gs-3&&(Zr.scrollLeft=er.right+(Js?0:10)-Cs),Zr}function Ts( $ e,er){er!=null&&(Ls( $ e), $ e.curOp.scrollTop=( $ e.curOp.scrollTop==null? $ e.doc.scrollTop: $ e.curOp.scrollTop)+er)}function ds( $ e){Ls( $ e);var er= $ e.getCursor(); $ e.curOp.scrollToPos={from:er,to:er,margin: $ e.options.cursorScrollMargin}}function Is( $ e,er,ir){(er!=null||ir!=null)&&Ls( $ e),er!=null&&( $ e.curOp.scrollLeft=er),ir!=null&&( $ e.curOp.scrollTop=ir)}function Gs( $ e,er){Ls( $ e), $ e.curOp.scrollToPos=er}function Ls( $ e){var er= $ e.curOp.scrollToPos;if(er){ $ e.curOp.scrollToPos=null;var ir=_c( $ e,er.from),lr=_c( $ e,er.to);cl( $ e,ir,lr,er.margin)}}function cl( $ e,er,ir,lr){var dr= $ o( $ e,{left:Math.min(er.left,ir.left),top:Math.min(er.top,ir.top)-lr,right:Math.max(er.right,ir.right),bottom:Math.max(er.bottom,ir.bottom)+lr});Is( $ e,dr.scrollLeft,dr.scrollTop)}function ns( $ e,er){Math.abs( $ e.doc.scrollTop-er)<2||(k||Cc( $ e,{top:er}),il( $ e,er,!0),k&&Cc( $ e),Cl( $ e,100))}function il( $ e,er,ir){er=Math.max(0,Math.min( $ e.display.scroller.scrollHeight- $ e.display.scroller.clientHeight,er)),!( $ e.display.scroller.scrollTop==er&&!ir)&&( $ e.doc.scrollTop=er, $ e.display.scrollbars.setScrollTop(er), $ e.display.scroller.scrollTop!=er&&( $ e.display.scroller.scrollTop=er))}function Es( $ e,er,ir,lr){er=Math.max(0,Math.min(er, $ e.display.scroller.scrollWidth- $ e.display.scroller.clientWidth)),!((ir?er== $ e.doc.scrollLeft:Math.abs( $ e.doc.scrollLeft-er)<2)&&!lr)&&( $ e.doc.scrollLeft=er,sp( $ e), $ e.display.scroller.scrollLeft!=er&&( $ e.display.scroller.scrollLeft=er), $ e.display.scrollbars.setScrollLeft(er))}function Ss( $ e){var er= $ e.display,ir=er.gutters.offsetWidth,lr=Math.round( $ e.doc.height+vm( $ e.display));return{clientHeight:er.scroller.clientHeight,viewHeight:er.wrapper.clientHeight,scrollWidth:er.scroller.scrollWidth,clientWidth:er.scroller.clientWidth,viewWidth:er.wrapper.clientWidth,barLeft: $ e.options.fixedGutter?ir:0,docHeight:lr,scrollHeight:lr+xf( $ e)+er.barHeight,nativeBarWidth:er.nativeBarWidth,gutterWidth:ir}}var ws=function( $ e,er,ir){this.cm=ir;var lr=this.vert=nr("div",[nr("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),dr=this.horiz=nr("div",[nr("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");lr.tabIndex=dr.tabIndex=-1, $ e(lr), $ e(dr),Hi(lr,"scroll",function(){lr.clientHeight&&er(lr.scrollTop,"vertical")}),Hi(dr,"scroll",function(){dr.clientWidth&&er(dr.scrollLeft,"horizontal")}),this.
` },setDirection:Ru(function( $ e){ $ e!="rtl"&&( $ e="ltr"), $ e!=this.direction&&(this.direction= $ e,this.iter(function(er){return er.order=null}),this.cm&&am(this.cm))})}),Yd.prototype.eachLine=Yd.prototype.iter;var Af=0;function nf( $ e){var er=this;if(hp(er),!(cs(er, $ e)||Jp(er.display, $ e))){xs( $ e),V&&(Af=+new Date);var ir=Wp(er, $ e,!0),lr= $ e.dataTransfer.files;if(!(!ir||er.isReadOnly()))if(lr&&lr.length&&window.FileReader&&window.File)for(var dr=lr.length, $ r=Array(dr),Zr=0,Hn=function(){++Zr==dr&&Tu(er,function(){ir=Oc(er.doc,ir);var Cs={from:ir,to:ir,text:er.doc.splitLines( $ r.filter(function(Js){return Js!=null}).join(er.doc.lineSeparator())),origin:"paste"};Fc(er.doc,Cs),ss(er.doc,Op(Oc(er.doc,ir),Oc(er.doc,Ff(Cs))))})()},mi=function(Cs,Js){if(er.options.allowDropFileTypes&&Vr(er.options.allowDropFileTypes,Cs.type)==-1){Hn();return}var Hl=new FileReader;Hl.onerror=function(){return Hn()},Hl.onload=function(){var sl=Hl.result;if(/[ \x 00- \x 08 \x 0e- \x 1f]{2}/.test(sl)){Hn();return} $ r[Js]=sl,Hn()},Hl.readAsText(Cs)},ma=0;ma<lr.length;ma++)mi(lr[ma],ma);else{if(er.state.draggingText&&er.doc.sel.contains(ir)>-1){er.state.draggingText( $ e),setTimeout(function(){return er.display.input.focus()},20);return}try{var io= $ e.dataTransfer.getData("Text");if(io){var ms;if(er.state.draggingText&&!er.state.draggingText.copy&&(ms=er.listSelections()),No(er.doc,Op(ir,ir)),ms)for(var gs=0;gs<ms.length;++gs)fu(er.doc,"",ms[gs].anchor,ms[gs].head,"drag");er.replaceSelection(io,"around","paste"),er.display.input.focus()}}catch{}}}}function yp( $ e,er){if(V&&(! $ e.state.draggingText||+new Date-Af<100)){Pc(er);return}if(!(cs( $ e,er)||Jp( $ e.display,er))&&(er.dataTransfer.setData("Text", $ e.getSelection()),er.dataTransfer.effectAllowed="copyMove",er.dataTransfer.setDragImage&&!pe)){var ir=nr("img",null,null,"position: fixed; left: 0; top: 0;");ir.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",de&&(ir.width=ir.height=1, $ e.display.wrapper.appendChild(ir),ir._top=ir.offsetTop),er.dataTransfer.setDragImage(ir,0,0),de&&ir.parentNode.removeChild(ir)}}function Zc( $ e,er){var ir=Wp( $ e,er);if(ir){var lr=document.createDocumentFragment();ym( $ e,ir,lr), $ e.display.dragCursor||( $ e.display.dragCursor=nr("div",null,"CodeMirror-cursors CodeMirror-dragcursors"), $ e.display.lineSpace.insertBefore( $ e.display.dragCursor, $ e.display.cursorDiv)),ar( $ e.display.dragCursor,lr)}}function hp( $ e){ $ e.display.dragCursor&&( $ e.display.lineSpace.removeChild( $ e.display.dragCursor), $ e.display.dragCursor=null)}function Tp( $ e){if(document.getElementsByClassName){for(var er=document.getElementsByClassName("CodeMirror"),ir=[],lr=0;lr<er.length;lr++){var dr=er[lr].CodeMirror;dr&&ir.push(dr)}ir.length&&ir[0].operation(function(){for(var $ r=0; $ r<ir.length; $ r++) $ e(ir[ $ r])})}}var Ep=!1;function Qh(){Ep||(i0(),Ep=!0)}function i0(){var $ e;Hi(window,"resize",function(){ $ e==null&&( $ e=setTimeout(function(){ $ e=null,Tp(m0)},100))}),Hi(window,"blur",function(){return Tp(Ao)})}function m0( $ e){var er= $ e.display;er.cachedCharWidth=er.cachedTextHeight=er.cachedPaddingH=null,er.scrollbarsClipped=!1, $ e.setSize()}for(var Yp={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:" ` ",219:" [ ",220:" \ \ ",221:" ] ",222:" ' ",224:" Mod ",63232:" Up ",63233:" Down ",63234:" Left ",63235:" Right ",63272:" Delete ",63273:" Home ",63275:" End ",63276:" PageUp ",63277:" PageDown ",63302:" Insert "},Jh=0;Jh<10;Jh++)Yp[Jh+48]=Yp[Jh+96]=String(Jh);for(var jh=65;jh<=90;jh++)Yp[jh]=String.fromCharCode(jh);for(var Fh=1;Fh<=12;Fh++)Yp[Fh+111]=Yp[Fh+63235]=" F "+Fh;var Km={};Km.basic={Left:" goCharLeft ",Right:" goCharRight ",Up:" goLineUp ",Down:" goLineDown ",End:" goLineEnd ",Home:" goLineStartSmart ",PageUp:" goPageUp ",PageDown:" goPageDown ",Delete:" delCharAfter ",Backspace:" delCharBefore "," Shift - Backspace ":" de
` ,"start")},toggleOverwrite:function( $ e){return $ e.toggleOverwrite()}};function Fn( $ e,er){var ir=Ul( $ e.doc,er),lr=Bd(ir);return lr!=ir&&(er=kn(lr)),di(!0, $ e,lr,er,1)}function En( $ e,er){var ir=Ul( $ e.doc,er),lr=dm(ir);return lr!=ir&&(er=kn(lr)),di(!0, $ e,ir,er,-1)}function xn( $ e,er){var ir=Fn( $ e,er.line),lr=Ul( $ e.doc,ir.line),dr=qa(lr, $ e.doc.direction);if(!dr||dr[0].level==0){var $ r=Math.max(ir.ch,lr.text.search(/ \S /)),Zr=er.line==ir.line&&er.ch<= $ r&&er.ch;return ml(ir.line,Zr?0: $ r,ir.sticky)}return ir}function Nn( $ e,er,ir){if(typeof er=="string"&&(er=Vn[er],!er))return!1; $ e.display.input.ensurePolled();var lr= $ e.display.shift,dr=!1;try{ $ e.isReadOnly()&&( $ e.state.suppressEdits=!0),ir&&( $ e.display.shift=!1),dr=er( $ e)!=Tr}finally{ $ e.display.shift=lr, $ e.state.suppressEdits=!1}return dr}function ui( $ e,er,ir){for(var lr=0;lr< $ e.state.keyMaps.length;lr++){var dr=of(er, $ e.state.keyMaps[lr],ir, $ e);if(dr)return dr}return $ e.options.extraKeys&&of(er, $ e.options.extraKeys,ir, $ e)||of(er, $ e.options.keyMap,ir, $ e)}var Mi=new Hr;function ea( $ e,er,ir,lr){var dr= $ e.state.keySeq;if(dr){if(a0(er))return"handled";if(/ \' $ /.test(er)? $ e.state.keySeq=null:Mi.set(50,function(){ $ e.state.keySeq==dr&&( $ e.state.keySeq=null, $ e.display.input.reset())}),zi( $ e,dr+" "+er,ir,lr))return!0}return zi( $ e,er,ir,lr)}function zi( $ e,er,ir,lr){var dr=ui( $ e,er,lr);return dr=="multi"&&( $ e.state.keySeq=er),dr=="handled"&&np( $ e,"keyHandled", $ e,er,ir),(dr=="handled"||dr=="multi")&&(xs(ir),Os( $ e)),!!dr}function ta( $ e,er){var ir=Zh(er,!0);return ir?er.shiftKey&&! $ e.state.keySeq?ea( $ e,"Shift-"+ir,er,function(lr){return Nn( $ e,lr,!0)})||ea( $ e,ir,er,function(lr){if(typeof lr=="string"?/^go[A-Z]/.test(lr):lr.motion)return Nn( $ e,lr)}):ea( $ e,ir,er,function(lr){return Nn( $ e,lr)}):!1}function ki( $ e,er,ir){return ea( $ e,"'"+ir+"'",er,function(lr){return Nn( $ e,lr,!0)})}var ji=null;function oa( $ e){var er=this;if(!( $ e.target&& $ e.target!=er.display.input.getField())&&(er.curOp.focus=hr(vr(er)),!cs(er, $ e))){V&&z<11&& $ e.keyCode==27&&( $ e.returnValue=!1);var ir= $ e.keyCode;er.display.shift=ir==16|| $ e.shiftKey;var lr=ta(er, $ e);de&&(ji=lr?ir:null,!lr&&ir==88&&!hn&&(Fe? $ e.metaKey: $ e.ctrlKey)&&er.replaceSelection("",null,"cut")),k&&!Fe&&!lr&&ir==46&& $ e.shiftKey&&! $ e.ctrlKey&&document.execCommand&&document.execCommand("cut"),ir==18&&!/ \b CodeMirror-crosshair \b /.test(er.display.lineDiv.className)&&Ra(er)}}function Ra( $ e){var er= $ e.display.lineDiv;Er(er,"CodeMirror-crosshair");function ir(lr){(lr.keyCode==18||!lr.altKey)&&(tr(er,"CodeMirror-crosshair"),Ma(document,"keyup",ir),Ma(document,"mouseover",ir))}Hi(document,"keyup",ir),Hi(document,"mouseover",ir)}function Ba( $ e){ $ e.keyCode==16&&(this.doc.sel.shift=!1),cs(this, $ e)}function la( $ e){var er=this;if(!( $ e.target&& $ e.target!=er.display.input.getField())&&!(Jp(er.display, $ e)||cs(er, $ e)|| $ e.ctrlKey&&! $ e.altKey||Fe&& $ e.metaKey)){var ir= $ e.keyCode,lr= $ e.charCode;if(de&&ir==ji){ji=null,xs( $ e);return}if(!(de&&(! $ e.which|| $ e.which<10)&&ta(er, $ e))){var dr=String.fromCharCode(lr??ir);dr!=" \b "&&(ki(er, $ e,dr)||er.display.input.onKeyPress( $ e))}}}var La=400,Ea=function( $ e,er,ir){this.time= $ e,this.pos=er,this.button=ir};Ea.prototype.compare=function( $ e,er,ir){return this.time+La> $ e&&Uu(er,this.pos)==0&&ir==this.button};var Xa,Fa;function Zo( $ e,er){var ir=+new Date;return Fa&&Fa.compare(ir, $ e,er)?(Xa=Fa=null,"triple"):Xa&&Xa.compare(ir, $ e,er)?(Fa=new Ea(ir, $ e,er),Xa=null,"double"):(Xa=new Ea(ir, $ e,er),Fa=null,"single")}function Ui( $ e){var er=this,ir=er.display;if(!(cs(er, $ e)||ir.activeTouch&&ir.input.supportsTouch())){if(ir.input.ensurePolled(),ir.shift= $ e.shiftKey,Jp(ir, $ e)){re||(ir.scroller.draggable=!1,setTimeout(function(){return ir.scroller.draggable=!0},100));return}if(!Aa(er, $ e)){var lr=Wp(er, $ e),dr=gc( $ e), $ r=lr?Zo(lr,dr):"single";Mr(er).focus(),dr==1&&er.state.selectingText&&er.state.selectingText( $ e),!(lr&&Ta(er,dr,lr, $ r, $ e))&&(dr==1?lr?aa(er,lr, $ r, $ e):Nc( $ e)==ir.scroller&&xs( $ e):dr==2?(lr&&Sn(er.doc,lr),setTimeout(function(){return ir.input.focus()},20)):dr==3&&(qe?er.display.input.onContextMenu( $ e):Co(er)))}}}function Ta( $ e,er,ir,lr,dr){var $ r="Click";ret
2024-08-21 13:12:53 +08:00
` )==er){if(lr.ranges.length%Vo.text.length==0){ma=[];for(var io=0;io<Vo.text.length;io++)ma.push( $ r.splitLines(Vo.text[io]))}}else mi.length==lr.ranges.length&& $ e.options.pasteLinesPerSelection&&(ma=Kr(mi,function(pu){return[pu]}));for(var ms= $ e.curOp.updateInput,gs=lr.ranges.length-1;gs>=0;gs--){var Cs=lr.ranges[gs],Js=Cs.from(),Hl=Cs.to();Cs.empty()&&(ir&&ir>0?Js=ml(Js.line,Js.ch-ir): $ e.state.overwrite&&!Hn?Hl=ml(Hl.line,Math.min(Ul( $ r,Hl.line).text.length,Hl.ch+Wr(mi).length)):Hn&&Vo&&Vo.lineWise&&Vo.text.join( `
` )==mi.join( `
2024-08-24 19:24:09 +08:00
` )&&(Js=Hl=ml(Js.line,0)));var sl={from:Js,to:Hl,text:ma?ma[gs%ma.length]:mi,origin:dr||(Hn?"paste": $ e.state.cutIncoming>Zr?"cut":"+input")};Fc( $ e.doc,sl),np( $ e,"inputRead", $ e,sl)}er&&!Hn&&Ou( $ e,er),ds( $ e), $ e.curOp.updateInput<2&&( $ e.curOp.updateInput=ms), $ e.curOp.typing=!0, $ e.state.pasteIncoming= $ e.state.cutIncoming=-1}function al( $ e,er){var ir= $ e.clipboardData&& $ e.clipboardData.getData("Text");if(ir)return $ e.preventDefault(),!er.isReadOnly()&&!er.options.disableInput&&er.hasFocus()&&bc(er,function(){return dl(er,ir,0,null,"paste")}),!0}function Ou( $ e,er){if(!(! $ e.options.electricChars||! $ e.options.smartIndent))for(var ir= $ e.doc.sel,lr=ir.ranges.length-1;lr>=0;lr--){var dr=ir.ranges[lr];if(!(dr.head.ch>100||lr&&ir.ranges[lr-1].head.line==dr.head.line)){var $ r= $ e.getModeAt(dr.head),Zr=!1;if( $ r.electricChars){for(var Hn=0;Hn< $ r.electricChars.length;Hn++)if(er.indexOf( $ r.electricChars.charAt(Hn))>-1){Zr=pl( $ e,dr.head.line,"smart");break}}else $ r.electricInput&& $ r.electricInput.test(Ul( $ e.doc,dr.head.line).text.slice(0,dr.head.ch))&&(Zr=pl( $ e,dr.head.line,"smart"));Zr&&np( $ e,"electricInput", $ e,dr.head.line)}}}function Rs( $ e){for(var er=[],ir=[],lr=0;lr< $ e.doc.sel.ranges.length;lr++){var dr= $ e.doc.sel.ranges[lr].head.line, $ r={anchor:ml(dr,0),head:ml(dr+1,0)};ir.push( $ r),er.push( $ e.getRange( $ r.anchor, $ r.head))}return{text:er,ranges:ir}}function fs( $ e,er,ir,lr){ $ e.setAttribute("autocorrect",ir?"on":"off"), $ e.setAttribute("autocapitalize",lr?"on":"off"), $ e.setAttribute("spellcheck",!!er)}function Fs(){var $ e=nr("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),er=nr("div",[ $ e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return re? $ e.style.width="1000px": $ e.setAttribute("wrap","off"),Ce&&( $ e.style.border="1px solid black"),er}function Ws( $ e){var er= $ e.optionHandlers,ir= $ e.helpers={}; $ e.prototype={constructor: $ e,focus:function(){Mr(this).focus(),this.display.input.focus()},setOption:function(lr,dr){var $ r=this.options,Zr= $ r[lr]; $ r[lr]==dr&&lr!="mode"||( $ r[lr]=dr,er.hasOwnProperty(lr)&&Tu(this,er[lr])(this,dr,Zr),Ns(this,"optionChange",this,lr))},getOption:function(lr){return this.options[lr]},getDoc:function(){return this.doc},addKeyMap:function(lr,dr){this.state.keyMaps[dr?"push":"unshift"](e0(lr))},removeKeyMap:function(lr){for(var dr=this.state.keyMaps, $ r=0; $ r<dr.length;++ $ r)if(dr[ $ r]==lr||dr[ $ r].name==lr)return dr.splice( $ r,1),!0},addOverlay: $ l(function(lr,dr){var $ r=lr.token?lr: $ e.getMode(this.options,lr);if( $ r.startState)throw new Error("Overlays may not be stateful.");Nr(this.state.overlays,{mode: $ r,modeSpec:lr,opaque:dr&&dr.opaque,priority:dr&&dr.priority||0},function(Zr){return Zr.priority}),this.state.modeGen++,Ip(this)}),removeOverlay: $ l(function(lr){for(var dr=this.state.overlays, $ r=0; $ r<dr.length;++ $ r){var Zr=dr[ $ r].modeSpec;if(Zr==lr||typeof lr=="string"&&Zr.name==lr){dr.splice( $ r,1),this.state.modeGen++,Ip(this);return}}}),indentLine: $ l(function(lr,dr, $ r){typeof dr!="string"&&typeof dr!="number"&&(dr==null?dr=this.options.smartIndent?"smart":"prev":dr=dr?"add":"subtract"),Vl(this.doc,lr)&&pl(this,lr,dr, $ r)}),indentSelection: $ l(function(lr){for(var dr=this.doc.sel.ranges, $ r=-1,Zr=0;Zr<dr.length;Zr++){var Hn=dr[Zr];if(Hn.empty())Hn.head.line> $ r&&(pl(this,Hn.head.line,lr,!0), $ r=Hn.head.line,Zr==this.doc.sel.primIndex&&ds(this));else{var mi=Hn.from(),ma=Hn.to(),io=Math.max( $ r,mi.line); $ r=Math.min(this.lastLine(),ma.line-(ma.ch?0:1))+1;for(var ms=io;ms< $ r;++ms)pl(this,ms,lr);var gs=this.doc.sel.ranges;mi.ch==0&&dr.length==gs.length&&gs[Zr].from().ch>0&&fa(this.doc,Zr,new Jc(mi,gs[Zr].to()),Cr)}}}),getTokenAt:function(lr,dr){return Cf(this,lr,dr)},getLineTokens:function(lr,dr){return Cf(this,ml(lr),dr,!0)},getTokenTypeAt:function(lr){lr=Oc(this.doc,lr);var dr=Df(this,Ul(this.doc,lr.line)), $ r=0,Zr=(dr.length-1)/2,Hn=lr.ch,mi;if(Hn==0)mi=dr[2];else for(;;){var ma= $ r+Zr>>1;if((ma?dr[ma*2-1]:0)>=Hn)Zr=ma;else if(dr[ma*2+1]<Hn) $ r=ma+1;else{mi=dr[ma*2+2];break}}var io=mi?mi.indexOf("overlay "):-1;return io<0?mi:io==0?null:m
2024-08-21 13:12:53 +08:00
` ,sl=Wa(Hl,Cs)?"w":gs&&Hl== `
2024-08-22 19:23:55 +08:00
` ?"n":!gs||/ \s /.test(Hl)?null:"p";if(gs&&!Js&&!sl&&(sl="s"),ms&&ms!=sl){ir<0&&(ir=1,io(),er.sticky="after");break}if(sl&&(ms=sl),ir>0&&!io(!Js))break}var pu=zu( $ e,er, $ r,Zr,!0);return Ac( $ r,pu)&&(pu.hitSide=!0),pu}function du( $ e,er,ir,lr){var dr= $ e.doc, $ r=er.left,Zr;if(lr=="page"){var Hn=Math.min( $ e.display.wrapper.clientHeight,Mr( $ e).innerHeight||dr( $ e).documentElement.clientHeight),mi=Math.max(Hn-.5*vf( $ e.display),3);Zr=(ir>0?er.bottom:er.top)+ir*mi}else lr=="line"&&(Zr=ir>0?er.bottom+3:er.top-3);for(var ma;ma=wd( $ e, $ r,Zr),!!ma.outside;){if(ir<0?Zr<=0:Zr>=dr.height){ma.hitSide=!0;break}Zr+=ir*5}return ma}var jl=function( $ e){this.cm= $ e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Hr,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};jl.prototype.init=function( $ e){var er=this,ir=this,lr=ir.cm,dr=ir.div= $ e.lineDiv;dr.contentEditable=!0,fs(dr,lr.options.spellcheck,lr.options.autocorrect,lr.options.autocapitalize);function $ r(Hn){for(var mi=Hn.target;mi;mi=mi.parentNode){if(mi==dr)return!0;if(/ \b CodeMirror-(?:line)?widget \b /.test(mi.className))break}return!1}Hi(dr,"paste",function(Hn){! $ r(Hn)||cs(lr,Hn)||al(Hn,lr)||z<=11&&setTimeout(Tu(lr,function(){return er.updateFromDOM()}),20)}),Hi(dr,"compositionstart",function(Hn){er.composing={data:Hn.data,done:!1}}),Hi(dr,"compositionupdate",function(Hn){er.composing||(er.composing={data:Hn.data,done:!1})}),Hi(dr,"compositionend",function(Hn){er.composing&&(Hn.data!=er.composing.data&&er.readFromDOMSoon(),er.composing.done=!0)}),Hi(dr,"touchstart",function(){return ir.forceCompositionEnd()}),Hi(dr,"input",function(){er.composing||er.readFromDOMSoon()});function Zr(Hn){if(!(! $ r(Hn)||cs(lr,Hn))){if(lr.somethingSelected())As({lineWise:!1,text:lr.getSelections()}),Hn.type=="cut"&&lr.replaceSelection("",null,"cut");else if(lr.options.lineWiseCopyCut){var mi=Rs(lr);As({lineWise:!0,text:mi.text}),Hn.type=="cut"&&lr.operation(function(){lr.setSelections(mi.ranges,0,Cr),lr.replaceSelection("",null,"cut")})}else return;if(Hn.clipboardData){Hn.clipboardData.clearData();var ma=Vo.text.join( `
2024-08-21 13:12:53 +08:00
` );if(Hn.clipboardData.setData("Text",ma),Hn.clipboardData.getData("Text")==ma){Hn.preventDefault();return}}var io=Fs(),ms=io.firstChild;fs(ms),lr.display.lineSpace.insertBefore(io,lr.display.lineSpace.firstChild),ms.value=Vo.text.join( `
2024-08-24 19:24:09 +08:00
` );var gs=hr(Ir(dr));xr(ms),setTimeout(function(){lr.display.lineSpace.removeChild(io),gs.focus(),gs==dr&&ir.showPrimarySelection()},50)}}Hi(dr,"copy",Zr),Hi(dr,"cut",Zr)},jl.prototype.screenReaderLabelChanged=function( $ e){ $ e?this.div.setAttribute("aria-label", $ e):this.div.removeAttribute("aria-label")},jl.prototype.prepareSelection=function(){var $ e=Bm(this.cm,!1);return $ e.focus=hr(Ir(this.div))==this.div, $ e},jl.prototype.showSelection=function( $ e,er){! $ e||!this.cm.display.view.length||(( $ e.focus||er)&&this.showPrimarySelection(),this.showMultipleSelections( $ e))},jl.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},jl.prototype.showPrimarySelection=function(){var $ e=this.getSelection(),er=this.cm,ir=er.doc.sel.primary(),lr=ir.from(),dr=ir.to();if(er.display.viewTo==er.display.viewFrom||lr.line>=er.display.viewTo||dr.line<er.display.viewFrom){ $ e.removeAllRanges();return}var $ r=lc(er, $ e.anchorNode, $ e.anchorOffset),Zr=lc(er, $ e.focusNode, $ e.focusOffset);if(!( $ r&&! $ r.bad&&Zr&&!Zr.bad&&Uu(_p( $ r,Zr),lr)==0&&Uu(ld( $ r,Zr),dr)==0)){var Hn=er.display.view,mi=lr.line>=er.display.viewFrom&&rc(er,lr)||{node:Hn[0].measure.map[2],offset:0},ma=dr.line<er.display.viewTo&&rc(er,dr);if(!ma){var io=Hn[Hn.length-1].measure,ms=io.maps?io.maps[io.maps.length-1]:io.map;ma={node:ms[ms.length-1],offset:ms[ms.length-2]-ms[ms.length-3]}}if(!mi||!ma){ $ e.removeAllRanges();return}var gs= $ e.rangeCount&& $ e.getRangeAt(0),Cs;try{Cs=cr(mi.node,mi.offset,ma.offset,ma.node)}catch{}Cs&&(!k&&er.state.focused?( $ e.collapse(mi.node,mi.offset),Cs.collapsed||( $ e.removeAllRanges(), $ e.addRange(Cs))):( $ e.removeAllRanges(), $ e.addRange(Cs)),gs&& $ e.anchorNode==null? $ e.addRange(gs):k&&this.startGracePeriod()),this.rememberSelection()}},jl.prototype.startGracePeriod=function(){var $ e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){ $ e.gracePeriod=!1, $ e.selectionChanged()&& $ e.cm.operation(function(){return $ e.cm.curOp.selectionChanged=!0})},20)},jl.prototype.showMultipleSelections=function( $ e){ar(this.cm.display.cursorDiv, $ e.cursors),ar(this.cm.display.selectionDiv, $ e.selection)},jl.prototype.rememberSelection=function(){var $ e=this.getSelection();this.lastAnchorNode= $ e.anchorNode,this.lastAnchorOffset= $ e.anchorOffset,this.lastFocusNode= $ e.focusNode,this.lastFocusOffset= $ e.focusOffset},jl.prototype.selectionInEditor=function(){var $ e=this.getSelection();if(! $ e.rangeCount)return!1;var er= $ e.getRangeAt(0).commonAncestorContainer;return _r(this.div,er)},jl.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||hr(Ir(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},jl.prototype.blur=function(){this.div.blur()},jl.prototype.getField=function(){return this.div},jl.prototype.supportsTouch=function(){return!0},jl.prototype.receivedFocus=function(){var $ e=this,er=this;this.selectionInEditor()?setTimeout(function(){return $ e.pollSelection()},20):bc(this.cm,function(){return er.cm.curOp.selectionChanged=!0});function ir(){er.cm.state.focused&&(er.pollSelection(),er.polling.set(er.cm.options.pollInterval,ir))}this.polling.set(this.cm.options.pollInterval,ir)},jl.prototype.selectionChanged=function(){var $ e=this.getSelection();return $ e.anchorNode!=this.lastAnchorNode|| $ e.anchorOffset!=this.lastAnchorOffset|| $ e.focusNode!=this.lastFocusNode|| $ e.focusOffset!=this.lastFocusOffset},jl.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var $ e=this.getSelection(),er=this.cm;if(he&&oe&&this.cm.display.gutterSpecs.length&&ed( $ e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ir=lc(er, $ e.anchorNode, $ e.anchorOffset),lr=lc(er, $ e.focusNode, $ e.focusOffset);ir&&lr&&bc(er,function(){as(er.doc,Op(ir,lr),Cr),(ir.bad||lr.bad)&&(er.curOp.selectionChanged=!0)})}}},jl.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTim
` ),xr(dr))}else return;Zr.type=="cut"&&(lr.state.cutIncoming=+new Date)}}Hi(dr,"cut", $ r),Hi(dr,"copy", $ r),Hi( $ e.scroller,"paste",function(Zr){if(!(Jp( $ e,Zr)||cs(lr,Zr))){if(!dr.dispatchEvent){lr.state.pasteIncoming=+new Date,ir.focus();return}var Hn=new Event("paste");Hn.clipboardData=Zr.clipboardData,dr.dispatchEvent(Hn)}}),Hi( $ e.lineSpace,"selectstart",function(Zr){Jp( $ e,Zr)||xs(Zr)}),Hi(dr,"compositionstart",function(){var Zr=lr.getCursor("from");ir.composing&&ir.composing.range.clear(),ir.composing={start:Zr,range:lr.markText(Zr,lr.getCursor("to"),{className:"CodeMirror-composing"})}}),Hi(dr,"compositionend",function(){ir.composing&&(ir.poll(),ir.composing.range.clear(),ir.composing=null)})},Qo.prototype.createField=function( $ e){this.wrapper=Fs(),this.textarea=this.wrapper.firstChild;var er=this.cm.options;fs(this.textarea,er.spellcheck,er.autocorrect,er.autocapitalize)},Qo.prototype.screenReaderLabelChanged=function( $ e){ $ e?this.textarea.setAttribute("aria-label", $ e):this.textarea.removeAttribute("aria-label")},Qo.prototype.prepareSelection=function(){var $ e=this.cm,er= $ e.display,ir= $ e.doc,lr=Bm( $ e);if( $ e.options.moveInputWithCursor){var dr=Pl( $ e,ir.sel.primary().head,"div"), $ r=er.wrapper.getBoundingClientRect(),Zr=er.lineDiv.getBoundingClientRect();lr.teTop=Math.max(0,Math.min(er.wrapper.clientHeight-10,dr.top+Zr.top- $ r.top)),lr.teLeft=Math.max(0,Math.min(er.wrapper.clientWidth-10,dr.left+Zr.left- $ r.left))}return lr},Qo.prototype.showSelection=function( $ e){var er=this.cm,ir=er.display;ar(ir.cursorDiv, $ e.cursors),ar(ir.selectionDiv, $ e.selection), $ e.teTop!=null&&(this.wrapper.style.top= $ e.teTop+"px",this.wrapper.style.left= $ e.teLeft+"px")},Qo.prototype.reset=function( $ e){if(!(this.contextMenuPending||this.composing&& $ e)){var er=this.cm;if(this.resetting=!0,er.somethingSelected()){this.prevInput="";var ir=er.getSelection();this.textarea.value=ir,er.state.focused&&xr(this.textarea),V&&z>=9&&(this.hasSelection=ir)}else $ e||(this.prevInput=this.textarea.value="",V&&z>=9&&(this.hasSelection=null));this.resetting=!1}},Qo.prototype.getField=function(){return this.textarea},Qo.prototype.supportsTouch=function(){return!1},Qo.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ne||hr(Ir(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Qo.prototype.blur=function(){this.textarea.blur()},Qo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Qo.prototype.receivedFocus=function(){this.slowPoll()},Qo.prototype.slowPoll=function(){var $ e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ $ e.poll(), $ e.cm.state.focused&& $ e.slowPoll()})},Qo.prototype.fastPoll=function(){var $ e=!1,er=this;er.pollingFast=!0;function ir(){var lr=er.poll();!lr&&! $ e?( $ e=!0,er.polling.set(60,ir)):(er.pollingFast=!1,er.slowPoll())}er.polling.set(20,ir)},Qo.prototype.poll=function(){var $ e=this,er=this.cm,ir=this.textarea,lr=this.prevInput;if(this.contextMenuPending||this.resetting||!er.state.focused||Zn(ir)&&!lr&&!this.composing||er.isReadOnly()||er.options.disableInput||er.state.keySeq)return!1;var dr=ir.value;if(dr==lr&&!er.somethingSelected())return!1;if(V&&z>=9&&this.hasSelection===dr||Fe&&/[ \u f700- \u f7ff]/.test(dr))return er.display.input.reset(),!1;if(er.doc.sel==er.display.selForContextMenu){var $ r=dr.charCodeAt(0);if( $ r==8203&&!lr&&(lr=" "), $ r==8666)return this.reset(),this.cm.execCommand("undo")}for(var Zr=0,Hn=Math.min(lr.length,dr.length);Zr<Hn&&lr.charCodeAt(Zr)==dr.charCodeAt(Zr);)++Zr;return bc(er,function(){dl(er,dr.slice(Zr),lr.length-Zr,null, $ e.composing?"*compose":null),dr.length>1e3||dr.indexOf( `
2024-08-22 19:23:55 +08:00
` )>-1?ir.value= $ e.prevInput="": $ e.prevInput=dr, $ e.composing&&( $ e.composing.range.clear(), $ e.composing.range=er.markText( $ e.composing.start,er.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Qo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Qo.prototype.onKeyPress=function(){V&&z>=9&&(this.hasSelection=null),this.fastPoll()},Qo.prototype.onContextMenu=function( $ e){var er=this,ir=er.cm,lr=ir.display,dr=er.textarea;er.contextMenuPending&&er.contextMenuPending();var $ r=Wp(ir, $ e),Zr=lr.scroller.scrollTop;if(! $ r||de)return;var Hn=ir.options.resetSelectionOnContextMenu;Hn&&ir.doc.sel.contains( $ r)==-1&&Tu(ir,as)(ir.doc,Op( $ r),Cr);var mi=dr.style.cssText,ma=er.wrapper.style.cssText,io=er.wrapper.offsetParent.getBoundingClientRect();er.wrapper.style.cssText="position: static",dr.style.cssText= ` position : absolute ; width : 30 px ; height : 30 px ;
2024-08-21 13:12:53 +08:00
top : ` +( $ e.clientY-io.top-5)+"px; left: "+( $ e.clientX-io.left-5)+ ` px ;
z - index : 1000 ; background : ` +(V?"rgba(255, 255, 255, .05)":"transparent")+ ` ;
2024-08-25 08:49:45 +08:00
outline : none ; border - width : 0 ; outline : none ; overflow : hidden ; opacity : . 05 ; filter : alpha ( opacity = 5 ) ; ` ;var ms;re&&(ms=dr.ownerDocument.defaultView.scrollY),lr.input.focus(),re&&dr.ownerDocument.defaultView.scrollTo(null,ms),lr.input.reset(),ir.somethingSelected()||(dr.value=er.prevInput=" "),er.contextMenuPending=Cs,lr.selForContextMenu=ir.doc.sel,clearTimeout(lr.detectingSelectAll);function gs(){if(dr.selectionStart!=null){var Hl=ir.somethingSelected(),sl=" "+(Hl?dr.value:"");dr.value="⇚",dr.value=sl,er.prevInput=Hl?"":" ",dr.selectionStart=1,dr.selectionEnd=sl.length,lr.selForContextMenu=ir.doc.sel}}function Cs(){if(er.contextMenuPending==Cs&&(er.contextMenuPending=!1,er.wrapper.style.cssText=ma,dr.style.cssText=mi,V&&z<9&&lr.scrollbars.setScrollTop(lr.scroller.scrollTop=Zr),dr.selectionStart!=null)){(!V||V&&z<9)&&gs();var Hl=0,sl=function(){lr.selForContextMenu==ir.doc.sel&&dr.selectionStart==0&&dr.selectionEnd>0&&er.prevInput==" "?Tu(ir,Mc)(ir):Hl++<10?lr.detectingSelectAll=setTimeout(sl,500):(lr.selForContextMenu=null,lr.input.reset())};lr.detectingSelectAll=setTimeout(sl,200)}}if(V&&z>=9&&gs(),qe){Pc( $ e);var Js=function(){Ma(window,"mouseup",Js),setTimeout(Cs,20)};Hi(window,"mouseup",Js)}else setTimeout(Cs,50)},Qo.prototype.readOnlyChanged=function( $ e){ $ e||this.reset(),this.textarea.disabled= $ e=="nocursor",this.textarea.readOnly=!! $ e},Qo.prototype.setUneditable=function(){},Qo.prototype.needsContentAttribute=!1;function fl( $ e,er){if(er=er?gr(er):{},er.value= $ e.value,!er.tabindex&& $ e.tabIndex&&(er.tabindex= $ e.tabIndex),!er.placeholder&& $ e.placeholder&&(er.placeholder= $ e.placeholder),er.autofocus==null){var ir=hr(Ir( $ e));er.autofocus=ir== $ e|| $ e.getAttribute("autofocus")!=null&&ir==document.body}function lr(){ $ e.value=Hn.getValue()}var dr;if( $ e.form&&(Hi( $ e.form,"submit",lr),!er.leaveSubmitMethodAlone)){var $ r= $ e.form;dr= $ r.submit;try{var Zr= $ r.submit=function(){lr(), $ r.submit=dr, $ r.submit(), $ r.submit=Zr}}catch{}}er.finishInit=function(mi){mi.save=lr,mi.getTextArea=function(){return $ e},mi.toTextArea=function(){mi.toTextArea=isNaN,lr(), $ e.parentNode.removeChild(mi.getWrapperElement()), $ e.style.display="", $ e.form&&(Ma( $ e.form,"submit",lr),!er.leaveSubmitMethodAlone&&typeof $ e.form.submit=="function"&&( $ e.form.submit=dr))}}, $ e.style.display="none";var Hn=ys(function(mi){return $ e.parentNode.insertBefore(mi, $ e.nextSibling)},er);return Hn}function ks( $ e){ $ e.off=Ma, $ e.on=Hi, $ e.wheelEventPixels=pp, $ e.Doc=Yd, $ e.splitLines=Lr, $ e.countColumn=jr, $ e.findColumn=Sr, $ e.isWordChar=Po, $ e.Pass=Tr, $ e.signal=Ns, $ e.Line=Wn, $ e.changeEnd=Ff, $ e.scrollbarModel=bu, $ e.Pos=ml, $ e.cmpPos=Uu, $ e.modes=Wi, $ e.mimeModes=pa, $ e.resolveMode=Eo, $ e.getMode=Fo, $ e.modeExtensions=hs, $ e.extendMode=An, $ e.copyState=Uo, $ e.startState=Io, $ e.innerMode=cu, $ e.commands=Vn, $ e.keyMap=Km, $ e.keyName=Zh, $ e.isModifierKey=a0, $ e.lookupKey=of, $ e.normalizeKeyMap=sm, $ e.StringStream=vu, $ e.SharedTextMarker=Wu, $ e.TextMarker=Dl, $ e.LineWidget=Vc, $ e.e_preventDefault=xs, $ e.e_stopPropagation=ju, $ e.e_stop=Pc, $ e.addClass=Er, $ e.contains=_r, $ e.rmClass=tr, $ e.keyNames=Yp}Bs(ys),Ws(ys);var ul="iter insert remove copy getEditor constructor".split(" ");for(var Hu in Yd.prototype)Yd.prototype.hasOwnProperty(Hu)&&Vr(ul,Hu)<0&&(ys.prototype[Hu]=function( $ e){return function(){return $ e.apply(this.doc,arguments)}}(Yd.prototype[Hu]));return Au(Yd),ys.inputStyles={textarea:Qo,contenteditable:jl},ys.defineMode=function( $ e){!ys.defaults.mode&& $ e!="null"&&(ys.defaults.mode= $ e),Ki.apply(this,arguments)},ys.defineMIME=Yo,ys.defineMode("null",function(){return{token:function( $ e){return $ e.skipToEnd()}}}),ys.defineMIME("text/plain","null"),ys.defineExtension=function( $ e,er){ys.prototype[ $ e]=er},ys.defineDocExtension=function( $ e,er){Yd.prototype[ $ e]=er},ys.fromTextArea=fl,ks(ys),ys.version="5.65.17",ys})}(codemirror)),codemirror.exports}var codemirrorExports=requireCodemirror();const CodeMirror=getDefaultExportFromCjs(codemirrorExports);function tryOnScopeDispose $ 1(e){return getCurrentScope()?(onScopeDispose(e),!0):!1}function toValue $ 2(e){return typeof e=="function"?e():unref(e)}const isClien
2024-08-21 13:12:53 +08:00
( ? :
( ? : ` +n+":){7}(?:"+n+ ` | : ) | // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
( ? : ` +n+":){6}(?:"+y+"|:"+n+ ` | : ) | // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
( ? : ` +n+":){5}(?::"+y+"|(?::"+n+ ` ) { 1 , 2 } | : ) | // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
( ? : ` +n+":){4}(?:(?::"+n+"){0,1}:"+y+"|(?::"+n+ ` ) { 1 , 3 } | : ) | // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
( ? : ` +n+":){3}(?:(?::"+n+"){0,2}:"+y+"|(?::"+n+ ` ) { 1 , 4 } | : ) | // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
( ? : ` +n+":){2}(?:(?::"+n+"){0,3}:"+y+"|(?::"+n+ ` ) { 1 , 5 } | : ) | // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
( ? : ` +n+":){1}(?:(?::"+n+"){0,4}:"+y+"|(?::"+n+ ` ) { 1 , 6 } | : ) | // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
( ? : : ( ? : ( ? : : ` +n+"){0,5}:"+y+"|(?::"+n+ ` ) { 1 , 7 } | : ) ) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
) ( ? : % [ 0 - 9 a - zA - Z ] { 1 , } ) ? // %eth0 %1
2024-08-24 19:24:09 +08:00
` ).replace(/ \s * \/ \/ .* $ /gm,"").replace(/ \n /g,"").trim(),L=new RegExp("(?:^"+y+" $ )|(?:^"+k+" $ )"), $ =new RegExp("^"+y+" $ "),j=new RegExp("^"+k+" $ "),V=function(Ne){return Ne&&Ne.exact?L:new RegExp("(?:"+t(Ne)+y+t(Ne)+")|(?:"+t(Ne)+k+t(Ne)+")","g")};V.v4=function(he){return he&&he.exact? $ :new RegExp(""+t(he)+y+t(he),"g")},V.v6=function(he){return he&&he.exact?j:new RegExp(""+t(he)+k+t(he),"g")};var z="(?:(?:[a-z]+:)?//)",re="(?: \\ S+(?:: \\ S*)?@)?",ie=V.v4().source,oe=V.v6().source,ue="(?:(?:[a-z \\ u00a1- \\ uffff0-9][-_]*)*[a-z \\ u00a1- \\ uffff0-9]+)",de="(?: \\ .(?:[a-z \\ u00a1- \\ uffff0-9]-*)*[a-z \\ u00a1- \\ uffff0-9]+)*",pe="(?: \\ .(?:[a-z \\ u00a1- \\ uffff]{2,}))",Ie="(?:: \\ d{2,5})?",_e='(?:[/?#][^ \\ s"]*)?',Ce="(?:"+z+"|www \\ .)"+re+"(?:localhost|"+ie+"|"+oe+"|"+ue+de+pe+")"+Ie+_e;return urlReg=new RegExp("(?:^"+Ce+" $ )","i"),urlReg},pattern $ 2={email:/^(([^<>() \[ \] \\ .,;: \s @"]+( \. [^<>() \[ \] \\ .,;: \s @"]+)*)|(".+"))@(( \[ [0-9]{1,3} \. [0-9]{1,3} \. [0-9]{1,3} \. [0-9]{1,3}])|(([a-zA-Z \- 0-9 \u 00A0- \u D7FF \u F900- \u FDCF \u FDF0- \u FFEF]+ \. )+[a-zA-Z \u 00A0- \u D7FF \u F900- \u FDCF \u FDF0- \u FFEF]{2,})) $ /,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3}) $ /i},types $ 2={integer:function(t){return types $ 2.number(t)&&parseInt(t,10)===t},float:function(t){return types $ 2.number(t)&&!types $ 2.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!types $ 2.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(pattern $ 2.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(getUrlRegex())},hex:function(t){return typeof t=="string"&&!!t.match(pattern $ 2.hex)}},type $ 1=function(t,y,n,k,L){if(t.required&&y===void 0){required $ 1(t,y,n,k,L);return}var $ =["integer","float","array","regexp","object","method","email","number","date","url","hex"],j=t.type; $ .indexOf(j)>-1?types $ 2[j](y)||k.push(format $ 1(L.messages.types[j],t.fullField,t.type)):j&&typeof y!==t.type&&k.push(format $ 1(L.messages.types[j],t.fullField,t.type))},range $ 4=function(t,y,n,k,L){var $ =typeof t.len=="number",j=typeof t.min=="number",V=typeof t.max=="number",z=/[ \u D800- \u DBFF][ \u DC00- \u DFFF]/g,re=y,ie=null,oe=typeof y=="number",ue=typeof y=="string",de=Array.isArray(y);if(oe?ie="number":ue?ie="string":de&&(ie="array"),!ie)return!1;de&&(re=y.length),ue&&(re=y.replace(z,"_").length), $ ?re!==t.len&&k.push(format $ 1(L.messages[ie].len,t.fullField,t.len)):j&&!V&&re<t.min?k.push(format $ 1(L.messages[ie].min,t.fullField,t.min)):V&&!j&&re>t.max?k.push(format $ 1(L.messages[ie].max,t.fullField,t.max)):j&&V&&(re<t.min||re>t.max)&&k.push(format $ 1(L.messages[ie].range,t.fullField,t.min,t.max))},ENUM $ 1="enum",enumerable $ 1=function(t,y,n,k,L){t[ENUM $ 1]=Array.isArray(t[ENUM $ 1])?t[ENUM $ 1]:[],t[ENUM $ 1].indexOf(y)===-1&&k.push(format $ 1(L.messages[ENUM $ 1],t.fullField,t[ENUM $ 1].join(", ")))},pattern $ 1=function(t,y,n,k,L){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(y)||k.push(format $ 1(L.messages.pattern.mismatch,t.fullField,y,t.pattern));else if(typeof t.pattern=="string"){var $ =new RegExp(t.pattern); $ .test(y)||k.push(format $ 1(L.messages.pattern.mismatch,t.fullField,y,t.pattern))}}},rules={required:required $ 1,whitespace,type:type $ 1,range:range $ 4,enum:enumerable $ 1,pattern:pattern $ 1},string=function(t,y,n,k,L){var $ =[],j=t.required||!t.required&&k.hasOwnProperty(t.field);if(j){if(isEmptyValue(y,"string")&&!t.required)return n();rules.required(t,y,k, $ ,L,"string"),isEmptyValue(y,"string")||(rules.type(t,y,k, $ ,L),rules.range(t,y,k, $ ,L),rules.pattern(t,y,k, $ ,L),t.whitespace===!0&&rules.whitespace(t,y,k, $ ,L))}n( $ )},method2=function(t,y,n,k,L){var $ =[],j=t.required||!t.required&&k.hasOwnProperty(t.field);if(j){if(isEmptyValue(y)&&!t.required)return n();rules.required(t,y,k, $ ,L),y!==void 0&&rules.type(t,y,k, $ ,L)}n( $
2024-08-21 13:12:53 +08:00
height : 0 ! important ;
visibility : hidden ! important ;
$ { isFirefox ( ) ? "" : "overflow:hidden !important;" }
position : absolute ! important ;
z - index : - 1000 ! important ;
top : 0 ! important ;
right : 0 ! important ;
2024-08-24 19:24:09 +08:00
` ,CONTEXT_STYLE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function calculateNodeStyling(e){const t=window.getComputedStyle(e),y=t.getPropertyValue("box-sizing"),n=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),k=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:CONTEXT_STYLE.map( $ => ` $ { $ } : $ { t . getPropertyValue ( $ ) } ` ).join(";"),paddingSize:n,borderSize:k,boxSizing:y}}function calcTextareaHeight(e,t=1,y){var n;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),document.body.appendChild(hiddenTextarea));const{paddingSize:k,borderSize:L,boxSizing: $ ,contextStyle:j}=calculateNodeStyling(e);hiddenTextarea.setAttribute("style", ` $ { j } ; $ { HIDDEN _STYLE } ` ),hiddenTextarea.value=e.value||e.placeholder||"";let V=hiddenTextarea.scrollHeight;const z={}; $ ==="border-box"?V=V+L: $ ==="content-box"&&(V=V-k),hiddenTextarea.value="";const re=hiddenTextarea.scrollHeight-k;if(isNumber $ 3(t)){let ie=re*t; $ ==="border-box"&&(ie=ie+k+L),V=Math.max(ie,V),z.minHeight= ` $ { ie } px ` }if(isNumber $ 3(y)){let ie=re*y; $ ==="border-box"&&(ie=ie+k+L),V=Math.min(ie,V)}return z.height= ` $ { V } px ` ,(n=hiddenTextarea.parentNode)==null||n.removeChild(hiddenTextarea),hiddenTextarea=void 0,z}const inputProps=buildProps({id:{type:String,default:void 0},size:useSizeProp,disabled:Boolean,modelValue:{type:definePropType([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:definePropType([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:iconPropType},prefixIcon:{type:iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:definePropType([Object,Array,String]),default:()=>mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...useAriaProps(["ariaLabel"])}),inputEmits={[UPDATE_MODEL_EVENT]:e=>isString $ 3(e),input:e=>isString $ 3(e),change:e=>isString $ 3(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},__default__ $ 1J=defineComponent({name:"ElInput",inheritAttrs:!1}),_sfc_main $ 2Q=defineComponent({...__default__ $ 1J,props:inputProps,emits:inputEmits,setup(e,{expose:t,emit:y}){const n=e,k=useAttrs $ 1(),L=useSlots(), $ =computed(()=>{const Fr={};return n.containerRole==="combobox"&&(Fr["aria-haspopup"]=k["aria-haspopup"],Fr["aria-owns"]=k["aria-owns"],Fr["aria-expanded"]=k["aria-expanded"]),Fr}),j=computed(()=>[n.type==="textarea"?Ie.b():pe.b(),pe.m(ue.value),pe.is("disabled",de.value),pe.is("exceed",kr.value),{[pe.b("group")]:L.prepend||L.append,[pe.m("prefix")]:L.prefix||n.prefixIcon,[pe.m("suffix")]:L.suffix||n.suffixIcon||n.clearable||n.showPassword,[pe.bm("suffix","password-clear")]:cr.value&&_r.value,[pe.b("hidden")]:n.type==="hidden"},k.class]),V=computed(()=>[pe.e("wrapper"),pe.is("focus",Ve.value)]),z=useAttrs({excludeKeys:computed(()=>Object.keys( $ .value))}),{form:re,formItem:ie}=useFormItem(),{inputId:oe}=useFormItemInputId(n,{formItemContext:ie}),ue=useFormSize(),de=useFormDisabled(),pe=useNamespace("input"),Ie=useNamespace("textarea"),_e=shallowRef(),Ce=shallowRef(),he=ref $ 1(!1),Ne=ref $ 1(!1),Fe=ref $ 1(),Ue=shallowRef(n.inputStyle),kt=computed(()=>_e.value||Ce.value),{wrapperRef:Et,isFocused:Ve}=use
2024-08-21 13:12:53 +08:00
* Checks if an event is supported in the current execution environment .
*
* NOTE : This will not work correctly for non - generic events such as ` change ` ,
* ` reset ` , ` load ` , ` error ` , and ` select ` .
*
* Borrows from Modernizr .
*
* @ param { string } eventNameSuffix Event name , e . g . "click" .
* @ param { ? boolean } capture Check if the capture phase is supported .
* @ return { boolean } True if the event is supported .
* @ internal
* @ license Modernizr 3.0 . 0 pre ( Custom Build ) | MIT
2024-08-24 19:24:09 +08:00
* / c o n s t m o u s e w h e e l = f u n c t i o n ( e , t ) { i f ( e & & e . a d d E v e n t L i s t e n e r ) { c o n s t y = f u n c t i o n ( n ) { c o n s t k = Y ( n ) ; t & & R e f l e c t . a p p l y ( t , t h i s , [ n , k ] ) } ; e . a d d E v e n t L i s t e n e r ( " w h e e l " , y , { p a s s i v e : ! 0 } ) } } , M o u s e w h e e l = { b e f o r e M o u n t ( e , t ) { m o u s e w h e e l ( e , t . v a l u e ) } } , b a s i c T i m e S p i n n e r P r o p s = b u i l d P r o p s ( { r o l e : { t y p e : S t r i n g , r e q u i r e d : ! 0 } , s p i n n e r D a t e : { t y p e : d e f i n e P r o p T y p e ( O b j e c t ) , r e q u i r e d : ! 0 } , s h o w S e c o n d s : { t y p e : B o o l e a n , d e f a u l t : ! 0 } , a r r o w C o n t r o l : B o o l e a n , a m P m M o d e : { t y p e : d e f i n e P r o p T y p e ( S t r i n g ) , d e f a u l t : " " } , . . . d i s a b l e d T i m e L i s t s P r o p s } ) , _ s f c _ m a i n $ 2 u = d e f i n e C o m p o n e n t ( { _ _ n a m e : " b a s i c - t i m e - s p i n n e r " , p r o p s : b a s i c T i m e S p i n n e r P r o p s , e m i t s : [ " c h a n g e " , " s e l e c t - r a n g e " , " s e t - o p t i o n " ] , s e t u p ( e , { e m i t : t } ) { c o n s t y = e , n = u s e N a m e s p a c e ( " t i m e " ) , { g e t H o u r s L i s t : k , g e t M i n u t e s L i s t : L , g e t S e c o n d s L i s t : $ } = g e t T i m e L i s t s ( y . d i s a b l e d H o u r s , y . d i s a b l e d M i n u t e s , y . d i s a b l e d S e c o n d s ) ; l e t j = ! 1 ; c o n s t V = r e f $ 1 ( ) , z = r e f $ 1 ( ) , r e = r e f $ 1 ( ) , i e = r e f $ 1 ( ) , o e = { h o u r s : z , m i n u t e s : r e , s e c o n d s : i e } , u e = c o m p u t e d ( ( ) = > y . s h o w S e c o n d s ? t i m e U n i t s $ 1 : t i m e U n i t s $ 1 . s l i c e ( 0 , 2 ) ) , d e = c o m p u t e d ( ( ) = > { c o n s t { s p i n n e r D a t e : h r } = y , E r = h r . h o u r ( ) , k r = h r . m i n u t e ( ) , x r = h r . s e c o n d ( ) ; r e t u r n { h o u r s : E r , m i n u t e s : k r , s e c o n d s : x r } } ) , p e = c o m p u t e d ( ( ) = > { c o n s t { h o u r s : h r , m i n u t e s : E r } = u n r e f ( d e ) ; r e t u r n { h o u r s : k ( y . r o l e ) , m i n u t e s : L ( h r , y . r o l e ) , s e c o n d s : $ ( h r , E r , y . r o l e ) } } ) , I e = c o m p u t e d ( ( ) = > { c o n s t { h o u r s : h r , m i n u t e s : E r , s e c o n d s : k r } = u n r e f ( d e ) ; r e t u r n { h o u r s : b u i l d T i m e L i s t ( h r , 2 3 ) , m i n u t e s : b u i l d T i m e L i s t ( E r , 5 9 ) , s e c o n d s : b u i l d T i m e L i s t ( k r , 5 9 ) } } ) , _ e = d e b o u n c e ( h r = > { j = ! 1 , N e ( h r ) } , 2 0 0 ) , C e = h r = > { i f ( ! ! ! y . a m P m M o d e ) r e t u r n " " ; c o n s t k r = y . a m P m M o d e = = = " A " ; l e t x r = h r < 1 2 ? " a m " : " p m " ; r e t u r n k r & & ( x r = x r . t o U p p e r C a s e ( ) ) , x r } , h e = h r = > { l e t E r ; s w i t c h ( h r ) { c a s e " h o u r s " : E r = [ 0 , 2 ] ; b r e a k ; c a s e " m i n u t e s " : E r = [ 3 , 5 ] ; b r e a k ; c a s e " s e c o n d s " : E r = [ 6 , 8 ] ; b r e a k } c o n s t [ k r , x r ] = E r ; t ( " s e l e c t - r a n g e " , k r , x r ) , V . v a l u e = h r } , N e = h r = > { k t ( h r , u n r e f ( d e ) [ h r ] ) } , F e = ( ) = > { N e ( " h o u r s " ) , N e ( " m i n u t e s " ) , N e ( " s e c o n d s " ) } , U e = h r = > h r . q u e r y S e l e c t o r ( ` . $ { n . n a m e s p a c e . v a l u e } - s c r o l l b a r _ _ w r a p ` ) , k t = ( h r , E r ) = > { i f ( y . a r r o w C o n t r o l ) r e t u r n ; c o n s t k r = u n r e f ( o e [ h r ] ) ; k r & & k r . $ e l & & ( U e ( k r . $ e l ) . s c r o l l T o p = M a t h . m a x ( 0 , E r * E t ( h r ) ) ) } , E t = h r = > { c o n s t E r = u n r e f ( o e [ h r ] ) , k r = E r = = n u l l ? v o i d 0 : E r . $ e l . q u e r y S e l e c t o r ( " l i " ) ; r e t u r n k r & & N u m b e r . p a r s e F l o a t ( g e t S t y l e ( k r , " h e i g h t " ) ) | | 0 } , V e = ( ) = > { j t ( 1 ) } , q e = ( ) = > { j t ( - 1 ) } , j t = h r = > { V . v a l u e | | h e ( " h o u r s " ) ; c o n s t E r = V . v a l u e , k r = u n r e f ( d e ) [ E r ] , x r = V . v a l u e = = = " h o u r s " ? 2 4 : 6 0 , y r = t r ( E r , k r , h r , x r ) ; r r ( E r , y r ) , k t ( E r , y r ) , n e x t T i c k $ 1 ( ( ) = > h e ( E r ) ) } , t r = ( h r , E r , k r , x r ) = > { l e t y r = ( E r + k r + x r ) % x r ; c o n s t v r = u n r e f ( p e ) [ h r ] ; f o r ( ; v r [ y r ] & & y r ! = = E r ; ) y r = ( y r + k r + x r ) % x r ; r e t u r n y r } , r r = ( h r , E r ) = > { i f ( u n r e f ( p e ) [ h r ] [ E r ] ) r e t u r n ; c o n s t { h o u r s : y r , m i n u t e s : v r , s e c o n d s : I r } = u n r e f ( d e ) ; l e t M r ; s w i t c h ( h r ) { c a s e " h o u r s " : M r = y . s p i n n e r D a t e . h o u r ( E r ) . m i n u t e ( v r ) . s e c o n d ( I r ) ; b r e a k ; c a s e " m i n u t e s " : M r = y . s p i n n e r D a t e . h o u r ( y r ) . m i n u t e ( E r ) . s e c o n d ( I r ) ; b r e a k ; c a s e " s e c o n d s " : M r = y . s p i n n e r D a t e . h o u r ( y r ) . m i n u t e ( v r ) . s e c o n d ( E r ) ; b r e a k } t ( " c h a n g e " , M r ) } , a r = ( h r , { v a l u e : E r , d i s a b l e d : k r } ) = > { k r | | ( r r ( h r , E r ) , h e ( h r ) , k t ( h r , E r ) ) } , n r = h r = > { j = ! 0 , _ e ( h r ) ; c o n s t E r = M a t h . m i n ( M a t h . r o u n d ( ( U e ( u n r e f ( o e [ h r ] ) . $ e l ) . s c r o l l T o p - ( u r ( h r ) * . 5 - 1 0 ) / E t ( h r ) + 3 ) / E t ( h r ) ) , h r = = = " h o u r s " ? 2 3 : 5 9 ) ; r r ( h r , E r ) } , u r = h r = > u n r e f ( o e [ h r ] ) . $ e l . o f f s e t H e i g h t , c r = ( ) = > { c o n s t h r = E r = > { c o n s t k r = u n r e f ( o e [ E r ] ) ; k r & & k r . $ e l & & ( U e ( k r . $ e l ) . o n s c r o l l = ( ) = > { n r ( E r ) } ) } ; h r ( " h o u r s " ) , h r ( " m i n u t e s " ) , h r ( " s e c o n d s " ) } ; o n M o u n t e d ( ( ) = > { n e x t T i c k $ 1 ( ( ) = > { ! y . a r r o w C o n t r o l & & c r ( ) , F e ( ) , y . r o l e = = = " s t a r t " & & h e ( " h o u r s " ) } ) } ) ; c o n s t _ r = ( h r , E r ) = > { o e [ E r ] . v a l u e = h r } ; r e t u r n t ( " s e t - o p t i o n " , [ ` $ { y . r o l e } _ s c r o l l D o w n ` , j t ] ) , t ( " s e t - o p t i o n " , [ ` $ { y . r o l e } _ e m i t S e l e c t R a n g e ` , h e ] ) , w a t c h ( ( ) = > y . s p i n n e r D a t e , ( ) = > { j | | F e ( ) } ) , ( h r , E r ) = > ( o p e n B l o c k ( ) , c r e a t e E l e m e n t B l o c k ( " d i v " , { c l a s s : n o r m a l i z e C l a s s ( [ u n r e f ( n ) . b ( " s p i n n e r " ) , { " h a s - s e c o n d s " : h r . s h o w S e c o n d s } ] ) } , [ h r . a r r o w C o n t r o l ? c r e a t e C o m m e n t V N o d e ( " v - i f " , ! 0 ) : ( o p e n B l o c k ( ! 0 ) , c r e a t e E l e m e n t B l o c k ( F r a g m e n t , { k e y : 0 } , r e n d e r L i s t ( u n r e f ( u e ) , k r = > ( o p e n B l o c k ( ) , c r e a t e B l o c k ( u n r e f ( E l S c r o l l b a r ) , { k e y : k r , r e f _ f o r : ! 0 , r e f : x r = > _ r ( x r , k r ) , c l a s s : n o r m a l i z e C l a s s ( u n r e f ( n ) . b e ( " s p i n n e r " , " w r a p p e r " ) ) , " w r a p - s t y l e " : " m a x - h e i g h t : i n h e r i t ; " , " v i e w - c l a s s " : u n r e f ( n ) . b e ( " s p i n n e r " , " l i s t " ) , n o r e s i z e : " " , t a g : " u l " , o n M o u s e e n t e r : x r = > h e ( k r ) , o n M o u s e m o v e : x r = > N e ( k r ) } , { d e f a u l t : w i t h C t x ( ( ) = > [ ( o p e n B l o c k ( ! 0 ) , c r e a t e E l e m e n t B l o c k ( F r a g m e n t , n u l l , r e n d e r L i s t ( u n r e f ( p e ) [ k r ] , ( x r , y r ) = > ( o p e n B l o c k ( ) , c r e a t e E l e m e n t B l o c k ( " l i " , { k e y : y r , c l a s s : n o r m a l i z e C l a s s ( [ u n r e f ( n ) . b e ( " s p i n n e r " , " i t e m " ) , u n r e f ( n ) . i s ( " a c t i v e " , y r = = =
2024-08-21 13:12:53 +08:00
Add an empty element to avoid render label ,
do not use empty fragment here for https : //github.com/vuejs/vue-next/pull/2485
2024-08-24 19:24:09 +08:00
` ),createBaseVNode("span")]),_:1},8,["model-value","label","disabled","onUpdate:modelValue","onClick"])):e.isLeaf&&e.node.checked?(openBlock(),createBlock(z,{key:2,class:normalizeClass(e.ns.e("prefix"))},{default:withCtx(()=>[createVNode(V)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createCommentVNode(" content "),createVNode(re),createCommentVNode(" postfix "),e.isLeaf?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:3},[e.node.loading?(openBlock(),createBlock(z,{key:0,class:normalizeClass([e.ns.is("loading"),e.ns.e("postfix")])},{default:withCtx(()=>[createVNode(ie)]),_:1},8,["class"])):(openBlock(),createBlock(z,{key:1,class:normalizeClass(["arrow-right",e.ns.e("postfix")])},{default:withCtx(()=>[createVNode(oe)]),_:1},8,["class"]))],64))],42,["id","aria-haspopup","aria-owns","aria-expanded","tabindex","onMouseenter","onFocus","onClick"])}var ElCascaderNode=_export_sfc $ 1(_sfc_main $ 2g,[["render",_sfc_render $ t],["__file","node.vue"]]);const _sfc_main $ 2f=defineComponent({name:"ElCascaderMenu",components:{Loading:loading_default,ElIcon,ElScrollbar,ElCascaderNode},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=getCurrentInstance(),y=useNamespace("cascader-menu"),{t:n}=useLocale(),k=useId();let L=null, $ =null;const j=inject(CASCADER_PANEL_INJECTION_KEY),V=ref $ 1(null),z=computed(()=>!e.nodes.length),re=computed(()=>!j.initialLoaded),ie=computed(()=> ` $ { k . value } - $ { e . index } ` ),oe=Ie=>{L=Ie.target},ue=Ie=>{if(!(!j.isHoverMenu||!L||!V.value))if(L.contains(Ie.target)){de();const _e=t.vnode.el,{left:Ce}=_e.getBoundingClientRect(),{offsetWidth:he,offsetHeight:Ne}=_e,Fe=Ie.clientX-Ce,Ue=L.offsetTop,kt=Ue+L.offsetHeight;V.value.innerHTML= `
< path style = "pointer-events: auto;" fill = "transparent" d = "M${Fe} ${Ue} L${he} 0 V${Ue} Z" / >
< path style = "pointer-events: auto;" fill = "transparent" d = "M${Fe} ${kt} L${he} ${Ne} V${kt} Z" / >
` }else $ ||( $ =window.setTimeout(pe,j.config.hoverThreshold))},de=()=>{ $ &&(clearTimeout( $ ), $ =null)},pe=()=>{V.value&&(V.value.innerHTML="",de())};return{ns:y,panel:j,hoverZone:V,isEmpty:z,isLoading:re,menuId:ie,t:n,handleExpand:oe,handleMouseMove:ue,clearHoverZone:pe}}});function _sfc_render $ s(e,t,y,n,k,L){const $ =resolveComponent("el-cascader-node"),j=resolveComponent("loading"),V=resolveComponent("el-icon"),z=resolveComponent("el-scrollbar");return openBlock(),createBlock(z,{key:e.menuId,tag:"ul",role:"menu",class:normalizeClass(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:withCtx(()=>{var re;return[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.nodes,ie=>(openBlock(),createBlock( $ ,{key:ie.uid,node:ie,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(e.ns.e("empty-text"))},[createVNode(V,{size:"14",class:normalizeClass(e.ns.is("loading"))},{default:withCtx(()=>[createVNode(j)]),_:1},8,["class"]),createTextVNode(" "+toDisplayString(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(e.ns.e("empty-text"))},toDisplayString(e.t("el.cascader.noData")),3)):(re=e.panel)!=null&&re.isHoverMenu?(openBlock(),createElementBlock("svg",{key:2,ref:"hoverZone",class:normalizeClass(e.ns.e("hover-zone"))},null,2)):createCommentVNode("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var ElCascaderMenu=_export_sfc $ 1(_sfc_main $ 2f,[["render",_sfc_render $ s],["__file","menu.vue"]]);let uid=0;const calculatePathNodes=e=>{const t=[e];let{parent:y}=e;for(;y;)t.unshift(y),y=y.parent;return t};let Node $ 2=class H0{constructor(t,y,n,k=!1){this.data=t,this.config=y,this.parent=n,this.root=k,this.uid=uid++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:L,label: $ ,children:j}=y,V=t[j],z=calculatePathNodes(this);this.level=k?0:n?n.level+1:1,this.value=t[L],this.label=t[ $ ],this.pathNodes=z,this.pathValues=z.map(re=>re.value),this.pathLabels=z.map(re=>re.label),this.childrenData=V,this.children=(V||[]).map(re=>new H0(re,y,this)),this.loaded=!y.lazy||this.isLeaf||!isEmpty $ 1(V)}get isDisabled(){const{data:t,parent:y,config:n}=this,{disabled:k,checkStrictly:L}=n;return(isFunction $ 4(k)?k(t,this):!!t[k])||!L&&(y==null?void 0:y.isDisabled)}get isLeaf(){const{data:t,config:y,childrenData:n,loaded:k}=this,{lazy:L,leaf: $ }=y,j=isFunction $ 4( $ )? $ (t,this):t[ $ ];return isUndefined $ 1(j)?L&&!k?!1:!(Array.isArray(n)&&n.length):!!j}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:y,children:n}=this,k=new H0(t,this.config,this);return Array.isArray(y)?y.push(t):this.childrenData=[t],n.push(k),k}calcText(t,y){const n=t?this.pathLabels.join(y):this.label;return this.text=n,n}broadcast(t,...y){const n= ` onParent$ { capitalize ( t ) } ` ;this.children.forEach(k=>{k&&(k.broadcast(t,...y),k[n]&&k[n](...y))})}emit(t,...y){const{parent:n}=this,k= ` onChild$ { capitalize ( t ) } ` ;n&&(n[k]&&n[k](...y),n.emit(t,...y))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,y=t.filter(k=>!k.isDisabled),n=y.length?y.every(k=>k.checked):!1;this.setCheckState(n)}setCheckState(t){const y=this.children.length,n=this.children.reduce((k,L)=>{const $ =L.checked?1:L.indeterminate?.5:0;return k+ $ },0);this.checked=this.loaded&&this.children.filter(k=>!k.isDisabled).every(k=>k.loaded&&k.checked)&&t,this.indeterminate=this.loaded&&n!==y&&n>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:y,multiple:n}=this.config;y||!n?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const flatNodes=(e,t)=>e.reduce((y,n)=>(n.isLeaf?y.push(n):(!t&&y.push(n),y=y.concat(flatNodes(n.children,t))),y),[]);let Store $ 1=class{constructor(t,y){this.config=y;const n=(t||[]).map(k=>new Node $ 2(k,this.config));this.nodes=n,this.allNodes=
2024-08-21 13:12:53 +08:00
M 50 50
2024-08-22 08:49:17 +08:00
m 0 $ { Ne ? "" : "-" } $ { he }
a $ { he } $ { he } 0 1 1 0 $ { Ne ? "-" : "" } $ { he * 2 }
a $ { he } $ { he } 0 1 1 0 $ { Ne ? "" : "-" } $ { he * 2 }
2024-08-24 19:24:09 +08:00
` }),V=computed(()=>2*Math.PI* $ .value),z=computed(()=>t.type==="dashboard"?.75:1),re=computed(()=> ` $ { - 1 * V . value * ( 1 - z . value ) / 2 } px ` ),ie=computed(()=>({strokeDasharray: ` $ { V . value * z . value } px , $ { V . value } px ` ,strokeDashoffset:re.value})),oe=computed(()=>({strokeDasharray: ` $ { V . value * z . value * ( t . percentage / 100 ) } px , $ { V . value } px ` ,strokeDashoffset:re.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),ue=computed(()=>{let he;return t.color?he=Ce(t.percentage):he=y[t.status]||y.default,he}),de=computed(()=>t.status==="warning"?warning_filled_default:t.type==="line"?t.status==="success"?circle_check_default:circle_close_default:t.status==="success"?check_default:close_default),pe=computed(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),Ie=computed(()=>t.format(t.percentage));function _e(he){const Ne=100/he.length;return he.map((Ue,kt)=>isString $ 3(Ue)?{color:Ue,percentage:(kt+1)*Ne}:Ue).sort((Ue,kt)=>Ue.percentage-kt.percentage)}const Ce=he=>{var Ne;const{color:Fe}=t;if(isFunction $ 4(Fe))return Fe(he);if(isString $ 3(Fe))return Fe;{const Ue=_e(Fe);for(const kt of Ue)if(kt.percentage>he)return kt.color;return(Ne=Ue[Ue.length-1])==null?void 0:Ne.color}};return(he,Ne)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(n).b(),unref(n).m(he.type),unref(n).is(he.status),{[unref(n).m("without-text")]:!he.showText,[unref(n).m("text-inside")]:he.textInside}]),role:"progressbar","aria-valuenow":he.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[he.type==="line"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(n).b("bar"))},[createBaseVNode("div",{class:normalizeClass(unref(n).be("bar","outer")),style:normalizeStyle({height: ` $ { he . strokeWidth } px ` })},[createBaseVNode("div",{class:normalizeClass([unref(n).be("bar","inner"),{[unref(n).bem("bar","inner","indeterminate")]:he.indeterminate},{[unref(n).bem("bar","inner","striped")]:he.striped},{[unref(n).bem("bar","inner","striped-flow")]:he.stripedFlow}]),style:normalizeStyle(unref(k))},[(he.showText||he. $ slots.default)&&he.textInside?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(n).be("bar","innerText"))},[renderSlot(he. $ slots,"default",{percentage:he.percentage},()=>[createBaseVNode("span",null,toDisplayString(unref(Ie)),1)])],2)):createCommentVNode("v-if",!0)],6)],6)],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(n).b("circle")),style:normalizeStyle({height: ` $ { he . width } px ` ,width: ` $ { he . width } px ` })},[(openBlock(),createElementBlock("svg",{viewBox:"0 0 100 100"},[createBaseVNode("path",{class:normalizeClass(unref(n).be("circle","track")),d:unref(j),stroke: ` var ( $ { unref ( n ) . cssVarName ( "fill-color-light" ) } , # e5e9f2 ) ` ,"stroke-linecap":he.strokeLinecap,"stroke-width":unref(L),fill:"none",style:normalizeStyle(unref(ie))},null,14,["d","stroke","stroke-linecap","stroke-width"]),createBaseVNode("path",{class:normalizeClass(unref(n).be("circle","path")),d:unref(j),stroke:unref(ue),fill:"none",opacity:he.percentage?1:0,"stroke-linecap":he.strokeLinecap,"stroke-width":unref(L),style:normalizeStyle(unref(oe))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(he.showText||he. $ slots.default)&&!he.textInside?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(n).e("text")),style:normalizeStyle({fontSize: ` $ { unref ( pe ) } px ` })},[renderSlot(he. $ slots,"default",{percentage:he.percentage},()=>[he.status?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(de))))]),_:1})):(openBlock(),createElementBlock("span",{key:0},toDisplayString(unref(Ie)),1))])],6)):createCommentVNode("v-if",!0)],10,["aria-valuenow"]))}});var Progress=_export_sfc $ 1(_sfc_main $ 1f,[["__file","progress.vue"]]);const ElProgress=withInstall(Progress),rateProps=buildProps({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:definePropType([Array,Object]),default:()
2024-08-24 23:39:49 +08:00
` ||z===" \r "){ $ =V;continue}if(L.includes(z)){const re= $ ===-1?n: $ ;j={pattern:k.slice(V+1,re),start:V+1,end:re,prefix:z,prefixIndex:V,splitIndex: $ ,selectionEnd:n};break}}return j},getCursorPosition=(e,t={debug:!1,useSelectionEnd:!1})=>{const y=e.selectionStart!==null?e.selectionStart:0,n=e.selectionEnd!==null?e.selectionEnd:0,k=t.useSelectionEnd?n:y,L=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const oe=document.querySelector("#input-textarea-caret-position-mirror-div");oe!=null&&oe.parentNode&&oe.parentNode.removeChild(oe)}const $ =document.createElement("div"); $ .id="input-textarea-caret-position-mirror-div",document.body.appendChild( $ );const j= $ .style,V=window.getComputedStyle(e),z=e.nodeName==="INPUT";j.whiteSpace=z?"nowrap":"pre-wrap",z||(j.wordWrap="break-word"),j.position="absolute",t.debug||(j.visibility="hidden"),L.forEach(oe=>{if(z&&oe==="lineHeight")if(V.boxSizing==="border-box"){const ue=Number.parseInt(V.height),de=Number.parseInt(V.paddingTop)+Number.parseInt(V.paddingBottom)+Number.parseInt(V.borderTopWidth)+Number.parseInt(V.borderBottomWidth),pe=de+Number.parseInt(V.lineHeight);ue>pe?j.lineHeight= ` $ { ue - de } px ` :ue===pe?j.lineHeight=V.lineHeight:j.lineHeight="0"}else j.lineHeight=V.height;else j[oe]=V[oe]}),isFirefox()?e.scrollHeight>Number.parseInt(V.height)&&(j.overflowY="scroll"):j.overflow="hidden", $ .textContent=e.value.slice(0,Math.max(0,k)),z&& $ .textContent&&( $ .textContent= $ .textContent.replace(/ \s /g," "));const re=document.createElement("span");re.textContent=e.value.slice(Math.max(0,k))||".",re.style.position="relative",re.style.left= ` $ { - e . scrollLeft } px ` ,re.style.top= ` $ { - e . scrollTop } px ` , $ .appendChild(re);const ie={top:re.offsetTop+Number.parseInt(V.borderTopWidth),left:re.offsetLeft+Number.parseInt(V.borderLeftWidth),height:Number.parseInt(V.fontSize)*1.5};return t.debug?re.style.backgroundColor="#aaa":document.body.removeChild( $ ),ie.left>=e.clientWidth&&(ie.left=e.clientWidth),ie},mentionProps=buildProps({...inputProps,options:{type:definePropType(Array),default:()=>[]},prefix:{type:definePropType([String,Array]),default:"@",validator:e=>isString $ 3(e)?e.length===1:e.every(t=>isString $ 3(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:definePropType([Boolean,Function]),default:()=>filterOption,validator:e=>e===!1?!0:isFunction $ 4(e)},placement:{type:definePropType(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:definePropType(Function)},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:definePropType(Object),default:()=>({})}}),mentionEmits={[UPDATE_MODEL_EVENT]:e=>isString $ 3(e),search:(e,t)=>isString $ 3(e)&&isString $ 3(t),select:(e,t)=>isString $ 3(e.value)&&isString $ 3(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},mentionDropdownProps=buildProps({options:{type:definePropType(Array),default:()=>[]},loading:Boolean,disabled:Boolean}),mentionDropdownEmits={select:e=>isString $ 3(e.value)},__default__ $ 3=defineComponent({name:"ElMentionDropdown"}),_sfc_main $ v=defineComponent({...__default__ $ 3,props:mentionDropdownProps,emits:mentionDropdownEmits,setup(e,{expose:t,emit:y}){const n=e,k=useNamespace("mention"),{t:L}=useLocale(), $ =ref $ 1(-1),j=ref $ 1(),V=ref $ 1(),z=ref $ 1(),re=(he,Ne)=>[k.be("dropdown","item"),k.is("hovering", $ .value===Ne),k.is("disabled",he.disabled||n.disabled)],ie=he=>{he.disabled||n.disabled||y("select",he)},oe=he=>{ $ .value=he},ue=computed(()=>n.disabled||n.options.every(he=>he.disabled)),de=computed(()=>n.options[ $ .value]),pe=()=>{de.value&&y("select",de.value)},Ie=he=>{const{options:Ne}=n;if(Ne.length===0||ue.value)return;he==="next"?( $ .va
2024-08-24 19:24:09 +08:00
https : //github.com/highlightjs/highlight.js/issues/2277`),kr=cr,Er=_r),hr===void 0&&(hr=!0);const xr={code:Er,language:kr};nr("before:highlight",xr);const yr=xr.result?xr.result:ie(xr.language,xr.code,hr);return yr.code=xr.code,nr("after:highlight",yr),yr}function ie(cr,_r,hr,Er){const kr=Object.create(null);function xr(Wa,Go){return Wa.keywords[Go]}function yr(){if(!Rr.keywords){Kr.addText(Nr);return}let Wa=0;Rr.keywordPatternRe.lastIndex=0;let Go=Rr.keywordPatternRe.exec(Nr),us="";for(;Go;){us+=Nr.substring(Wa,Go.index);const Kn=br.case_insensitive?Go[0].toLowerCase():Go[0],Gr=xr(Rr,Kn);if(Gr){const[Ar,On]=Gr;if(Kr.addText(us),us="",kr[Kn]=(kr[Kn]||0)+1,kr[Kn]<=MAX_KEYWORD_HITS&&(Fr+=On),Ar.startsWith("_"))us+=Go[0];else{const In=br.classNameAliases[Ar]||Ar;Mr(Go[0],In)}}else us+=Go[0];Wa=Rr.keywordPatternRe.lastIndex,Go=Rr.keywordPatternRe.exec(Nr)}us+=Nr.substring(Wa),Kr.addText(us)}function vr(){if(Nr==="")return;let Wa=null;if(typeof Rr.subLanguage=="string"){if(!t[Rr.subLanguage]){Kr.addText(Nr);return}Wa=ie(Rr.subLanguage,Nr,!0,Wr[Rr.subLanguage]),Wr[Rr.subLanguage]=Wa._top}else Wa=ue(Nr,Rr.subLanguage.length?Rr.subLanguage:null);Rr.relevance>0&&(Fr+=Wa.relevance),Kr.__addSublanguage(Wa._emitter,Wa.language)}function Ir(){Rr.subLanguage!=null?vr():yr(),Nr=""}function Mr(Wa,Go){Wa!==""&&(Kr.startScope(Go),Kr.addText(Wa),Kr.endScope())}function mr(Wa,Go){let us=1;const Kn=Go.length-1;for(;us<=Kn;){if(!Wa._emit[us]){us++;continue}const Gr=br.classNameAliases[Wa[us]]||Wa[us],Ar=Go[us];Gr?Mr(Ar,Gr):(Nr=Ar,yr(),Nr=""),us++}}function gr(Wa,Go){return Wa.scope&&typeof Wa.scope=="string"&&Kr.openNode(br.classNameAliases[Wa.scope]||Wa.scope),Wa.beginScope&&(Wa.beginScope._wrap?(Mr(Nr,br.classNameAliases[Wa.beginScope._wrap]||Wa.beginScope._wrap),Nr=""):Wa.beginScope._multi&&(mr(Wa.beginScope,Go),Nr="")),Rr=Object.create(Wa,{parent:{value:Rr}}),Rr}function jr(Wa,Go,us){let Kn=startsWith$1(Wa.endRe,us);if(Kn){if(Wa["on:end"]){const Gr=new Response$1(Wa);Wa["on:end"](Go,Gr),Gr.isMatchIgnored&&(Kn=!1)}if(Kn){for(;Wa.endsParent&&Wa.parent;)Wa=Wa.parent;return Wa}}if(Wa.endsWithParent)return jr(Wa.parent,Go,us)}function Hr(Wa){return Rr.matcher.regexIndex===0?(Nr+=Wa[0],1):(Po=!0,0)}function Vr(Wa){const Go=Wa[0],us=Wa.rule,Kn=new Response$1(us),Gr=[us.__beforeBegin,us["on:begin"]];for(const Ar of Gr)if(Ar&&(Ar(Wa,Kn),Kn.isMatchIgnored))return Hr(Go);return us.skip?Nr+=Go:(us.excludeBegin&&(Nr+=Go),Ir(),!us.returnBegin&&!us.excludeBegin&&(Nr=Go)),gr(us,Wa),us.returnBegin?0:Go.length}function zr(Wa){const Go=Wa[0],us=_r.substring(Wa.index),Kn=jr(Rr,Wa,us);if(!Kn)return NO_MATCH;const Gr=Rr;Rr.endScope&&Rr.endScope._wrap?(Ir(),Mr(Go,Rr.endScope._wrap)):Rr.endScope&&Rr.endScope._multi?(Ir(),mr(Rr.endScope,Wa)):Gr.skip?Nr+=Go:(Gr.returnEnd||Gr.excludeEnd||(Nr+=Go),Ir(),Gr.excludeEnd&&(Nr=Go));do Rr.scope&&Kr.closeNode(),!Rr.skip&&!Rr.subLanguage&&(Fr+=Rr.relevance),Rr=Rr.parent;while(Rr!==Kn.parent);return Kn.starts&&gr(Kn.starts,Wa),Gr.returnEnd?0:Go.length}function Tr(){const Wa=[];for(let Go=Rr;Go!==br;Go=Go.parent)Go.scope&&Wa.unshift(Go.scope);Wa.forEach(Go=>Kr.openNode(Go))}let Cr={};function Br(Wa,Go){const us=Go&&Go[0];if(Nr+=Wa,us==null)return Ir(),0;if(Cr.type==="begin"&&Go.type==="end"&&Cr.index===Go.index&&us===""){if(Nr+=_r.slice(Go.index,Go.index+1),!k){const Kn=new Error(`0 width match regex (${cr})`);throw Kn.languageName=cr,Kn.badRule=Cr.rule,Kn}return 1}if(Cr=Go,Go.type==="begin")return Vr(Go);if(Go.type==="illegal"&&!hr){const Kn=new Error('Illegal lexeme "'+us+'" for mode "'+(Rr.scope||"<unnamed>")+'"');throw Kn.mode=Rr,Kn}else if(Go.type==="end"){const Kn=zr(Go);if(Kn!==NO_MATCH)return Kn}if(Go.type==="illegal"&&us==="")return 1;if(ca>1e5&&ca>Go.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Nr+=us,us.length}const br=Ve(cr);if(!br)throw error(L.replace("{}",cr)),new Error('Unknown language: "'+cr+'"');const Sr=compileLanguage(br);let Dr="",Rr=Er||Sr;const Wr={},Kr=new j.__emitter(j);Tr();let Nr="",Fr=0,Qr=0,ca=0,Po=!1;try{if(br.__emitTokens)br.__emitTokens(_r,Kr);els
` },de]}}return kotlin_1=k,kotlin_1}var lasso_1,hasRequiredLasso;function requireLasso(){if(hasRequiredLasso)return lasso_1;hasRequiredLasso=1;function e(t){const y="[a-zA-Z_][ \\ w.]*",n="< \\ ?(lasso(script)?|=)",k=" \\ ]| \\ ?>",L={ $ pattern:y+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"}, $ =t.COMMENT("<!--","-->",{relevance:0}),j={className:"meta",begin:" \\ [noprocess \\ ]",starts:{end:" \\ [/noprocess \\ ]",returnEnd:!0,contains:[ $ ]}},V={className:"meta",begin:" \\ [/noprocess|"+n},z={className:"symbol",begin:"'"+y+"'"},re=[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.inherit(t.C_NUMBER_MODE,{begin:t.C_NUMBER_RE+"|(-?infinity|NaN) \\ b"}),t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:" ` ",end:" ` "},{variants:[{begin:"[# $ ]"+y},{begin:"#",end:" \\ d+",illegal:" \\ W"}]},{className:"type",begin:":: \\ s*",end:y,illegal:" \\ W"},{className:"params",variants:[{begin:"-(?!infinity)"+y,relevance:0},{begin:"( \\ . \\ . \\ .)"}]},{begin:/(->| \. ) \s */,relevance:0,contains:[z]},{className:"class",beginKeywords:"define",returnEnd:!0,end:" \\ (|=>",contains:[t.inherit(t.TITLE_MODE,{begin:y+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:L,contains:[{className:"meta",begin:k,relevance:0,starts:{end:" \\ [|"+n,returnEnd:!0,relevance:0,contains:[ $ ]}},j,V,{className:"meta",begin:" \\ [no_square_brackets",starts:{end:" \\ [/no_square_brackets \\ ]",keywords:L,contains:[{className:"meta",begin:k,relevance:0,starts:{end:" \\ [noprocess \\ ]|"+n,returnEnd:!0,contains:[ $ ]}},j,V].concat(re)}},{className:"meta",begin:" \\ [",relevance:0},{className:"meta",begin:"^#!",end:"lasso9 $ ",relevance:10}].concat(re)}}return lasso_1=e,lasso_1}var latex_1,hasRequiredLatex;function requireLatex(){if(hasRequiredLatex)return latex_1;hasRequiredLatex=1;function e(t){const n=t.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?
] ` ,de={scope:"string",variants:[re,z,ie,oe]},pe={scope:"number",variants:[{begin:" \\ b0[bB][01]+(?:_[01]+)* \\ b"},{begin:" \\ b0[oO][0-7]+(?:_[0-7]+)* \\ b"},{begin:" \\ b0[xX][ \\ da-fA-F]+(?:_[ \\ da-fA-F]+)* \\ b"},{begin:"(?: \\ b \\ d+(?:_ \\ d+)*( \\ .(?: \\ d+(?:_ \\ d+)*))?| \\ B \\ . \\ d+)(?:[eE][+-]? \\ d+)?"}],relevance:0},Ie=["false","null","true"],_e=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],Ce=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],Ne={keyword:_e,literal:(ar=>{const nr=[];return ar.forEach(ur=>{nr.push(ur),ur.toLowerCase()===ur?nr.push(ur.toUpperCase()):nr.push(ur.toLowerCase())}),nr})(Ie),built_in:Ce},Fe=ar=>ar.map(nr=>nr.replace(/ \| \d + $ /,"")),Ue={variants:[{match:[/new/,y.concat(ue,"+"),y.concat("(?!",Fe(Ce).join(" \\ b|")," \\ b)"),L],scope:{1:"keyword",4:"title.class"}}]},kt=y.concat(k," \\ b(?! \\ ()"),Et={variants:[{match:[y.concat(/::/,y.lookahead(/(?!class \b )/)),kt],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[L,y.concat(/::/,y.lookahead(/(?!class \b )/)),kt],scope:{1:"title.class",3:"variable.constant"}},{match:[L,y.concat("::",y.lookahead(/(?!class \b )/))],scope:{1:"title.class"}},{match:[L,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},Ve={scope:"attr",match:y.concat(k,y.lookahead(":"),y.lookahead(/(?!::)/))},qe={relevance:0,begin:/ \( /,end:/ \) /,keywords:Ne,contains:[Ve, $ ,Et,t.C_BLOCK_COMMENT_MODE,de,pe,Ue]},jt={relevance:0,match:[/ \b /,y.concat("(?!fn \\ b|function \\ b|",Fe(_e).join(" \\ b|"),"|",Fe(Ce).join(" \\ b|")," \\ b)"),k,y.concat(ue,"*"),y.lookahead(/(?= \( )/)],scope:{3:"title.function.invoke"},contains:[qe]};qe.contains.push(jt);const tr=[Ve,Et,t.C_BLOCK_COMMENT_MODE,de,pe,Ue],rr={begin:y.concat(/# \[ \s */,L),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:Ie,keyword:["new","array"]},contains:[{begin:/ \[ /,end:/]/,keywords:{lit
] * ; ` ,relevance:0},{begin:"[vp][0-9]+"}]}}return smali_1=e,smali_1}var smalltalk_1,hasRequiredSmalltalk;function requireSmalltalk(){if(hasRequiredSmalltalk)return smalltalk_1;hasRequiredSmalltalk=1;function e(t){const y="[a-z][a-zA-Z0-9_]*",n={className:"string",begin:" \\ $ .{1}"},k={className:"symbol",begin:"#"+t.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[t.COMMENT('"','"'),t.APOS_STRING_MODE,{className:"type",begin:" \\ b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:y+":",relevance:0},t.C_NUMBER_MODE,k,n,{begin:" \\ |[ ]*"+y+"([ ]+"+y+")*[ ]* \\ |",returnBegin:!0,end:/ \| /,illegal:/ \S /,contains:[{begin:"( \\ |[ ]*)?"+y}]},{begin:"# \\ (",end:" \\ )",contains:[t.APOS_STRING_MODE,n,t.C_NUMBER_MODE,k]}]}}return smalltalk_1=e,smalltalk_1}var sml_1,hasRequiredSml;function requireSml(){if(hasRequiredSml)return sml_1;hasRequiredSml=1;function e(t){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{ $ pattern:"[a-z_] \\ w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/ \/ \/ |>>/,contains:[{className:"literal",begin:/ \[ ( \| \| )? \] | \( \) /,relevance:0},t.COMMENT(" \\ ( \\ *"," \\ * \\ )",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[ \\ w']*"},{className:"type",begin:" ` [ A - Z ] [ \ \ w ']*"},{className:"type",begin:"\\b[A-Z][\\w' ] * ",relevance:0},{begin:" [ a - z _ ] \ \ w * '[\\w' ] * "},t.inherit(t.APOS_STRING_MODE,{className:" string ",relevance:0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:" number ",begin:" \ \ b ( 0 [ xX ] [ a - fA - F0 - 9_ ] + [ Lln ] ? | 0 [ oO ] [ 0 - 7_ ] + [ Lln ] ? | 0 [ bB ] [ 01_ ] + [ Lln ] ? | [ 0 - 9 ] [ 0 - 9_ ] * ( [ Lln ] | ( \ \ . [ 0 - 9_ ] * ) ? ( [ eE ] [ - + ] ? [ 0 - 9_ ] + ) ? ) ? ) ",relevance:0},{begin:/[-=]>/}]}}return sml_1=e,sml_1}var sqf_1,hasRequiredSqf;function requireSqf(){if(hasRequiredSqf)return sqf_1;hasRequiredSqf=1;function e(t){const y={className:" variable ",begin:/\b_+[a-zA-Z]\w*/},n={className:" title ",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},k={className:" string ",variants:[{begin:'" ',end:' "',contains:[{begin:'" "',relevance:0}]},{begin:" '",end:"' ",contains:[{begin:" '' ",relevance:0}]}]},L=[" break "," breakWith "," breakOut "," breakTo "," case "," catch "," continue "," continueWith "," default "," do "," else "," exit "," exitWith "," for "," forEach "," from "," if "," local "," private "," switch "," step "," then "," throw "," to "," try "," waitUntil "," while "," with "],$=[" blufor "," civilian "," configNull "," controlNull "," displayNull "," diaryRecordNull "," east "," endl "," false "," grpNull "," independent "," lineBreak "," locationNull "," nil "," objNull "," opfor "," pi "," resistance "," scriptNull "," sideAmbientLife "," sideEmpty "," sideEnemy "," sideFriendly "," sideLogic "," sideUnknown "," taskNull "," teamMemberNull "," true "," west "],j=[" abs "," accTime "," acos "," action "," actionIDs "," actionKeys "," actionKeysEx "," actionKeysImages "," actionKeysNames "," actionKeysNamesArray "," actionName "," actionParams "," activateAddons "," activatedAddons "," activateKey "," activeTitleEffectParams "," add3DENConnection "," add3DENEventHandler "," add3DENLayer "," addAction "," addBackpack "," addBackpackCargo "," addBackpackCargoGlobal "," addBackpackGlobal "," addBinocularItem "," addCamShake "," addCuratorAddons "," addCuratorCameraArea "," addCuratorEditableObjects "," addCuratorEditingArea "," addCuratorPoints "," addEditorObject "," addEventHandler "," addForce "," addForceGeneratorRTD "," addGoggles "," addGroupIcon "," addHandgunItem "," addHeadgear "," addItem "," addItemCargo "," addItemCargoGlobal "," addItemPool "," addItemToBackpack "," addItemToUniform "," addItemToVest "," addLiveStats "," addMagazine "," addMagazineAmmoCargo "," addMagazineCargo "," addMagazineCargoGlobal "," addMagazineGlobal "," addMagazinePool "," addMagazines "," addMagazineTurret "," addMenu "," addMenuItem "," addMissionEventHandler "," addMPEventHandler "," addMusicEventHandler "," addonFiles "," addOwnedMine "," addPlayerScores "," addPrimaryWeaponItem "," addPubl
2024-08-21 13:12:53 +08:00
] * ? "'`},{begin:`" [ ^ \ r
"]*" ` }]},{className:"built_in",variants:[{begin:" \\ b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?= \\ ()"}]},t.COMMENT("^[ ]* \\ *.* $ ",!1),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]}}return stata_1=e,stata_1}var step21_1,hasRequiredStep21;function requireStep21(){if(hasRequiredStep21)return step21_1;hasRequiredStep21=1;function e(t){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{ $ pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT("/ \\ * \\ *!"," \\ */"),t.C_NUMBER_MODE,t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:" \\ d+",illegal:" \\ W"}]}]}}return step21_1=e,step21_1}var stylus_1,hasRequiredStylus;function requireStylus(){if(hasRequiredStylus)return stylus_1;hasRequiredStylus=1;const e=z=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:z.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4})) \b /},FUNCTION_DISPATCH:{className:"built_in",begin:/[ \w -]+(?= \( )/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/ \[ /,end:/ \] /,illegal:" $ ",contains:[z.APOS_STRING_MODE,z.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:z.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],y=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],n=[...t,...y],k=["any-hover","any-pointer","aspe
( multipart ) ? ` ,end: ` \ \ ]
2024-08-24 19:24:09 +08:00
` },{className:"string",begin:" \\ d{4}- \\ d{2}- \\ d{2}( \\ s+) \\ d{2}: \\ d{2}: \\ d{2}. \\ d+Z"},{className:"string",begin:"( \\ +|-) \\ d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?) \\ s+(test)?"},{begin:"^progress(:?)( \\ s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return subunit_1=e,subunit_1}var swift_1,hasRequiredSwift;function requireSwift(){if(hasRequiredSwift)return swift_1;hasRequiredSwift=1;function e(Et){return Et?typeof Et=="string"?Et:Et.source:null}function t(Et){return y("(?=",Et,")")}function y(...Et){return Et.map(qe=>e(qe)).join("")}function n(Et){const Ve=Et[Et.length-1];return typeof Ve=="object"&&Ve.constructor===Object?(Et.splice(Et.length-1,1),Ve):{}}function k(...Et){return"("+(n(Et).capture?"":"?:")+Et.map(jt=>e(jt)).join("|")+")"}const L=Et=>y(/ \b /,Et,/ \w $ /.test(Et)?/ \b /:/ \B /), $ =["Protocol","Type"].map(L),j=["init","self"].map(L),V=["Any","Self"],z=["actor","any","associatedtype","async","await",/as \? /,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate \( set \) /,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init \? /,/init!/,"inout",/internal \( set \) /,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open \( set \) /,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private \( set \) /,"private","protocol",/public \( set \) /,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try \? /,/try!/,"try","typealias",/unowned \( safe \) /,/unowned \( unsafe \) /,"unowned","var","weak","where","while","willSet"],re=["false","nil","true"],ie=["assignment","associativity","higherThan","left","lowerThan","none","right"],oe=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],ue=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],de=k(/[/= \- +!*%<>&|^~?]/,/[ \u 00A1- \u 00A7]/,/[ \u 00A9 \u 00AB]/,/[ \u 00AC \u 00AE]/,/[ \u 00B0 \u 00B1]/,/[ \u 00B6 \u 00BB \u 00BF \u 00D7 \u 00F7]/,/[ \u 2016- \u 2017]/,/[ \u 2020- \u 2027]/,/[ \u 2030- \u 203E]/,/[ \u 2041- \u 2053]/,/[ \u 2055- \u 205E]/,/[ \u 2190- \u 23FF]/,/[ \u 2500- \u 2775]/,/[ \u 2794- \u 2BFF]/,/[ \u 2E00- \u 2E7F]/,/[ \u 3001- \u 3003]/,/[ \u 3008- \u 3020]/,/[ \u 3030]/),pe=k(de,/[ \u 0300- \u 036F]/,/[ \u 1DC0- \u 1DFF]/,/[ \u 20D0- \u 20FF]/,/[ \u FE00- \u FE0F]/,/[ \u FE20- \u FE2F]/),Ie=y(de,pe,"*"),_e=k(/[a-zA-Z_]/,/[ \u 00A8 \u 00AA \u 00AD \u 00AF \u 00B2- \u 00B5 \u 00B7- \u 00BA]/,/[ \u 00BC- \u 00BE \u 00C0- \u 00D6 \u 00D8- \u 00F6 \u 00F8- \u 00FF]/,/[ \u 0100- \u 02FF \u 0370- \u 167F \u 1681- \u 180D \u 180F- \u 1DBF]/,/[ \u 1E00- \u 1FFF]/,/[ \u 200B- \u 200D \u 202A- \u 202E \u 203F- \u 2040 \u 2054 \u 2060- \u 206F]/,/[ \u 2070- \u 20CF \u 2100- \u 218F \u 2460- \u 24FF \u 2776- \u 2793]/,/[ \u 2C00- \u 2DFF \u 2E80- \u 2FFF]/,/[ \u 3004- \u 3007 \u 3021- \u 302F \u 3031- \u 303F \u 3040- \u D7FF]/,/[ \u F900- \u FD3D \u FD40- \u FDCF \u FDF0- \u FE1F \u FE30- \u FE44]/,/[ \u FE47- \u FEFE \u FF00- \u FFFD]/),Ce=k(_e,/ \d /,/[ \u 0300- \u 036F \u 1DC0- \u 1DFF \u 20D0- \u 20FF \u FE20- \u FE2F]/),he=y(_e,Ce,"*"),Ne=y(/[A-Z]/,Ce,"*"),Fe=["attached","autoclosure",y(/convention \( /,k("swift","block","c"),/ \) /),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",y(/objc \( /,he,/ \)
2024-08-21 13:12:53 +08:00
c - 2.7 , 0 , - 7.17 , - 2.7 , - 13.5 , - 8 c - 5.8 , - 5.3 , - 9.5 , - 10 , - 9.5 , - 14
c0 , - 2 , 0.3 , - 3.3 , 1 , - 4 c1 . 3 , - 2.7 , 23.83 , - 20.7 , 67.5 , - 54
c44 . 2 , - 33.3 , 65.8 , - 50.3 , 66.5 , - 51 c1 . 3 , - 1.3 , 3 , - 2 , 5 , - 2 c4 . 7 , 0 , 8.7 , 3.3 , 12 , 10
s173 , 378 , 173 , 378 c0 . 7 , 0 , 35.3 , - 71 , 104 , - 213 c68 . 7 , - 142 , 137.5 , - 285 , 206.5 , - 429
c69 , - 144 , 104.5 , - 217.7 , 106.5 , - 221
l ` +t/2.075+" -"+t+ `
c5 . 3 , - 9.3 , 12 , - 14 , 20 , - 14
H400000v ` +(40+t)+ ` H845 . 2724
s - 225.272 , 467 , - 225.272 , 467 s - 235 , 486 , - 235 , 486 c - 2.7 , 4.7 , - 9 , 7 , - 19 , 7
c - 6 , 0 , - 10 , - 1 , - 12 , - 3 s - 194 , - 422 , - 194 , - 422 s - 65 , 47 , - 65 , 47 z
M ` +(834+t)+" "+y+"h400000v"+(40+t)+"h-400000z"},sqrtSize1=function(t,y){return"M263,"+(601+t+y)+ ` c0 . 7 , 0 , 18 , 39.7 , 52 , 119
c34 , 79.3 , 68.167 , 158.7 , 102.5 , 238 c34 . 3 , 79.3 , 51.8 , 119.3 , 52.5 , 120
c340 , - 704.7 , 510.7 , - 1060.3 , 512 , - 1067
l ` +t/2.084+" -"+t+ `
c4 . 7 , - 7.3 , 11 , - 11 , 19 , - 11
H40000v ` +(40+t)+ ` H1012 . 3
s - 271.3 , 567 , - 271.3 , 567 c - 38.7 , 80.7 , - 84 , 175 , - 136 , 283 c - 52 , 108 , - 89.167 , 185.3 , - 111.5 , 232
c - 22.3 , 46.7 , - 33.8 , 70.3 , - 34.5 , 71 c - 4.7 , 4.7 , - 12.3 , 7 , - 23 , 7 s - 12 , - 1 , - 12 , - 1
s - 109 , - 253 , - 109 , - 253 c - 72.7 , - 168 , - 109.3 , - 252 , - 110 , - 252 c - 10.7 , 8 , - 22 , 16.7 , - 34 , 26
c - 22 , 17.3 , - 33.3 , 26 , - 34 , 26 s - 26 , - 26 , - 26 , - 26 s76 , - 59 , 76 , - 59 s76 , - 60 , 76 , - 60 z
M ` +(1001+t)+" "+y+"h400000v"+(40+t)+"h-400000z"},sqrtSize2=function(t,y){return"M983 "+(10+t+y)+ `
l ` +t/3.13+" -"+t+ `
c4 , - 6.7 , 10 , - 10 , 18 , - 10 H400000v ` +(40+t)+ `
H1013 . 1 s - 83.4 , 268 , - 264.1 , 840 c - 180.7 , 572 , - 277 , 876.3 , - 289 , 913 c - 4.7 , 4.7 , - 12.7 , 7 , - 24 , 7
s - 12 , 0 , - 12 , 0 c - 1.3 , - 3.3 , - 3.7 , - 11.7 , - 7 , - 25 c - 35.3 , - 125.3 , - 106.7 , - 373.3 , - 214 , - 744
c - 10 , 12 , - 21 , 25 , - 33 , 39 s - 32 , 39 , - 32 , 39 c - 6 , - 5.3 , - 15 , - 14 , - 27 , - 26 s25 , - 30 , 25 , - 30
c26 . 7 , - 32.7 , 52 , - 63 , 76 , - 91 s52 , - 60 , 52 , - 60 s208 , 722 , 208 , 722
c56 , - 175.3 , 126.3 , - 397.3 , 211 , - 666 c84 . 7 , - 268.7 , 153.8 , - 488.2 , 207.5 , - 658.5
c53 . 7 , - 170.3 , 84.5 , - 266.8 , 92.5 , - 289.5 z
M ` +(1001+t)+" "+y+"h400000v"+(40+t)+"h-400000z"},sqrtSize3=function(t,y){return"M424,"+(2398+t+y)+ `
c - 1.3 , - 0.7 , - 38.5 , - 172 , - 111.5 , - 514 c - 73 , - 342 , - 109.8 , - 513.3 , - 110.5 , - 514
c0 , - 2 , - 10.7 , 14.3 , - 32 , 49 c - 4.7 , 7.3 , - 9.8 , 15.7 , - 15.5 , 25 c - 5.7 , 9.3 , - 9.8 , 16 , - 12.5 , 20
s - 5 , 7 , - 5 , 7 c - 4 , - 3.3 , - 8.3 , - 7.7 , - 13 , - 13 s - 13 , - 13 , - 13 , - 13 s76 , - 122 , 76 , - 122 s77 , - 121 , 77 , - 121
s209 , 968 , 209 , 968 c0 , - 2 , 84.7 , - 361.7 , 254 , - 1079 c169 . 3 , - 717.3 , 254.7 , - 1077.7 , 256 , - 1081
l ` +t/4.223+" -"+t+ ` c4 , - 6.7 , 10 , - 10 , 18 , - 10 H400000
v ` +(40+t)+ ` H1014 . 6
s - 87.3 , 378.7 , - 272.6 , 1166 c - 185.3 , 787.3 , - 279.3 , 1182.3 , - 282 , 1185
c - 2 , 6 , - 10 , 9 , - 24 , 9
c - 8 , 0 , - 12 , - 0.7 , - 12 , - 2 z M ` +(1001+t)+" "+y+ `
h400000v ` +(40+t)+"h-400000z"},sqrtSize4=function(t,y){return"M473,"+(2713+t+y)+ `
c339 . 3 , - 1799.3 , 509.3 , - 2700 , 510 , - 2702 l ` +t/5.298+" -"+t+ `
c3 . 3 , - 7.3 , 9.3 , - 11 , 18 , - 11 H400000v ` +(40+t)+ ` H1017 . 7
s - 90.5 , 478 , - 276.2 , 1466 c - 185.7 , 988 , - 279.5 , 1483 , - 281.5 , 1485 c - 2 , 6 , - 10 , 9 , - 24 , 9
c - 8 , 0 , - 12 , - 0.7 , - 12 , - 2 c0 , - 1.3 , - 5.3 , - 32 , - 16 , - 92 c - 50.7 , - 293.3 , - 119.7 , - 693.3 , - 207 , - 1200
c0 , - 1.3 , - 5.3 , 8.7 , - 16 , 30 c - 10.7 , 21.3 , - 21.3 , 42.7 , - 32 , 64 s - 16 , 33 , - 16 , 33 s - 26 , - 26 , - 26 , - 26
s76 , - 153 , 76 , - 153 s77 , - 151 , 77 , - 151 c0 . 7 , 0.7 , 35.7 , 202 , 105 , 604 c67 . 3 , 400.7 , 102 , 602.7 , 104 ,
606 zM ` +(1001+t)+" "+y+"h400000v"+(40+t)+"H1017.7z"},phasePath=function(t){var y=t/2;return"M400000 "+t+" H0 L"+y+" 0 l65 45 L145 "+(t-80)+" H400000z"},sqrtTall=function(t,y,n){var k=n-54-y-t;return"M702 "+(t+y)+"H400000"+(40+t)+ `
H742v ` +k+ ` l - 4 4 - 4 4 c - . 667.7 - 2 1.5 - 4 2.5 s - 4.167 1.833 - 6.5 2.5 - 5.5 1 - 9.5 1
h - 12 l - 28 - 84 c - 16.667 - 52 - 96.667 - 294.333 - 240 - 727 l - 212 - 643 - 85 170
c - 4 - 3.333 - 8.333 - 7.667 - 13 - 13 l - 13 - 13 l77 - 155 77 - 156 c66 199.333 139 419.667
219 661 l218 661 zM702 ` +y+"H400000v"+(40+t)+"H742z"},sqrtPath=function(t,y,n){y=1e3*y;var k="";switch(t){case"sqrtMain":k=sqrtMain(y,hLinePad);break;case"sqrtSize1":k=sqrtSize1(y,hLinePad);break;case"sqrtSize2":k=sqrtSize2(y,hLinePad);break;case"sqrtSize3":k=sqrtSize3(y,hLinePad);break;case"sqrtSize4":k=sqrtSize4(y,hLinePad);break;case"sqrtTall":k=sqrtTall(y,hLinePad,n)}return k},innerPath=function(t,y){switch(t){case"⎜":return"M291 0 H417 V"+y+" H291z M291 0 H417 V"+y+" H291z";case"∣ ":return"M145 0 H188 V"+y+" H145z M145 0 H188 V"+y+" H145z";case"∥":return"M145 0 H188 V"+y+" H145z M145 0 H188 V"+y+" H145z"+("M367 0 H410 V"+y+" H367z M367 0 H410 V"+y+" H367z");case"⎟":return"M457 0 H583 V"+y+" H457z M457 0 H583 V"+y+" H457z";case"⎢":return"M319 0 H403 V"+y+" H319z M319 0 H403 V"+y+" H319z";case"⎥":return"M263 0 H347 V"+y+" H263z M263 0 H347 V"+y+" H263z";case"⎪":return"M384 0 H504 V"+y+" H384z M384 0 H504 V"+y+" H384z";case"⏐":return"M312 0 H355 V"+y+" H312z M312 0 H355 V"+y+" H312z";case"‖":return"M257 0 H300 V"+y+" H257z M257 0 H300 V"+y+" H257z"+("M478 0 H521 V"+y+" H478z M478 0 H521 V"+y+" H478z");default:return""}},path={doubleleftarrow: ` M262 157
l10 - 10 c34 - 36 62.7 - 77 86 - 123 3.3 - 8 5 - 13.3 5 - 16 0 - 5.3 - 6.7 - 8 - 20 - 8 - 7.3
0 - 12.2 . 5 - 14.5 1.5 - 2.3 1 - 4.8 4.5 - 7.5 10.5 - 49.3 97.3 - 121.7 169.3 - 217 216 - 28
14 - 57.3 25 - 88 33 - 6.7 2 - 11 3.8 - 13 5.5 - 2 1.7 - 3 4.2 - 3 7.5 s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
157.5 9.3 8 15.3 12.3 18 13 h6c12 - . 7 18 - 4 18 - 10 0 - 2 - 1.7 - 7 - 5 - 15 - 23.3 - 46 - 52 - 87
- 86 - 123 l - 10 - 10 h399738v - 40 H218c328 0 0 0 0 0 l - 10 - 8 c - 26.7 - 20 - 65.7 - 43 - 117 - 69 2.7
- 2 6 - 3.7 10 - 5 36.7 - 16 72.3 - 37.3 107 - 64 l10 - 8 h399782v - 40 z
m8 0 v40h399730v - 40 zm0 194 v40h399730v - 40 z ` ,doublerightarrow: ` M399738 392 l
- 10 10 c - 34 36 - 62.7 77 - 86 123 - 3.3 8 - 5 13.3 - 5 16 0 5.3 6.7 8 20 8 7.3 0 12.2 - . 5
14.5 - 1.5 2.3 - 1 4.8 - 4.5 7.5 - 10.5 49.3 - 97.3 121.7 - 169.3 217 - 216 28 - 14 57.3 - 25 88
- 33 6.7 - 2 11 - 3.8 13 - 5.5 2 - 1.7 3 - 4.2 3 - 7.5 s - 1 - 5.8 - 3 - 7.5 c - 2 - 1.7 - 6.3 - 3.5 - 13 - 5.5 - 68
- 17.3 - 128.2 - 47.8 - 180.5 - 91.5 - 52.3 - 43.7 - 93.8 - 96.2 - 124.5 - 157.5 - 9.3 - 8 - 15.3 - 12.3 - 18
- 13 h - 6 c - 12 . 7 - 18 4 - 18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123 l10 10 H0v40h399782
c - 328 0 0 0 0 0 l10 8 c26 . 7 20 65.7 43 117 69 - 2.7 2 - 6 3.7 - 10 5 - 36.7 16 - 72.3 37.3
- 107 64 l - 10 8 H0v40zM0 157 v40h399730v - 40 zm0 194 v40h399730v - 40 z ` ,leftarrow: ` M400000 241 H110l3 - 3 c68 . 7 - 52.7 113.7 - 120
135 - 202 4 - 14.7 6 - 23 6 - 25 0 - 7.3 - 7 - 11 - 21 - 11 - 8 0 - 13.2 . 8 - 15.5 2.5 - 2.3 1.7 - 4.2 5.8
- 5.5 12.5 - 1.3 4.7 - 2.7 10.3 - 4 17 - 12 48.7 - 34.8 92 - 68.5 130 S65 . 3 228.3 18 247
c - 10 4 - 16 7.7 - 18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85 S196 441.3 208
490 c . 7 2 1.3 5 2 9 s1 . 2 6.7 1.5 8 c . 3 1.3 1 3.3 2 6 s2 . 2 4.5 3.5 5.5 c1 . 3 1 3.3
1.8 6 2.5 s6 1 10 1 c14 0 21 - 3.7 21 - 11 0 - 2 - 2 - 10.3 - 6 - 25 - 20 - 79.3 - 65 - 146.7 - 135 - 202
l - 3 - 3 h399890zM100 241 v40h399900v - 40 z ` ,leftbrace: ` M6 548 l - 6 - 6 v - 35 l6 - 11 c56 - 104 135.3 - 181.3 238 - 232 57.3 - 28.7 117
- 45 179 - 50 h399577v120H403c - 43.3 7 - 81 15 - 113 26 - 100.7 33 - 179.7 91 - 237 174 - 2.7
5 - 6 9 - 10 13 - . 7 1 - 7.3 1 - 20 1 H6z ` ,leftbraceunder: ` M0 6 l6 - 6 h17c12 . 688 0 19.313 . 3 20 1 4 4 7.313 8.3 10 13
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5 . 688
0 2 . 3 4 1 18.688 2.7 76 4.3 172 5 h399450v120H429l - 6 - 1 c - 124.688 - 8 - 235 - 61.7
- 331 - 161 C60 . 687 138.7 32.312 99.3 7 54 L0 41 V6z ` ,leftgroup: ` M400000 80
H435C64 80 168.3 229.4 21 260 c - 5.9 1.2 - 18 0 - 18 0 - 2 0 - 3 - 1 - 3 - 3 v - 38 C76 61 257 0
435 0 h399565z ` ,leftgroupunder: ` M400000 262
H435C64 262 168.3 112.6 21 82 c - 5.9 - 1.2 - 18 0 - 18 0 - 2 0 - 3 1 - 3 3 v38c76 158 257 219
435 219 h399565z ` ,leftharpoon: ` M0 267 c . 7 5.3 3 10 7 14 h399993v - 40 H93c3 . 3
- 3.3 10.2 - 9.5 20.5 - 18.5 s17 . 8 - 15.8 22.5 - 20.5 c50 . 7 - 52 88 - 110.3 112 - 175 4 - 11.3 5
- 18.3 3 - 21 - 1.3 - 4 - 7.3 - 6 - 18 - 6 - 8 0 - 13 . 7 - 15 2 s - 4.7 6.7 - 8 16 c - 42 98.7 - 107.3 174.7
- 196 228 - 6.7 4.7 - 10.7 8 - 12 10 - 1.3 2 - 2 5.7 - 2 11 zm100 - 26 v40h399900v - 40 z ` ,leftharpoonplus: ` M0 267 c . 7 5.3 3 10 7 14 h399993v - 40 H93c3 . 3 - 3.3 10.2 - 9.5
20.5 - 18.5 s17 . 8 - 15.8 22.5 - 20.5 c50 . 7 - 52 88 - 110.3 112 - 175 4 - 11.3 5 - 18.3 3 - 21 - 1.3
- 4 - 7.3 - 6 - 18 - 6 - 8 0 - 13 . 7 - 15 2 s - 4.7 6.7 - 8 16 c - 42 98.7 - 107.3 174.7 - 196 228 - 6.7 4.7
- 10.7 8 - 12 10 - 1.3 2 - 2 5.7 - 2 11 zm100 - 26 v40h399900v - 40 zM0 435 v40h400000v - 40 z
m0 0 v40h400000v - 40 z ` ,leftharpoondown: ` M7 241 c - 4 4 - 6.333 8.667 - 7 14 0 5.333 . 667 9 2 11 s5 . 333
5.333 12 10 c90 . 667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 . 667 5
1 9 1 h5c10 . 667 0 16.667 - 2 18 - 6 2 - 2.667 1 - 9.667 - 3 - 21 - 32 - 87.333 - 82.667 - 157.667
- 152 - 211 l - 3 - 3 h399907v - 40 zM93 281 H400000 v - 40 L7 241 z ` ,leftharpoondownplus: ` M7 435 c - 4 4 - 6.3 8.7 - 7 14 0 5.3 . 7 9 2 11 s5 . 3 5.3 12
10 c90 . 7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 . 7 5 1 9 1 h5c10 . 7 0 16.7
- 2 18 - 6 2 - 2.7 1 - 9.7 - 3 - 21 - 32 - 87.3 - 82.7 - 157.7 - 152 - 211 l - 3 - 3 h399907v - 40 H7zm93 0
v40h399900v - 40 zM0 241 v40h399900v - 40 zm0 0 v40h399900v - 40 z ` ,lefthook: ` M400000 281 H103s - 33 - 11.2 - 61 - 33.5 S0 197.3 0 164 s14 . 2 - 61.2 42.5
- 83.5 C70 . 8 58.2 104 47 142 47 c16 . 7 0 25 6.7 25 20 0 12 - 8.7 18.7 - 26 20 - 40 3.3
- 68.7 15.7 - 86 37 - 10 12 - 15 25.3 - 15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
71.5 23 h399859zM103 281 v - 40 h399897v40z ` ,leftlinesegment: ` M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z ` ,leftmapsto: ` M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z ` ,leftToFrom: ` M0 147 h400000v40H0zm0 214 c68 40 115.7 95.7 143 167 h22c15 . 3 0 23
- . 3 23 - 1 0 - 1.3 - 5.3 - 13.7 - 16 - 37 - 18 - 35.3 - 41.3 - 69 - 70 - 101 l - 7 - 8 h399905v - 40 H95l7 - 8
c28 . 7 - 32 52 - 65.7 70 - 101 10.7 - 23.3 16 - 35.7 16 - 37 0 - . 7 - 7.7 - 1 - 23 - 1 h - 22 C115 . 7 265.3
68 321 0 361 zm0 - 174 v - 40 h399900v40zm100 154 v40h399900v - 40 z ` ,longequal: ` M0 50 h400000 v40H0z m0 194 h40000v40H0z
M0 50 h400000 v40H0z m0 194 h40000v40H0z ` ,midbrace: ` M200428 334
c - 100.7 - 8.3 - 195.3 - 44 - 280 - 108 - 55.3 - 42 - 101.7 - 93 - 139 - 153 l - 9 - 14 c - 2.7 4 - 5.7 8.7 - 9 14
- 53.3 86.7 - 123.7 153 - 211 199 - 66.7 36 - 137.3 56.3 - 212 62 H0V214h199568c178 . 3 - 11.7
311.7 - 78.3 403 - 201 6 - 8 9.7 - 12 11 - 12 . 7 - . 7 6.7 - 1 18 - 1 s17 . 3.3 18 1 c1 . 3 0 5 4 11
12 44.7 59.3 101.3 106.3 170 141 s145 . 3 54.3 229 60 h199572v120z ` ,midbraceunder: ` M199572 214
c100 . 7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153 l9 14 c2 . 7 - 4 5.7 - 8.7 9 - 14
53.3 - 86.7 123.7 - 153 211 - 199 66.7 - 36 137.3 - 56.3 212 - 62 h199568v120H200432c - 178.3
11.7 - 311.7 78.3 - 403 201 - 6 8 - 9.7 12 - 11 12 - . 7.7 - 6.7 1 - 18 1 s - 17.3 - . 3 - 18 - 1 c - 1.3 0
- 5 - 4 - 11 - 12 - 44.7 - 59.3 - 101.3 - 106.3 - 170 - 141 s - 145.3 - 54.3 - 229 - 60 H0V214z ` ,oiintSize1: ` M512 . 6 71.6 c272 . 6 0 320.3 106.8 320.3 178.2 0 70.8 - 47.7 177.6
- 320.3 177.6 S193 . 1 320.6 193.1 249.8 c0 - 71.4 46.9 - 178.2 319.5 - 178.2 z
m368 . 1 178.2 c0 - 86.4 - 60.9 - 215.4 - 368.1 - 215.4 - 306.4 0 - 367.3 129 - 367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1 - 129 368.1 - 214.8 z ` ,oiintSize2: ` M757 . 8 100.1 c384 . 7 0 451.1 137.6 451.1 230 0 91.3 - 66.4 228.8
- 451.1 228.8 - 386.3 0 - 452.7 - 137.5 - 452.7 - 228.8 0 - 92.4 66.4 - 230 452.7 - 230 z
m502 . 4 230 c0 - 111.2 - 82.4 - 277.2 - 502.4 - 277.2 s - 504 166 - 504 277.2
c0 110 84 276 504 276 s502 . 4 - 166 502.4 - 276 z ` ,oiiintSize1: ` M681 . 4 71.6 c408 . 9 0 480.5 106.8 480.5 178.2 0 70.8 - 71.6 177.6
- 480.5 177.6 S202 . 1 320.6 202.1 249.8 c0 - 71.4 70.5 - 178.2 479.3 - 178.2 z
m525 . 8 178.2 c0 - 86.4 - 86.8 - 215.4 - 525.7 - 215.4 - 437.9 0 - 524.7 129 - 524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7 - 129 525.7 - 214.8 z ` ,oiiintSize2: ` M1021 . 2 53 c603 . 6 0 707.8 165.8 707.8 277.2 0 110 - 104.2 275.8
- 707.8 275.8 - 606 0 - 710.2 - 165.8 - 710.2 - 275.8 C311 218.8 415.2 53 1021.2 53 z
m770 . 4 277.1 c0 - 131.2 - 126.4 - 327.6 - 770.5 - 327.6 S248 . 4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4 s770 . 5 - 196.4 770.5 - 326.4 z ` ,rightarrow: ` M0 241 v40h399891c - 47.3 35.3 - 84 78 - 110 128
- 16.7 32 - 27.7 63.7 - 33 95 0 1.3 - . 2 2.7 - . 5 4 - . 3 1.3 - . 5 2.3 - . 5 3 0 7.3 6.7 11 20
11 8 0 13.2 - . 8 15.5 - 2.5 2.3 - 1.7 4.2 - 5.5 5.5 - 11.5 2 - 13.3 5.7 - 27 11 - 41 14.7 - 44.7
39 - 84.5 73 - 119.5 s73 . 7 - 60.2 119 - 75.5 c6 - 2 9 - 5.7 9 - 11 s - 3 - 9 - 9 - 11 c - 45.3 - 15.3 - 85
- 40.5 - 119 - 75.5 s - 58.3 - 74.8 - 73 - 119.5 c - 4.7 - 14 - 8.3 - 27.3 - 11 - 40 - 1.3 - 6.7 - 3.2 - 10.8 - 5.5
- 12.5 - 2.3 - 1.7 - 7.5 - 2.5 - 15.5 - 2.5 - 14 0 - 21 3.7 - 21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205 zm0 0 v40h399900v - 40 z ` ,rightbrace: ` M400000 542 l
- 6 6 h - 17 c - 12.7 0 - 19.3 - . 3 - 20 - 1 - 4 - 4 - 7.3 - 8.3 - 10 - 13 - 35.3 - 51.3 - 80.8 - 93.8 - 136.5 - 127.5
s - 117.2 - 55.8 - 184.5 - 66.5 c - . 7 0 - 2 - . 3 - 4 - 1 - 18.7 - 2.7 - 76 - 4.3 - 172 - 5 H0V214h399571l6 1
c124 . 7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118 l7 13 v35z ` ,rightbraceunder: ` M399994 0 l6 6 v35l - 6 11 c - 56 104 - 135.3 181.3 - 238 232 - 57.3
28.7 - 117 45 - 179 50 H - 300 V214h399897c43 . 3 - 7 81 - 15 113 - 26 100.7 - 33 179.7 - 91 237
- 174 2.7 - 5 6 - 9 10 - 13 . 7 - 1 7.3 - 1 20 - 1 h17z ` ,rightgroup: ` M0 80 h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
3 - 1 3 - 3 v - 38 c - 76 - 158 - 257 - 219 - 435 - 219 H0z ` ,rightgroupunder: ` M0 262 h399565c371 0 266.7 - 149.4 414 - 180 5.9 - 1.2 18 0 18
0 2 0 3 1 3 3 v38c - 76 158 - 257 219 - 435 219 H0z ` ,rightharpoon: ` M0 241 v40h399993c4 . 7 - 4.7 7 - 9.3 7 - 14 0 - 9.3
- 3.7 - 15.3 - 11 - 18 - 92.7 - 56.7 - 159 - 133.7 - 199 - 231 - 3.3 - 9.3 - 6 - 14.7 - 8 - 16 - 2 - 1.3 - 7 - 2 - 15 - 2
- 10.7 0 - 16.7 2 - 18 6 - 2 2.7 - 1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
69.2 92 94.5 zm0 0 v40h399900v - 40 z ` ,rightharpoonplus: ` M0 241 v40h399993c4 . 7 - 4.7 7 - 9.3 7 - 14 0 - 9.3 - 3.7 - 15.3 - 11
- 18 - 92.7 - 56.7 - 159 - 133.7 - 199 - 231 - 3.3 - 9.3 - 6 - 14.7 - 8 - 16 - 2 - 1.3 - 7 - 2 - 15 - 2 - 10.7 0 - 16.7
2 - 18 6 - 2 2.7 - 1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5 z
m0 0 v40h399900v - 40 z m100 194 v40h399900v - 40 zm0 0 v40h399900v - 40 z ` ,rightharpoondown: ` M399747 511 c0 7.3 6.7 11 20 11 8 0 13 - . 8 15 - 2.5 s4 . 7 - 6.8
8 - 15.5 c40 - 94 99.3 - 166.3 178 - 217 13.3 - 8 20.3 - 12.3 21 - 13 5.3 - 3.3 8.5 - 5.8 9.5
- 7.5 1 - 1.7 1.5 - 5.2 1.5 - 10.5 s - 2.3 - 10.3 - 7 - 15 H0v40h399908c - 34 25.3 - 64.7 57 - 92 95
- 27.3 38 - 48.7 77.7 - 64 119 - 3.3 8.7 - 5 14 - 5 16 zM0 241 v40h399900v - 40 z ` ,rightharpoondownplus: ` M399747 705 c0 7.3 6.7 11 20 11 8 0 13 - . 8
15 - 2.5 s4 . 7 - 6.8 8 - 15.5 c40 - 94 99.3 - 166.3 178 - 217 13.3 - 8 20.3 - 12.3 21 - 13 5.3 - 3.3
8.5 - 5.8 9.5 - 7.5 1 - 1.7 1.5 - 5.2 1.5 - 10.5 s - 2.3 - 10.3 - 7 - 15 H0v40h399908c - 34 25.3
- 64.7 57 - 92 95 - 27.3 38 - 48.7 77.7 - 64 119 - 3.3 8.7 - 5 14 - 5 16 zM0 435 v40h399900v - 40 z
m0 - 194 v40h400000v - 40 zm0 0 v40h400000v - 40 z ` ,righthook: ` M399859 241 c - 764 0 0 0 0 0 40 - 3.3 68.7 - 15.7 86 - 37 10 - 12 15 - 25.3
15 - 40 0 - 22.7 - 9.8 - 40.7 - 29.5 - 54 - 19.7 - 13.3 - 43.5 - 21 - 71.5 - 23 - 17.3 - 1.3 - 26 - 8 - 26 - 20 0
- 13.3 8.7 - 20 26 - 20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
66.8 s - 14 61.2 - 42 83.5 c - 28 22.3 - 61 33.5 - 99 33.5 L0 241 z M0 281 v - 40 h399859v40z ` ,rightlinesegment: ` M399960 241 V94 h40 V428 h - 40 V281 H0 v - 40 z
M399960 241 V94 h40 V428 h - 40 V281 H0 v - 40 z ` ,rightToFrom: ` M400000 167 c - 70.7 - 42 - 118 - 97.7 - 142 - 167 h - 23 c - 15.3 0 - 23 . 3 - 23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101 l7 8 H0v40h399905l - 7 8 c - 28.7 32
- 52 65.7 - 70 101 - 10.7 23.3 - 16 35.7 - 16 37 0 . 7 7.7 1 23 1 h23c24 - 69.3 71.3 - 125 142
- 167 z M100 147 v40h399900v - 40 zM0 341 v40h399900v - 40 z ` ,twoheadleftarrow: ` M0 167 c68 40
115.7 95.7 143 167 h22c15 . 3 0 23 - . 3 23 - 1 0 - 1.3 - 5.3 - 13.7 - 16 - 37 - 18 - 35.3 - 41.3 - 69
- 70 - 101 l - 7 - 8 h125l9 7 c50 . 7 39.3 85 86 103 140 h46c0 - 4.7 - 6.3 - 18.7 - 19 - 42 - 18 - 35.3
- 40 - 67.3 - 66 - 96 l - 9 - 9 h399716v - 40 H284l9 - 9 c26 - 28.7 48 - 60.7 66 - 96 12.7 - 23.333 19
- 37.333 19 - 42 h - 46 c - 18 54 - 52.3 100.7 - 103 140 l - 9 7 H95l7 - 8 c28 . 7 - 32 52 - 65.7 70 - 101
10.7 - 23.333 16 - 35.7 16 - 37 0 - . 7 - 7.7 - 1 - 23 - 1 h - 22 C115 . 7 71.3 68 127 0 167 z ` ,twoheadrightarrow: ` M400000 167
c - 68 - 40 - 115.7 - 95.7 - 143 - 167 h - 22 c - 15.3 0 - 23 . 3 - 23 1 0 1.3 5.3 13.7 16 37 18 35.3
41.3 69 70 101 l7 8 h - 125 l - 9 - 7 c - 50.7 - 39.3 - 85 - 86 - 103 - 140 h - 46 c0 4.7 6.3 18.7 19 42
18 35.3 40 67.3 66 96 l9 9 H0v40h399716l - 9 9 c - 26 28.7 - 48 60.7 - 66 96 - 12.7 23.333
- 19 37.333 - 19 42 h46c18 - 54 52.3 - 100.7 103 - 140 l9 - 7 h125l - 7 8 c - 28.7 32 - 52 65.7 - 70
101 - 10.7 23.333 - 16 35.7 - 16 37 0 . 7 7.7 1 23 1 h22c27 . 3 - 71.3 75 - 127 143 - 167 z ` ,tilde1: ` M200 55.538 c - 77 0 - 168 73.953 - 177 73.953 - 3 0 - 7
- 2.175 - 9 - 5.437 L2 97 c - 1 - 2 - 2 - 4 - 2 - 6 0 - 4 2 - 7 5 - 9 l20 - 12 C116 12 171 0 207 0 c86 0
114 68 191 68 78 0 168 - 68 177 - 68 4 0 7 2 9 5 l12 19 c1 2.175 2 4.35 2 6.525 0
4.35 - 2 7.613 - 5 9.788 l - 19 13.05 c - 92 63.077 - 116.937 75.308 - 183 76.128
- 68.267 . 847 - 113 - 73.952 - 191 - 73.952 z ` ,tilde2: ` M344 55.266 c - 142 0 - 300.638 81.316 - 311.5 86.418
- 8.01 3.762 - 22.5 10.91 - 23.5 5.562 L1 120 c - 1 - 2 - 1 - 3 - 1 - 4 0 - 5 3 - 9 8 - 10 l18 . 4 - 9 C160 . 9
31.9 283 0 358 0 c148 0 188 122 331 122 s314 - 97 326 - 97 c4 0 8 2 10 7 l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347 - 3 9.626 - 7 10.696 l - 22.3 12.622 C852 . 6 158.372 751
181.476 676 181.476 c - 149 0 - 189 - 126.21 - 332 - 126.21 z ` ,tilde3: ` M786 59 C457 59 32 175.242 13 175.242 c - 6 0 - 10 - 3.457
- 11 - 10.37 L . 15 138 c - 1 - 7 3 - 12 10 - 13 l19 . 2 - 6.4 C378 . 4 40.7 634.3 0 804.3 0 c337 0
411.8 157 746.8 157 328 0 754 - 112 773 - 112 5 0 10 3 11 9 l1 14.075 c1 8.066 - . 697
16.595 - 6.697 17.492 l - 21.052 7.31 c - 367.9 98.146 - 609.15 122.696 - 778.15 122.696
- 338 0 - 409 - 156.573 - 744 - 156.573 z ` ,tilde4: ` M786 58 C457 58 32 177.487 13 177.487 c - 6 0 - 10 - 3.345
- 11 - 10.035 L . 15 143 c - 1 - 7 3 - 12 10 - 13 l22 - 6.7 C381 . 2 35 637.15 0 807.15 0 c337 0 409
177 744 177 328 0 754 - 127 773 - 127 5 0 10 3 11 9 l1 14.794 c1 7.805 - 3 13.38 - 9
14.495 l - 20.7 5.574 c - 366.85 99.79 - 607.3 139.372 - 776.3 139.372 - 338 0 - 409
- 175.236 - 744 - 175.236 z ` ,vec: ` M377 20 c0 - 5.333 1.833 - 10 5.5 - 14 S391 0 397 0 c4 . 667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6 - 1 10 - 3 12 s - 6.667 5 - 14 9 c - 28.667 14.667 - 53.667 35.667 - 75 63
- 1.333 1.333 - 3.167 3.5 - 5.5 6.5 s - 4 4.833 - 5 5.5 c - 1 . 667 - 2.5 1.333 - 4.5 2 s - 4.333 1
- 7 1 c - 4.667 0 - 9.167 - 1.833 - 13.5 - 5.5 S337 184 337 178 c0 - 12.667 15.667 - 32.333 47 - 59
H213l - 171 - 1 c - 8.667 - 6 - 13 - 12.333 - 13 - 19 0 - 4.667 4.333 - 11.333 13 - 20 h359
c - 16 - 25.333 - 24 - 45 - 24 - 59 z ` ,widehat1: ` M529 0 h5l519 115 c5 1 9 5 9 10 0 1 - 1 2 - 1 3 l - 4 22
c - 1 5 - 5 9 - 11 9 h - 2 L532 67 19 159 h - 2 c - 5 0 - 9 - 4 - 11 - 9 l - 5 - 22 c - 1 - 6 2 - 12 8 - 13 z ` ,widehat2: ` M1181 0 h2l1171 176 c6 0 10 5 10 11 l - 2 23 c - 1 6 - 5 10
- 11 10 h - 1 L1182 67 15 220 h - 1 c - 6 0 - 10 - 4 - 11 - 10 l - 2 - 23 c - 1 - 6 4 - 11 10 - 11 z ` ,widehat3: ` M1181 0 h2l1171 236 c6 0 10 5 10 11 l - 2 23 c - 1 6 - 5 10
- 11 10 h - 1 L1182 67 15 280 h - 1 c - 6 0 - 10 - 4 - 11 - 10 l - 2 - 23 c - 1 - 6 4 - 11 10 - 11 z ` ,widehat4: ` M1181 0 h2l1171 296 c6 0 10 5 10 11 l - 2 23 c - 1 6 - 5 10
- 11 10 h - 1 L1182 67 15 340 h - 1 c - 6 0 - 10 - 4 - 11 - 10 l - 2 - 23 c - 1 - 6 4 - 11 10 - 11 z ` ,widecheck1: ` M529 , 159 h5l519 , - 115 c5 , - 1 , 9 , - 5 , 9 , - 10 c0 , - 1 , - 1 , - 2 , - 1 , - 3 l - 4 , - 22 c - 1 ,
- 5 , - 5 , - 9 , - 11 , - 9 h - 2 l - 512 , 92 l - 513 , - 92 h - 2 c - 5 , 0 , - 9 , 4 , - 11 , 9 l - 5 , 22 c - 1 , 6 , 2 , 12 , 8 , 13 z ` ,widecheck2: ` M1181 , 220 h2l1171 , - 176 c6 , 0 , 10 , - 5 , 10 , - 11 l - 2 , - 23 c - 1 , - 6 , - 5 , - 10 ,
- 11 , - 10 h - 1 l - 1168 , 153 l - 1167 , - 153 h - 1 c - 6 , 0 , - 10 , 4 , - 11 , 10 l - 2 , 23 c - 1 , 6 , 4 , 11 , 10 , 11 z ` ,widecheck3: ` M1181 , 280 h2l1171 , - 236 c6 , 0 , 10 , - 5 , 10 , - 11 l - 2 , - 23 c - 1 , - 6 , - 5 , - 10 ,
- 11 , - 10 h - 1 l - 1168 , 213 l - 1167 , - 213 h - 1 c - 6 , 0 , - 10 , 4 , - 11 , 10 l - 2 , 23 c - 1 , 6 , 4 , 11 , 10 , 11 z ` ,widecheck4: ` M1181 , 340 h2l1171 , - 296 c6 , 0 , 10 , - 5 , 10 , - 11 l - 2 , - 23 c - 1 , - 6 , - 5 , - 10 ,
- 11 , - 10 h - 1 l - 1168 , 273 l - 1167 , - 273 h - 1 c - 6 , 0 , - 10 , 4 , - 11 , 10 l - 2 , 23 c - 1 , 6 , 4 , 11 , 10 , 11 z ` ,baraboveleftarrow: ` M400000 620 h - 399890 l3 - 3 c68 . 7 - 52.7 113.7 - 120 135 - 202
c4 - 14.7 6 - 23 6 - 25 c0 - 7.3 - 7 - 11 - 21 - 11 c - 8 0 - 13.2 0.8 - 15.5 2.5
c - 2.3 1.7 - 4.2 5.8 - 5.5 12.5 c - 1.3 4.7 - 2.7 10.3 - 4 17 c - 12 48.7 - 34.8 92 - 68.5 130
s - 74.2 66.3 - 121.5 85 c - 10 4 - 16 7.7 - 18 11 c0 8.7 6 14.3 18 17 c47 . 3 18.7 87.8 47
121.5 85 s56 . 5 81.3 68.5 130 c0 . 7 2 1.3 5 2 9 s1 . 2 6.7 1.5 8 c0 . 3 1.3 1 3.3 2 6
s2 . 2 4.5 3.5 5.5 c1 . 3 1 3.3 1.8 6 2.5 s6 1 10 1 c14 0 21 - 3.7 21 - 11
c0 - 2 - 2 - 10.3 - 6 - 25 c - 20 - 79.3 - 65 - 146.7 - 135 - 202 l - 3 - 3 h399890z
M100 620 v40h399900v - 40 z M0 241 v40h399900v - 40 zM0 241 v40h399900v - 40 z ` ,rightarrowabovebar: ` M0 241 v40h399891c - 47.3 35.3 - 84 78 - 110 128 - 16.7 32
- 27.7 63.7 - 33 95 0 1.3 - . 2 2.7 - . 5 4 - . 3 1.3 - . 5 2.3 - . 5 3 0 7.3 6.7 11 20 11 8 0
13.2 - . 8 15.5 - 2.5 2.3 - 1.7 4.2 - 5.5 5.5 - 11.5 2 - 13.3 5.7 - 27 11 - 41 14.7 - 44.7 39
- 84.5 73 - 119.5 s73 . 7 - 60.2 119 - 75.5 c6 - 2 9 - 5.7 9 - 11 s - 3 - 9 - 9 - 11 c - 45.3 - 15.3 - 85 - 40.5
- 119 - 75.5 s - 58.3 - 74.8 - 73 - 119.5 c - 4.7 - 14 - 8.3 - 27.3 - 11 - 40 - 1.3 - 6.7 - 3.2 - 10.8 - 5.5
- 12.5 - 2.3 - 1.7 - 7.5 - 2.5 - 15.5 - 2.5 - 14 0 - 21 3.7 - 21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205 zm96 379 h399894v40H0zm0 0 h399904v40H0z ` ,baraboveshortleftharpoon: ` M507 , 435 c - 4 , 4 , - 6.3 , 8.7 , - 7 , 14 c0 , 5.3 , 0.7 , 9 , 2 , 11
c1 . 3 , 2 , 5.3 , 5.3 , 12 , 10 c90 . 7 , 54 , 156 , 130 , 196 , 228 c3 . 3 , 10.7 , 6.3 , 16.3 , 9 , 17
c2 , 0.7 , 5 , 1 , 9 , 1 c0 , 0 , 5 , 0 , 5 , 0 c10 . 7 , 0 , 16.7 , - 2 , 18 , - 6 c2 , - 2.7 , 1 , - 9.7 , - 3 , - 21
c - 32 , - 87.3 , - 82.7 , - 157.7 , - 152 , - 211 c0 , 0 , - 3 , - 3 , - 3 , - 3 l399351 , 0 l0 , - 40
c - 398570 , 0 , - 399437 , 0 , - 399437 , 0 z M593 435 v40 H399500 v - 40 z
M0 281 v - 40 H399908 v40z M0 281 v - 40 H399908 v40z ` ,rightharpoonaboveshortbar: ` M0 , 241 l0 , 40 c399126 , 0 , 399993 , 0 , 399993 , 0
c4 . 7 , - 4.7 , 7 , - 9.3 , 7 , - 14 c0 , - 9.3 , - 3.7 , - 15.3 , - 11 , - 18 c - 92.7 , - 56.7 , - 159 , - 133.7 , - 199 ,
- 231 c - 3.3 , - 9.3 , - 6 , - 14.7 , - 8 , - 16 c - 2 , - 1.3 , - 7 , - 2 , - 15 , - 2 c - 10.7 , 0 , - 16.7 , 2 , - 18 , 6
c - 2 , 2.7 , - 1 , 9.7 , 3 , 21 c15 . 3 , 42 , 36.7 , 81.8 , 64 , 119.5 c27 . 3 , 37.7 , 58 , 69.2 , 92 , 94.5 z
M0 241 v40 H399908 v - 40 z M0 475 v - 40 H399500 v40z M0 475 v - 40 H399500 v40z ` ,shortbaraboveleftharpoon: ` M7 , 435 c - 4 , 4 , - 6.3 , 8.7 , - 7 , 14 c0 , 5.3 , 0.7 , 9 , 2 , 11
c1 . 3 , 2 , 5.3 , 5.3 , 12 , 10 c90 . 7 , 54 , 156 , 130 , 196 , 228 c3 . 3 , 10.7 , 6.3 , 16.3 , 9 , 17 c2 , 0.7 , 5 , 1 , 9 ,
1 c0 , 0 , 5 , 0 , 5 , 0 c10 . 7 , 0 , 16.7 , - 2 , 18 , - 6 c2 , - 2.7 , 1 , - 9.7 , - 3 , - 21 c - 32 , - 87.3 , - 82.7 , - 157.7 ,
- 152 , - 211 c0 , 0 , - 3 , - 3 , - 3 , - 3 l399907 , 0 l0 , - 40 c - 399126 , 0 , - 399993 , 0 , - 399993 , 0 z
M93 435 v40 H400000 v - 40 z M500 241 v40 H400000 v - 40 z M500 241 v40 H400000 v - 40 z ` ,shortrightharpoonabovebar: ` M53 , 241 l0 , 40 c398570 , 0 , 399437 , 0 , 399437 , 0
c4 . 7 , - 4.7 , 7 , - 9.3 , 7 , - 14 c0 , - 9.3 , - 3.7 , - 15.3 , - 11 , - 18 c - 92.7 , - 56.7 , - 159 , - 133.7 , - 199 ,
- 231 c - 3.3 , - 9.3 , - 6 , - 14.7 , - 8 , - 16 c - 2 , - 1.3 , - 7 , - 2 , - 15 , - 2 c - 10.7 , 0 , - 16.7 , 2 , - 18 , 6
c - 2 , 2.7 , - 1 , 9.7 , 3 , 21 c15 . 3 , 42 , 36.7 , 81.8 , 64 , 119.5 c27 . 3 , 37.7 , 58 , 69.2 , 92 , 94.5 z
M500 241 v40 H399408 v - 40 z M500 435 v40 H400000 v - 40 z ` },tallDelim=function(t,y){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+y+ ` v1759 h347 v - 84
H403z M403 1759 V0 H319 V1759 v ` +y+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+y+ ` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v ` +y+" v1759 h84z";case"vert":return"M145 15 v585 v"+y+ ` v585 c2 . 667 , 10 , 9.667 , 15 , 21 , 15
c10 , 0 , 16.667 , - 5 , 20 , - 15 v - 585 v ` +-y+ ` v - 585 c - 2.667 , - 10 , - 9.667 , - 15 , - 21 , - 15
c - 10 , 0 , - 16.667 , 5 , - 20 , 15 z M188 15 H145 v585 v ` +y+" v585 h43z";case"doublevert":return"M145 15 v585 v"+y+ ` v585 c2 . 667 , 10 , 9.667 , 15 , 21 , 15
c10 , 0 , 16.667 , - 5 , 20 , - 15 v - 585 v ` +-y+ ` v - 585 c - 2.667 , - 10 , - 9.667 , - 15 , - 21 , - 15
c - 10 , 0 , - 16.667 , 5 , - 20 , 15 z M188 15 H145 v585 v ` +y+ ` v585 h43z
M367 15 v585 v ` +y+ ` v585 c2 . 667 , 10 , 9.667 , 15 , 21 , 15
c10 , 0 , 16.667 , - 5 , 20 , - 15 v - 585 v ` +-y+ ` v - 585 c - 2.667 , - 10 , - 9.667 , - 15 , - 21 , - 15
c - 10 , 0 , - 16.667 , 5 , - 20 , 15 z M410 15 H367 v585 v ` +y+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+y+ ` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v ` +y+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+y+ ` v1799 H0 v - 84 H319z
MM319 602 V0 H403 V602 v ` +y+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+y+ ` v602 h84z
M403 1759 V0 H319 V1759 v ` +y+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+y+ ` v602 h84z
M347 1759 V0 h - 84 V1759 v ` +y+" v602 h84z";case"lparen":return ` M863 , 9 c0 , - 2 , - 2 , - 5 , - 6 , - 9 c0 , 0 , - 17 , 0 , - 17 , 0 c - 12.7 , 0 , - 19.3 , 0.3 , - 20 , 1
c - 5.3 , 5.3 , - 10.3 , 11 , - 15 , 17 c - 242.7 , 294.7 , - 395.3 , 682 , - 458 , 1162 c - 21.3 , 163.3 , - 33.3 , 349 ,
- 36 , 557 l0 , ` +(y+84)+ ` c0 . 2 , 6 , 0 , 26 , 0 , 60 c2 , 159.3 , 10 , 310.7 , 24 , 454 c53 . 3 , 528 , 210 ,
949.7 , 470 , 1265 c4 . 7 , 6 , 9.7 , 11.7 , 15 , 17 c0 . 7 , 0.7 , 7 , 1 , 19 , 1 c0 , 0 , 18 , 0 , 18 , 0 c4 , - 4 , 6 , - 7 , 6 , - 9
c0 , - 2.7 , - 3.3 , - 8.7 , - 10 , - 18 c - 135.3 , - 192.7 , - 235.5 , - 414.3 , - 300.5 , - 665 c - 65 , - 250.7 , - 102.5 ,
- 544.7 , - 112.5 , - 882 c - 2 , - 104 , - 3 , - 167 , - 3 , - 189
l0 , - ` +(y+92)+ ` c0 , - 162.7 , 5.7 , - 314 , 17 , - 454 c20 . 7 , - 272 , 63.7 , - 513 , 129 , - 723 c65 . 3 ,
- 210 , 155.3 , - 396.3 , 270 , - 559 c6 . 7 , - 9.3 , 10 , - 15.3 , 10 , - 18 z ` ;case"rparen":return ` M76 , 0 c - 16.7 , 0 , - 25 , 3 , - 25 , 9 c0 , 2 , 2 , 6.3 , 6 , 13 c21 . 3 , 28.7 , 42.3 , 60.3 ,
63 , 95 c96 . 7 , 156.7 , 172.8 , 332.5 , 228.5 , 527.5 c55 . 7 , 195 , 92.8 , 416.5 , 111.5 , 664.5
c11 . 3 , 139.3 , 17 , 290.7 , 17 , 454 c0 , 28 , 1.7 , 43 , 3.3 , 45 l0 , ` +(y+9)+ `
c - 3 , 4 , - 3.3 , 16.7 , - 3.3 , 38 c0 , 162 , - 5.7 , 313.7 , - 17 , 455 c - 18.7 , 248 , - 55.8 , 469.3 , - 111.5 , 664
c - 55.7 , 194.7 , - 131.8 , 370.3 , - 228.5 , 527 c - 20.7 , 34.7 , - 41.7 , 66.3 , - 63 , 95 c - 2 , 3.3 , - 4 , 7 , - 6 , 11
c0 , 7.3 , 5.7 , 11 , 17 , 11 c0 , 0 , 11 , 0 , 11 , 0 c9 . 3 , 0 , 14.3 , - 0.3 , 15 , - 1 c5 . 3 , - 5.3 , 10.3 , - 11 , 15 , - 17
c242 . 7 , - 294.7 , 395.3 , - 681.7 , 458 , - 1161 c21 . 3 , - 164.7 , 33.3 , - 350.7 , 36 , - 558
l0 , - ` +(y+144)+ ` c - 2 , - 159.3 , - 10 , - 310.7 , - 24 , - 454 c - 53.3 , - 528 , - 210 , - 949.7 ,
2024-08-24 19:24:09 +08:00
- 470 , - 1265 c - 4.7 , - 6 , - 9.7 , - 11.7 , - 15 , - 17 c - 0.7 , - 0.7 , - 6.7 , - 1 , - 18 , - 1 z ` ;default:throw new Error("Unknown stretchy delimiter.")}};class DocumentFragment{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return utils $ 5.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),y=0;y<this.children.length;y++)t.appendChild(this.children[y].toNode());return t}toMarkup(){for(var t="",y=0;y<this.children.length;y++)t+=this.children[y].toMarkup();return t}toText(){var t=y=>y.toText();return this.children.map(t).join("")}}var fontMetricsData={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.757
` +kt+" children.");for(var jt=0;jt<kt;jt++){var tr=new PathNode(he[jt]),rr=new SvgNode([tr],{width:"400em",height:makeEm(Ue),viewBox:"0 0 "+j+" "+Fe,preserveAspectRatio:Ve[jt]+" slice"}),ar=buildCommon.makeSvgSpan([Et[jt]],[rr],y);if(kt===1)return{span:ar,minWidth:Ne,height:Ue};ar.style.height=makeEm(Ue),_e.push(ar)}return{span:buildCommon.makeSpan(["stretchy"],_e,y),minWidth:Ne,height:Ue}}}var{span:k,minWidth:L,height: $ }=n();return k.height= $ ,k.style.height=makeEm( $ ),L>0&&(k.style.minWidth=makeEm(L)),k},encloseSpan=function(t,y,n,k,L){var $ ,j=t.height+t.depth+n+k;if(/fbox|color|angl/.test(y)){if( $ =buildCommon.makeSpan(["stretchy",y],[],L),y==="fbox"){var V=L.color&&L.getColor();V&&( $ .style.borderColor=V)}}else{var z=[];/^[bx]cancel $ /.test(y)&&z.push(new LineNode({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel $ /.test(y)&&z.push(new LineNode({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var re=new SvgNode(z,{width:"100%",height:makeEm(j)}); $ =buildCommon.makeSvgSpan([],[re],L)}return $ .height=j, $ .style.height=makeEm(j), $ },stretchy={encloseSpan,mathMLnode,svgSpan};function assertNodeType(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function assertSymbolNodeType(e){var t=checkSymbolNodeType(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function checkSymbolNodeType(e){return e&&(e.type==="atom"||NON_ATOMS.hasOwnProperty(e.type))?e:null}var htmlBuilder $ a=(e,t)=>{var y,n,k;e&&e.type==="supsub"?(n=assertNodeType(e.base,"accent"),y=n.base,e.base=y,k=assertSpan(buildGroup $ 1(e,t)),e.base=n):(n=assertNodeType(e,"accent"),y=n.base);var L=buildGroup $ 1(y,t.havingCrampedStyle()), $ =n.isShifty&&utils $ 5.isCharacterBox(y),j=0;if( $ ){var V=utils $ 5.getBaseElem(y),z=buildGroup $ 1(V,t.havingCrampedStyle());j=assertSymbolDomNode(z).skew}var re=n.label===" \\ c",ie=re?L.height+L.depth:Math.min(L.height,t.fontMetrics().xHeight),oe;if(n.isStretchy)oe=stretchy.svgSpan(n,t),oe=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:L},{type:"elem",elem:oe,wrapperClasses:["svg-align"],wrapperStyle:j>0?{width:"calc(100% - "+makeEm(2*j)+")",marginLeft:makeEm(2*j)}:void 0}]},t);else{var ue,de;n.label===" \\ vec"?(ue=buildCommon.staticSvg("vec",t),de=buildCommon.svgData.vec[1]):(ue=buildCommon.makeOrd({mode:n.mode,text:n.label},t,"textord"),ue=assertSymbolDomNode(ue),ue.italic=0,de=ue.width,re&&(ie+=ue.depth)),oe=buildCommon.makeSpan(["accent-body"],[ue]);var pe=n.label===" \\ textcircled";pe&&(oe.classes.push("accent-full"),ie=L.height);var Ie=j;pe||(Ie-=de/2),oe.style.left=makeEm(Ie),n.label===" \\ textcircled"&&(oe.style.top=".2em"),oe=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:L},{type:"kern",size:-ie},{type:"elem",elem:oe}]},t)}var _e=buildCommon.makeSpan(["mord","accent"],[oe],t);return k?(k.children[0]=_e,k.height=Math.max(_e.height,k.height),k.classes[0]="mord",k):_e},mathmlBuilder $ 9=(e,t)=>{var y=e.isStretchy?stretchy.mathMLnode(e.label):new mathMLTree.MathNode("mo",[makeText(e.label,e.mode)]),n=new mathMLTree.MathNode("mover",[buildGroup2(e.base,t),y]);return n.setAttribute("accent","true"),n},NON_STRETCHY_ACCENT_REGEX=new RegExp([" \\ acute"," \\ grave"," \\ ddot"," \\ tilde"," \\ bar"," \\ breve"," \\ check"," \\ hat"," \\ vec"," \\ dot"," \\ mathring"].map(e=>" \\ "+e).join("|"));defineFunction({type:"accent",names:[" \\ acute"," \\ grave"," \\ ddot"," \\ tilde"," \\ bar"," \\ breve"," \\ check"," \\ hat"," \\ vec"," \\ dot"," \\ mathring"," \\ widecheck"," \\ widehat"," \\ widetilde"," \\ overrightarrow"," \\ overleftarrow"," \\ Overrightarrow"," \\ overleftrightarrow"," \\ overgroup"," \\ overlinesegment"," \\ overleftharpoon"," \\ overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var y=normalizeArgument(t[0]),n=!NON_STRETCHY_ACCENT_REGEX.test(e.funcName),k=!n||e.funcName===" \\ widehat"||e.funcName===" \\ widetilde"||e.funcName===" \\ widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:k,base:y}},htmlBuilder
2024-08-21 13:12:53 +08:00
] ` ,controlWordRegexString=" \\ \\ [a-zA-Z@]+",controlSymbolRegexString=" \\ \\ [^ \u D800- \u DFFF]",controlWordWhitespaceRegexString="("+controlWordRegexString+")"+spaceRegexString+"*",controlSpaceRegexString= ` \ \ \ \ (
| [ \ r ] +
? ) [ \ r ] * ` ,combiningDiacriticalMarkString="[̀-ͯ]",combiningDiacriticalMarksEndRegex=new RegExp(combiningDiacriticalMarkString+"+ $ "),tokenRegexString="("+spaceRegexString+"+)|"+(controlSpaceRegexString+"|")+"([!- \\ [ \\ ]-‧-豈-]"+(combiningDiacriticalMarkString+"*")+"|[ \u D800- \u DBFF][ \u DC00- \u DFFF]"+(combiningDiacriticalMarkString+"*")+"| \\ \\ verb \\ *([^]).*? \\ 4| \\ \\ verb([^*a-zA-Z]).*? \\ 5"+("|"+controlWordWhitespaceRegexString)+("|"+controlSymbolRegexString+")");class Lexer{constructor(t,y){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=y,this.tokenRegex=new RegExp(tokenRegexString,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,y){this.catcodes[t]=y}lex(){var t=this.input,y=this.tokenRegex.lastIndex;if(y===t.length)return new Token("EOF",new SourceLocation(this,y,y));var n=this.tokenRegex.exec(t);if(n===null||n.index!==y)throw new ParseError("Unexpected character: '"+t[y]+"'",new Token(t[y],new SourceLocation(this,y,y+1)));var k=n[6]||n[3]||(n[2]?" \\ ":" ");if(this.catcodes[k]===14){var L=t.indexOf( `
` ,this.tokenRegex.lastIndex);return L===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $ )")):this.tokenRegex.lastIndex=L+1,this.lex()}return new Token(k,new SourceLocation(this,y,this.tokenRegex.lastIndex))}}class Namespace{constructor(t,y){t===void 0&&(t={}),y===void 0&&(y={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=y,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new ParseError("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var y in t)t.hasOwnProperty(y)&&(t[y]==null?delete this.current[y]:this.current[y]=t[y])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,y,n){if(n===void 0&&(n=!1),n){for(var k=0;k<this.undefStack.length;k++)delete this.undefStack[k][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=y)}else{var L=this.undefStack[this.undefStack.length-1];L&&!L.hasOwnProperty(t)&&(L[t]=this.current[t])}y==null?delete this.current[t]:this.current[t]=y}}var macros=_macros;defineMacro(" \\ noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});defineMacro(" \\ expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});defineMacro(" \\ @firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});defineMacro(" \\ @secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});defineMacro(" \\ @ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var y=e.future();return t[0].length===1&&t[0][0].text===y.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});defineMacro(" \\ @ifstar"," \\ @ifnextchar *{ \\ @firstoftwo{#1}}");defineMacro(" \\ TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var digitToNumber={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};defineMacro(" \\ char",function(e){var t=e.popToken(),y,n="";if(t.text==="'")y=8,t=e.popToken();else if(t.text==='"')y=16,t=e.popToken();else if(t.text===" ` ")if(t=e.popToken(),t.text[0]===" \ \ ")n=t.text.charCodeAt(1);else{if(t.text===" EOF ")throw new ParseError(" \ \ char ` missing argument");n=t.text.charCodeAt(0)}else y=10;if(y){if(n=digitToNumber[t.text],n==null||n>=y)throw new ParseError("Invalid base-"+y+" digit "+t.text);for(var k;(k=digitToNumber[e.future().text])!=null&&k<y;)n*=y,n+=k,e.popToken()}return" \\ @char{"+n+"}"});var newcommand=(e,t,y)=>{var n=e.consumeArg().tokens;if(n.length!==1)throw new ParseError(" \\ newcommand's first argument must be a macro name");var k=n[0].text,L=e.isDefined(k);if(L&&!t)throw new ParseError(" \\ newcommand{"+k+"} attempting to redefine "+(k+"; use \\ renewcommand"));if(!L&&!y)throw new ParseError(" \\ renewcommand{"+k+"} when command "+k+" does not yet exist; use \\ newcommand");var $ =0;if(n=e.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var j="",V=e.expandNextToken();V.text!=="]"&&V.text!=="EOF";)j+=V.text,V=e.expandNextToken();if(!j.match(/^ \s *[0-9]+ \s * $ /))throw new ParseError("Invalid number of arguments: "+j); $ =parseInt(j),n=e.consumeArg().tokens}return e.macros.set(k,{tokens:n,numArgs: $ }),""};defineMacro(" \\ newcommand",e=>newcommand(e,!1,!0));defineMacro(" \\ renewcommand",e=>newcommand(e,!0,!1));defineMacro(" \\ providecommand",e=>newcommand(e,!0,!0));defineMacro(" \\ message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(y=>y.text).join("")),""});defineMacro(" \\ errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(y=>y.text).join("")),""});defineMacro(" \\ show",e=>{var t=e.popToken(),y=t.text;return console.l
please report what input caused this bug ` );return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:k}}unicodeSymbols.hasOwnProperty(y[0])&&!symbols[this.mode][y[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+y[0]+'" used in math mode',t),y=unicodeSymbols[y[0]]+y.slice(1));var L=combiningDiacriticalMarksEndRegex.exec(y);L&&(y=y.substring(0,L.index),y==="i"?y="ı ":y==="j"&&(y="ȷ"));var $ ;if(symbols[this.mode][y]){this.settings.strict&&this.mode==="math"&&extraLatin.indexOf(y)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+y[0]+'" used in math mode',t);var j=symbols[this.mode][y].group,V=SourceLocation.range(t),z;if(ATOMS.hasOwnProperty(j)){var re=j;z={type:"atom",mode:this.mode,family:re,loc:V,text:y}}else z={type:j,mode:this.mode,loc:V,text:y}; $ =z}else if(y.charCodeAt(0)>=128)this.settings.strict&&(supportedCodepoint(y.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+y[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+y[0]+'"'+(" ("+y.charCodeAt(0)+")"),t)), $ ={type:"textord",mode:"text",loc:SourceLocation.range(t),text:y};else return null;if(this.consume(),L)for(var ie=0;ie<L[0].length;ie++){var oe=L[0][ie];if(!unicodeAccents[oe])throw new ParseError("Unknown accent ' "+oe+"'",t);var ue=unicodeAccents[oe][this.mode]||unicodeAccents[oe].text;if(!ue)throw new ParseError("Accent "+oe+" unsupported in "+this.mode+" mode",t); $ ={type:"accent",mode:this.mode,loc:SourceLocation.range(t),label:ue,isStretchy:!1,isShifty:!0,base: $ }}return $ }};Parser $ 1.endOfExpression=["}"," \\ endgroup"," \\ end"," \\ right","&"];var parseTree=function(t,y){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Parser $ 1(t,y);delete n.gullet.macros.current[" \\ df@tag"];var k=n.parse();if(delete n.gullet.macros.current[" \\ current@color"],delete n.gullet.macros.current[" \\ color"],n.gullet.macros.get(" \\ df@tag")){if(!y.displayMode)throw new ParseError(" \\ tag works only in display equations");k=[{type:"tag",mode:"text",body:k,tag:n.subparse([new Token(" \\ df@tag")])}]}return k},render=function(t,y,n){y.textContent="";var k=renderToDomTree(t,n).toNode();y.appendChild(k)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),render=function(){throw new ParseError("KaTeX doesn't work in quirks mode.")});var renderToString=function(t,y){var n=renderToDomTree(t,y).toMarkup();return n},generateParseTree=function(t,y){var n=new Settings(y);return parseTree(t,n)},renderError=function(t,y,n){if(n.throwOnError||!(t instanceof ParseError))throw t;var k=buildCommon.makeSpan(["katex-error"],[new SymbolNode(y)]);return k.setAttribute("title",t.toString()),k.setAttribute("style","color:"+n.errorColor),k},renderToDomTree=function(t,y){var n=new Settings(y);try{var k=parseTree(t,n);return buildTree(k,t,n)}catch(L){return renderError(L,t,n)}},renderToHTMLTree=function(t,y){var n=new Settings(y);try{var k=parseTree(t,n);return buildHTMLTree(k,t,n)}catch(L){return renderError(L,t,n)}},katex={version:"0.16.11",render,renderToString,ParseError,SETTINGS_SCHEMA,__parse:generateParseTree,__renderToDomTree:renderToDomTree,__renderToHTMLTree:renderToHTMLTree,__setFontMetrics:setFontMetrics,__defineSymbol:defineSymbol,__defineFunction:defineFunction,__defineMacro:defineMacro,__domTree:{Span,Anchor,SymbolNode,SvgNode,PathNode,LineNode}};const inlineRule=/^( \$ {1,2})(?! \$ )((?: \\ .|[^ \\ \n ])*?(?: \\ .|[^ \\ \n \$ ])) \1 (?=[ \s ?! \. ,:?!。,:]| $ )/,inlineRuleNonStandard=/^( \$ {1,2})(?! \$ )((?: \\ .|[^ \\ \n ])*?(?: \\ .|[^ \\ \n \$ ])) \1 /,blockRule=/^( \$ {1,2}) \n ((?: \\ [^]|[^ \\ ])+?) \n \1 (?: \n | $ )/;function markedKatex(e={}){return{extensions:[inlineKatex(e,createRenderer(e,!1)),blockKatex(e,createRenderer(e,!0))]}}function createRendere
2024-08-22 22:54:06 +08:00
` :"")}function inlineKatex(e,t){const y=e&&e.nonStandard,n=y?inlineRuleNonStandard:inlineRule;return{name:"inlineKatex",level:"inline",start(k){let L, $ =k;for(; $ ;){if(L= $ .indexOf(" $ "),L===-1)return;if((y?L>-1:L===0|| $ .charAt(L-1)===" ")&& $ .substring(L).match(n))return L; $ = $ .substring(L+1).replace(/^ \$ +/,"")}},tokenizer(k,L){const $ =k.match(n);if( $ )return{type:"inlineKatex",raw: $ [0],text: $ [2].trim(),displayMode: $ [1].length===2}},renderer:t}}function blockKatex(e,t){return{name:"blockKatex",level:"block",tokenizer(y,n){const k=y.match(blockRule);if(k)return{type:"blockKatex",raw:k[0],text:k[2].trim(),displayMode:k[1].length===2}},renderer:t}}marked.use(markedKatex({throwOnError:!1,output:"html",nonStandard:!0}));class WxRenderer extends Renderer{constructor(y){super();ep(this,"reset",()=>{this.footnotes=[],this.footnoteIndex=0});ep(this,"merge",(y,n)=>({...y,...n}));ep(this,"buildTheme",y=>{const n=this.merge(y.BASE,{"font-family":this.opts.fonts,"font-size":this.opts.size});return{...Object.fromEntries(Object.entries(y.inline).map(([L, $ ])=>[L,this.merge(n, $ )])),...Object.fromEntries(Object.entries(y.block).map(([L, $ ])=>[L,this.merge(n, $ )]))}});ep(this,"getStyles",(y,n="")=>{const k=this.styleMapping[y];return k? ` style = "${Object.entries(k).map(([$,j])=>`${$}:${j}`).join(" ; ")}${n}" ` :""});ep(this,"addFootnote",(y,n)=>(this.footnotes.push([++this.footnoteIndex,y,n]),this.footnoteIndex));ep(this,"buildFootnotes",()=>{if(!this.footnotes.length)return"";const y=this.footnotes.map(([n,k,L])=>L===k? ` < code style = "font-size: 90%; opacity: 0.6;" > [ $ { n } ] < /code>: <i style="word-break: break-all">${k}</i > < br / > ` : ` < code style = "font-size: 90%; opacity: 0.6;" > [ $ { n } ] < /code> ${k}: <i style="word-break: break-all">${L}</i > < br / > ` ).join( `
2024-08-22 19:23:55 +08:00
` );return ` < h4 $ { this . getStyles ( "h4" ) } > 引用链接 < / h 4 > < p $ { t h i s . g e t S t y l e s ( " f o o t n o t e s " ) } > $ { y } < / p > ` } ) ; e p ( t h i s , " b u i l d A d d i t i o n " , ( ) = > `
< style >
. preview - wrapper pre : : before {
position : absolute ;
top : 0 ;
right : 0 ;
color : # ccc ;
text - align : center ;
font - size : 0.8 em ;
padding : 5 px 10 px 0 ;
line - height : 15 px ;
height : 15 px ;
font - weight : 600 ;
}
< / s t y l e >
` );ep(this,"setOptions",y=>{this.opts=this.merge(this.opts,y),this.styleMapping=this.buildTheme(this.opts.theme)});ep(this,"heading",(y,n)=>{const k= ` h$ { n } ` ;return ` < $ { k } $ { this . getStyles ( k ) } > $ { y } < / $ { k } > ` } ) ; e p ( t h i s , " p a r a g r a p h " , y = > { c o n s t n = y . i n c l u d e s ( " < f i g u r e " ) & & y . i n c l u d e s ( " < i m g " ) , k = y . t r i m ( ) = = = " " ; r e t u r n n ? y : k ? " " : ` < p $ { t h i s . g e t S t y l e s ( " p " ) } > $ { y } < / p > ` } ) ; e p ( t h i s , " b l o c k q u o t e " , y = > ( y = y . r e p l a c e ( / < p . * ? > / g , ` < p $ { t h i s . g e t S t y l e s ( " b l o c k q u o t e _ p " ) } > ` ) , ` < b l o c k q u o t e $ { t h i s . g e t S t y l e s ( " b l o c k q u o t e " ) } > $ { y } < / b l o c k q u o t e > ` ) ) ; e p ( t h i s , " c o d e " , ( y , n = " " ) = > { i f ( n . s t a r t s W i t h ( " m e r m a i d " ) ) r e t u r n s e t T i m e o u t ( ( ) = > { v a r $ ; ( $ = w i n d o w . m e r m a i d ) = = n u l l | | $ . r u n ( ) } , 0 ) , ` < c e n t e r > < p r e c l a s s = " m e r m a i d " > $ { y } < / p r e > < / c e n t e r > ` ; c o n s t k = n . s p l i t ( " " ) [ 0 ] , L = H i g h l i g h t J S . g e t L a n g u a g e ( k ) ? k : " p l a i n t e x t " ; r e t u r n y = H i g h l i g h t J S . h i g h l i g h t ( y , { l a n g u a g e : L } ) . v a l u e , y = y . r e p l a c e ( / \ r \ n / g , " < b r / > " ) . r e p l a c e ( / \ n / g , " < b r / > " ) . r e p l a c e ( / ( > [ ^ < ] + ) | ( ^ [ ^ < ] + ) / g , $ = > $ . r e p l a c e ( / \ s / g , " & n b s p ; " ) ) , ` < p r e c l a s s = " h l j s c o d e _ _ p r e " $ { t h i s . g e t S t y l e s ( " c o d e _ p r e " ) } > < c o d e c l a s s = " l a n g u a g e - $ { n } " $ { t h i s . g e t S t y l e s ( " c o d e " ) } > $ { y } < / c o d e > < / p r e > ` } ) ; e p ( t h i s , " c o d e s p a n " , y = > ` < c o d e $ { t h i s . g e t S t y l e s ( " c o d e s p a n " ) } > $ { y } < / c o d e > ` ) ; e p ( t h i s , " l i s t i t e m " , y = > ` < l i $ { t h i s . g e t S t y l e s ( " l i s t i t e m " ) } > < s p a n > < % s / > < / s p a n > $ { y } < / l i > ` ) ; e p ( t h i s , " l i s t " , ( y , n ) = > { y = y . r e p l a c e ( / < \ / * p . * ? > / g , " " ) . r e p l a c e ( / < \ / * p > / g , " " ) ; c o n s t k = y . s p l i t ( " < % s / > " ) ; i f ( ! n ) r e t u r n ` < u l $ { t h i s . g e t S t y l e s ( " u l " ) } > $ { k . j o i n ( " • " ) } < / u l > ` ; c o n s t L = k . m a p ( ( $ , j ) = > ( j > 0 ? ` $ { j } . ` : " " ) + $ ) . j o i n ( " " ) ; r e t u r n ` < o l $ { t h i s . g e t S t y l e s ( " o l " ) } > $ { L } < / o l > ` } ) ; e p ( t h i s , " i m a g e " , ( y , n , k ) = > { c o n s t L = r e = > r e ? ` < f i g c a p t i o n $ { t h i s . g e t S t y l e s ( " f i g c a p t i o n " ) } > $ { r e } < / f i g c a p t i o n > ` : " " , $ = { a l t : ( ) = > k , t i t l e : ( ) = > n , " a l t - t i t l e " : ( ) = > k | | n , " t i t l e - a l t " : ( ) = > n | | k } [ t h i s . o p t s . l e g e n d ] | | ( ( ) = > " " ) , j = L ( $ ( ) ) , V = t h i s . g e t S t y l e s ( " f i g u r e " ) , z = t h i s . g e t S t y l e s ( " i m a g e " ) ; r e t u r n ` < f i g u r e $ { V } > < i m g $ { z } s r c = " $ { y } " t i t l e = " $ { n } " a l t = " $ { k } " / > $ { j } < / f i g u r e > ` } ) ; e p ( t h i s , " l i n k " , ( y , n , k ) = > { i f ( y . s t a r t s W i t h ( " h t t p s : / / m p . w e i x i n . q q . c o m " ) ) r e t u r n ` < a h r e f = " $ { y } " t i t l e = " $ { n | | k } " $ { t h i s . g e t S t y l e s ( " w x _ l i n k " ) } > $ { k } < / a > ` ; i f ( y = = = k ) r e t u r n k ; i f ( t h i s . o p t s . s t a t u s ) { c o n s t L = t h i s . a d d F o o t n o t e ( n | | k , y ) ; r e t u r n ` < s p a n $ { t h i s . g e t S t y l e s ( " l i n k " ) } > $ { k } < s u p > [ $ { L } ] < / s u p > < / s p a n > ` } r e t u r n ` < s p a n $ { t h i s . g e t S t y l e s ( " l i n k " ) } > $ { k } < / s p a n > ` } ) ; e p ( t h i s , " s t r o n g " , y = > ` < s t r o n g $ { t h i s . g e t S t y l e s ( " s t r o n g " ) } > $ { y } < / s t r o n g > ` ) ; e p ( t h i s , " e m " , y = > ` < s p a n s t y l e = " f o n t - s t y l e : i t a l i c ; " > $ { y } < / s p a n > ` ) ; e p ( t h i s , " t a b l e " , ( y , n ) = > `
< section style = "padding:0 8px;" >
< table class = "preview-table" >
< thead $ { this . getStyles ( "thead" ) } > $ { y } < / t h e a d >
< tbody > $ { n } < / t b o d y >
< / t a b l e >
< / s e c t i o n > ` ) ; e p ( t h i s , " t a b l e c e l l " , y = > ` < t d $ { t h i s . g e t S t y l e s ( " t d " ) } > $ { y } < / t d > ` ) ; e p ( t h i s , " h r " , ( ) = > ` < h r $ { t h i s . g e t S t y l e s ( " h r " ) } / > ` ) ; t h i s . o p t s = y , t h i s . f o o t n o t e s = [ ] , t h i s . f o o t n o t e I n d e x = 0 , t h i s . s t y l e M a p p i n g = t h i s . b u i l d T h e m e ( y . t h e m e ) } } c o n s t D E F A U L T _ C O N T E N T = ` # 示 例 文 章 : G o o g l e 搜 索 的 即 时 自 动 补 全 功 能 究 竟 是 如 何 “ 工 作 ” 的 ?
2024-08-21 13:12:53 +08:00
> Google 搜索 * * 自动补全功能 * * 的强大 , 相信不少朋友都能感受到 , 它帮助我们更快地 “ 补全 ” 我们所要输入的搜索关键字 。 那么 , 它怎么知道我们要输入什么内容 ? 它又是如何工作的 ? 在这篇文章里 , 我们一起来看看 。
# # 使用自动补全
Google 搜索的自动补全功能可以在 Google 搜索应用的大多数位置使用 , 包括 [ Google ] ( https : //www.google.com/) 主页、适用于 IOS 和 Android 的 Google 应用,我们只需要在 Google 搜索框上开始键入关键字,就可以看到联想词了。
! [ ] ( https : //cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303019705-c161ce00-d245-446a-b81c-42ec91474a40.gif)
在上图示例中 , 我们可以看到 , 输入关键字 \ ` juej \` , Google 搜索会联想到“掘金”、“掘金小册”、“绝句”等等,好处就是,我们无须输入完整的关键字即可轻松完成针对这些 topics 的搜索。
谷歌搜索的自动补全功能对于使用移动设备的用户来说特别有用 , 用户可以轻松在难以键入的小屏幕上完成搜索 。 当然 , 对于移动设备用户和台式机用户而言 , 这都节省了大量的时间 。 根据 Google 官方报告 , 自动补全功能可以减少大约 25 % 的打字 , 累积起来 , 预计每天可以节省 200 多年的打字时间 。 是的 , 每天 !
> 注意 , 本文所提到的 “ * * 联想词 * * ” 与 “ * * 预测 * * ” , 是同一个意思 。
# # 基于 “ 预测 ” 而非 “ 建议 ”
Google 官方将自动补全功能称之为 “ 预测 ” , 而不是 “ 建议 ” , 为什么呢 ? 其实是有充分理由的 。 自动补全功能是为了 * * 帮助用户完成他们打算进行的搜索 * * , 而不是建议用户要执行什么搜索 。
那么 , Google 是如何确定这些 “ 预测 ” 的 ? 其实 , Google 会根据趋势搜索 [ trends ] ( https : //trends.google.com/trends/?geo=US) 给到我们这些“预测”。简单来说,哪个热门、哪个搜索频率高,就更可能推给我们。当然,这也与我们当前所处的位置以及我们的搜索历史相关。
另外 , 这些 “ 预测 ” 也会随着我们键入的关键字的变更而更改 。 例如 , 当我们把键入的关键字从 \ ` juej \` 更改为 \` juex \` 时,与“掘金”相关的预测会“消失”,同时,与“觉醒”、“决心”相关联的词会出现。
! [ ] ( https : //cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303068169-386a99cb-143b-4ded-a859-1b7a4c4b5bd3.gif)
# # 为什么看不到某些联想词 ?
如果我们在输入某个关键字时看不到联想词 , 那么表明 Google 的算法可能检测到 :
- 这个关键字不是热门字词 ;
- 搜索的字词太新了 , 我们可能需要等待几天或几周才能看到联想词 ;
- 这是一个侮辱性或敏感字词 , 这个搜索字词违反了 Google 的相关政策 。 更加详细的情况 , 可以了解 [ Google 搜索自动补全政策 ] ( https : //support.google.com/websearch/answer/7368877)。
# # 为什么会看到某些不当的联想词 ?
Google 拥有专门设计的系统 , 可以自动捕获不适当的预测结果而不显示出来 。 然而 , Google 每天需要处理数十亿次搜索 , 这意味着 Google 每天会显示数十亿甚至上百亿条预测 。 再好的系统 , 也可能存在缺陷 , 不正确的预测也可能随时会出现 。
我们作为 Google 搜索的用户 , 如果认定某条预测违反了相关的搜索自动补全政策 , 可以进行举报反馈 , 点击右下角 “ * * 举报不当的联想查询 * * ” 并勾选相关选项即可 。
! [ ] ( https : //cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303098026-cac215dc-42c9-462a-a359-dcfb12ed3234.gif)
# # 如何实现自动补全算法 ?
目前 , Google 官方似乎并没有公开搜索自动补全的算法实现 , 但是业界在这方面已经有了不少研究 。
一个好的自动补全器必须是快速的 , 并且在用户键入下一个字符后立即更新联想词列表 。 * * 自动补全器的核心是一个函数 , 它接受输入的前缀 , 并搜索以给定前缀开头的词汇或语句列表 * * 。 通常来说 , 只需要返回少量的数目即可 。
接下来 , 我们先从一个简单且低效的实现开始 , 并在此基础上逐步构建更高效的方法 。
# # # 词汇表实现
一个 * * 简单粗暴的实现方式 * * 是 : 顺序查找词汇表 , 依次检查每个词汇 , 看它是否以给定的前缀开头 。
但是 , 此方法需要将前缀与每个词汇进行匹配检查 , 若词汇量较少 , 这种方式可能勉强行得通 。 但是 , 如果词汇量规模较大 , 效率就太低了 。
一个 * * 更好的实现方式是 * * : 让词汇按字典顺序排序 。 借助二分搜索算法 , 可以快速搜索有序词汇表中的前缀 。 由于二分搜索的每一步都会将搜索的范围减半 , 因此 , 总的搜索时间与词汇表中单词数量的对数成正比 , 即时间复杂度是 \ ` O(log N) \` 。二分搜索的性能很好,但有没有更好的实现呢?当然有,往下看。
# # # 前缀树实现
通常来说 , 许多词汇都以相同的前缀开头 , 比如 \ ` need \` 、 \` nested \` 都以 \` ne \` 开头, \` seed \` 、 \` speed \` 都以 \` s \` 开头。要是为每个单词分别存储公共前缀似乎很浪费。
! [ ] ( https : //cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303128008-93cf798d-2662-4eec-8f80-2e07436aebfe.png)
前缀树是一种利用公共前缀来加速补全速度的数据结构 。 前缀树在节点树中排列一组单词 , 单词沿着从根节点到叶子节点的路径存储 , 树的层次对应于前缀的字母位置 。
前缀的补全是顺着前缀定义的路径来查找的 。 例如 , 在上图的前缀树中 , 前缀 \ ` ne \` 对应于从子节点取左边缘 \` N \` 和唯一边缘 \` E \` 的路径。然后可以通过继续遍历从 \` E \` 节点可以达到的所有叶节点来生成补全列表。在图中, \` ne \` 的补全可以是两个分支: \` -ed \` 和 \` -sted \` 。如果在数中找不到由前缀定义的路径,则说明词汇表中不包含以该前缀开头的单词。
# # # 有限状态自动机 ( DFA ) 实现
前缀树可以有效处理公共前缀 , 但是 , 对于其他共享词部分 , 仍会分别存储在每个分支中 。 比如 , 后缀 \ ` ed \` 、 \` ing \` 、 \` tion \` 在英文单词中特别常见。在上一个例子中, \` e \` 、 \` d \` 分别存放在了每一个分支上。
有没有一种方法可以更加节省存储空间呢 ? 有的 , 那就是 DFA 。
< center >
< img src = "https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303158478-66a96e2d-6424-43d6-8cb3-2f7a39f960b8.gif" style = "width: 50%;" > < / c e n t e r >
在上面的例子中 , 单词 \ ` need \` 、 \` nested \` 、 \` seed \` 和 \` speed \` 仅由 9 个节点组成,而上一张图中的前缀树包含了 17 个节点。
可以看出 , 最小化前缀树 DFA 可以在很大程度上减少数据结构的大小 。 即使词汇量很大 , 最小化 DFA 通常也适合在内存中存储 , 避免昂贵的磁盘访问是实现快速自动补全的关键 。
# # # 一些扩展
上面介绍了如何利用合理的数据结构实现基本的自动补全功能 。 这些数据结构可以通过多种方式进行扩展 , 从而改善用户体验 。
通常 , 满足特定前缀的词汇可能很多 , 而用户界面上能够显示的却不多 , 我们更希望能显示最常搜索或者最有价值的词汇 。 这通常可以通过为词汇表中的每个单词增加一个代表单词值的 * * 权重 * * \ ` weight \` ,并且按照权重高低来排序自动补全列表。
- 对于排序后的词汇表来说 , 在词汇表每个元素上增加 \ ` weight \` 属性并不难;
- 对于前缀树来说 , 将 \ ` weight \` 存储在叶子节点中,也是很简单的一个实现;
- 对于 \ ` DFA \` 来说,则较为复杂。因为一个叶子节点可以通过多条路径到达。一种解决方案是将权重关联到路径而不是叶子节点。
目前有不少开源库都提供了这个功能 , 比如主流的搜索引擎框架 [ Elasticsearch ] ( https : //www.elastic.co/products/elasticsearch)、[Solr](https://lucene.apache.org/solr/) 等,基于此,我们可以实现高效而强大的自动补全功能。
# # # # 推荐阅读
- [ 阿里又一个 20 k + stars 开源项目诞生 , 恭喜 fastjson ! ] ( https : //mp.weixin.qq.com/s/RNKDCK2KoyeuMeEs6GUrow)
- [ 刷掉 90 % 候选人的互联网大厂海量数据面试题 ( 附题解 + 方法总结 ) ] ( https : //mp.weixin.qq.com/s/rjGqxUvrEqJNlo09GrT1Dw)
- [ 好用 ! 期待已久的文本块功能究竟如何在 Java 13 中发挥作用 ? ] ( https : //mp.weixin.qq.com/s/kalGv5T8AZGxTnLHr2wDsA)
- [ 2019 GitHub 开源贡献排行榜新鲜出炉 ! 微软谷歌领头 , 阿里跻身前 12 ! ] ( https : //mp.weixin.qq.com/s/_q812aGD1b9QvZ2WFI0Qgw)
-- -
欢迎关注我的公众号 “ * * Doocs * * ” , 原创技术文章第一时间推送 。
< center >
< img src = "https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303220922-7e14aefa-816e-44c1-8604-ade709ca1c69.png" style = "width: 100px;" >
< / c e n t e r >
` ,DEFAULT_CSS_CONTENT= ` / *
按Ctrl / Command + F可格式化
* /
/* 一级标题样式 */
h1 {
}
/* 二级标题样式 */
h2 {
}
/* 三级标题样式 */
h3 {
}
/* 四级标题样式 */
h4 {
}
/* 图片样式 */
image {
}
/* 引用样式 */
blockquote {
}
/* 引用段落样式 */
blockquote _p {
}
/* 段落样式 */
p {
}
/* 分割线样式 */
hr {
}
/* 行内代码样式 */
codespan {
}
/* 粗体样式 */
strong {
}
/* 链接样式 */
link {
}
/* 微信链接样式 */
wx _link {
}
/* 有序列表样式 */
ol {
}
/* 无序列表样式 */
ul {
}
/* 列表项样式 */
li {
}
/* 代码块样式 */
code {
}
2024-08-24 19:24:09 +08:00
` ;var cheerio $ 2={exports:{}},lib $ d={},extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,n){y.__proto__=n}||function(y,n){for(var k in n)Object.prototype.hasOwnProperty.call(n,k)&&(y[k]=n[k])},extendStatics(e,t)};function __extends $ 4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function y(){this.constructor=e}e.prototype=t===null?Object.create(t):(y.prototype=t.prototype,new y)}var __assign $ 7=function(){return __assign $ 7=Object.assign||function(t){for(var y,n=1,k=arguments.length;n<k;n++){y=arguments[n];for(var L in y)Object.prototype.hasOwnProperty.call(y,L)&&(t[L]=y[L])}return t},__assign $ 7.apply(this,arguments)};function __rest $ 1(e,t){var y={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(y[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,n=Object.getOwnPropertySymbols(e);k<n.length;k++)t.indexOf(n[k])<0&&Object.prototype.propertyIsEnumerable.call(e,n[k])&&(y[n[k]]=e[n[k]]);return y}function __decorate(e,t,y,n){var k=arguments.length,L=k<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,y):n, $ ;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(e,t,y,n);else for(var j=e.length-1;j>=0;j--)( $ =e[j])&&(L=(k<3? $ (L):k>3? $ (t,y,L): $ (t,y))||L);return k>3&&L&&Object.defineProperty(t,y,L),L}function __param(e,t){return function(y,n){t(y,n,e)}}function __esDecorate(e,t,y,n,k,L){function $ (_e){if(_e!==void 0&&typeof _e!="function")throw new TypeError("Function expected");return _e}for(var j=n.kind,V=j==="getter"?"get":j==="setter"?"set":"value",z=!t&&e?n.static?e:e.prototype:null,re=t||(z?Object.getOwnPropertyDescriptor(z,n.name):{}),ie,oe=!1,ue=y.length-1;ue>=0;ue--){var de={};for(var pe in n)de[pe]=pe==="access"?{}:n[pe];for(var pe in n.access)de.access[pe]=n.access[pe];de.addInitializer=function(_e){if(oe)throw new TypeError("Cannot add initializers after decoration has completed");L.push( $ (_e||null))};var Ie=(0,y[ue])(j==="accessor"?{get:re.get,set:re.set}:re[V],de);if(j==="accessor"){if(Ie===void 0)continue;if(Ie===null||typeof Ie!="object")throw new TypeError("Object expected");(ie= $ (Ie.get))&&(re.get=ie),(ie= $ (Ie.set))&&(re.set=ie),(ie= $ (Ie.init))&&k.unshift(ie)}else(ie= $ (Ie))&&(j==="field"?k.unshift(ie):re[V]=ie)}z&&Object.defineProperty(z,n.name,re),oe=!0}function __runInitializers(e,t,y){for(var n=arguments.length>2,k=0;k<t.length;k++)y=n?t[k].call(e,y):t[k].call(e);return n?y:void 0}function __propKey(e){return typeof e=="symbol"?e:"".concat(e)}function __setFunctionName(e,t,y){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:y?"".concat(y," ",t):t})}function __metadata(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function __awaiter $ 8(e,t,y,n){function k(L){return L instanceof y?L:new y(function( $ ){ $ (L)})}return new(y||(y=Promise))(function(L, $ ){function j(re){try{z(n.next(re))}catch(ie){ $ (ie)}}function V(re){try{z(n.throw(re))}catch(ie){ $ (ie)}}function z(re){re.done?L(re.value):k(re.value).then(j,V)}z((n=n.apply(e,t||[])).next())})}function __generator $ 8(e,t){var y={label:0,sent:function(){if(L[0]&1)throw L[1];return L[1]},trys:[],ops:[]},n,k,L, $ ;return $ ={next:j(0),throw:j(1),return:j(2)},typeof Symbol=="function"&&( $ [Symbol.iterator]=function(){return this}), $ ;function j(z){return function(re){return V([z,re])}}function V(z){if(n)throw new TypeError("Generator is already executing.");for(; $ &&( $ =0,z[0]&&(y=0)),y;)try{if(n=1,k&&(L=z[0]&2?k.return:z[0]?k.throw||((L=k.return)&&L.call(k),0):k.next)&&!(L=L.call(k,z[1])).done)return L;switch(k=0,L&&(z=[z[0]&2,L.value]),z[0]){case 0:case 1:L=z;break;case 4:return y.label++,{value:z[1],done:!1};case 5:y.label++,k=z[1],z=[0];continue;case 7:z=y.ops.pop(),y.trys.pop();continue;default:if(L=y.trys,!(L=L.length>0&&L[L.length-1])&&(z[0]===6||z[0]===2)){y=0;continue}if(z[0]===3&&(!L||z[1]>L[0]&&z
` ,nexist $ 1="∄",nexists $ 1="∄",Nfr $ 1="𝔑 ",nfr $ 1="𝔫 ",ngE $ 1="≧̸",nge $ 1="≱",ngeq $ 1="≱",ngeqq $ 1="≧̸",ngeqslant $ 1="⩾̸",nges $ 1="⩾̸",nGg $ 1="⋙̸",ngsim $ 1="≵",nGt $ 1="≫⃒",ngt $ 1="≯",ngtr $ 1="≯",nGtv $ 1="≫̸",nharr $ 1="↮",nhArr $ 1="⇎",nhpar $ 1="⫲",ni $ 1="∋",nis $ 1="⋼",nisd $ 1="⋺",niv $ 1="∋",NJcy $ 1="Њ",njcy $ 1="њ",nlarr $ 1="↚",nlArr $ 1="⇍",nldr $ 1="‥",nlE $ 1="≦̸",nle $ 1="≰",nleftarrow $ 1="↚",nLeftarrow $ 1="⇍",nleftrightarrow $ 1="↮",nLeftrightarrow $ 1="⇎",nleq $ 1="≰",nleqq $ 1="≦̸",nleqslant $ 1="⩽̸",nles $ 1="⩽̸",nless $ 1="≮",nLl $ 1="⋘̸",nlsim $ 1="≴",nLt $ 1="≪⃒",nlt $ 1="≮",nltri $ 1="⋪",nltrie $ 1="⋬",nLtv $ 1="≪̸",nmid $ 1="∤",NoBreak $ 1=" ",NonBreakingSpace $ 1=" ",nopf $ 1="𝕟 ",Nopf $ 1="ℕ ",Not $ 1="⫬",not $ 3="¬",NotCongruent $ 1="≢",NotCupCap $ 1="≭",NotDoubleVerticalBar $ 1="∦",NotElement $ 1="∉",NotEqual $ 1="≠",NotEqualTilde $ 1="≂̸",NotExists $ 1="∄",NotGreater $ 1="≯",NotGreaterEqual $ 1="≱",NotGreaterFullEqual $ 1="≧̸",NotGreaterGreater $ 1="≫̸",NotGreaterLess $ 1="≹",NotGreaterSlantEqual $ 1="⩾̸",NotGreaterTilde $ 1="≵",NotHumpDownHump $ 1="≎̸",NotHumpEqual $ 1="≏̸",notin $ 1="∉",notindot $ 1="⋵̸",notinE $ 1="⋹̸",notinva $ 1="∉",notinvb $ 1="⋷",notinvc $ 1="⋶",NotLeftTriangleBar $ 1="⧏̸",NotLeftTriangle $ 1="⋪",NotLeftTriangleEqual $ 1="⋬",NotLess $ 1="≮",NotLessEqual $ 1="≰",NotLessGreater $ 1="≸",NotLessLess $ 1="≪̸",NotLessSlantEqual $ 1="⩽̸",NotLessTilde $ 1="≴",NotNestedGreaterGreater $ 1="⪢̸",NotNestedLessLess $ 1="⪡̸",notni $ 1="∌",notniva $ 1="∌",notnivb $ 1="⋾",notnivc $ 1="⋽",NotPrecedes $ 1="⊀",NotPrecedesEqual $ 1="⪯̸",NotPrecedesSlantEqual $ 1="⋠",NotReverseElement $ 1="∌",NotRightTriangleBar $ 1="⧐̸",NotRightTriangle $ 1="⋫",NotRightTriangleEqual $ 1="⋭",NotSquareSubset $ 1="⊏̸",NotSquareSubsetEqual $ 1="⋢",NotSquareSuperset $ 1="⊐̸",NotSquareSupersetEqual $ 1="⋣",NotSubset $ 1="⊂⃒",NotSubsetEqual $ 1="⊈",NotSucceeds $ 1="⊁",NotSucceedsEqual $ 1="⪰̸",NotSucceedsSlantEqual $ 1="⋡",NotSucceedsTilde $ 1="≿̸",NotSuperset $ 1="⊃⃒",NotSupersetEqual $ 1="⊉",NotTilde $ 1="≁",NotTildeEqual $ 1="≄",NotTildeFullEqual $ 1="≇",NotTildeTilde $ 1="≉",NotVerticalBar $ 1="∤",nparallel $ 1="∦",npar $ 1="∦",nparsl $ 1="⫽⃥",npart $ 1="∂̸",npolint $ 1="⨔",npr $ 1="⊀",nprcue $ 1="⋠",nprec $ 1="⊀",npreceq $ 1="⪯̸",npre $ 1="⪯̸",nrarrc $ 1="⤳̸",nrarr $ 1="↛",nrArr $ 1="⇏",nrarrw $ 1="↝̸",nrightarrow $ 1="↛",nRightarrow $ 1="⇏",nrtri $ 1="⋫",nrtrie $ 1="⋭",nsc $ 1="⊁",nsccue $ 1="⋡",nsce $ 1="⪰̸",Nscr $ 1="𝒩 ",nscr $ 1="𝓃 ",nshortmid $ 1="∤",nshortparallel $ 1="∦",nsim $ 1="≁",nsime $ 1="≄",nsimeq $ 1="≄",nsmid $ 1="∤",nspar $ 1="∦",nsqsube $ 1="⋢",nsqsupe $ 1="⋣",nsub $ 1="⊄",nsubE $ 1="⫅̸",nsube $ 1="⊈",nsubset $ 1="⊂⃒",nsubseteq $ 1="⊈",nsubseteqq $ 1="⫅̸",nsucc $ 1="⊁",nsucceq $ 1="⪰̸",nsup $ 1="⊅",nsupE $ 1="⫆̸",nsupe $ 1="⊉",nsupset $ 1="⊃⃒",nsupseteq $ 1="⊉",nsupseteqq $ 1="⫆̸",ntgl $ 1="≹",Ntilde $ 3="Ñ",ntilde $ 3="ñ",ntlg $ 1="≸",ntriangleleft $ 1="⋪",ntrianglelefteq $ 1="⋬",ntriangleright $ 1="⋫",ntrianglerighteq $ 1="⋭",Nu $ 1="Ν ",nu $ 2="ν ",num $ 1="#",numero $ 1="№",numsp $ 1=" ",nvap $ 1="≍⃒",nvdash $ 1="⊬",nvDash $ 1="⊭",nVdash $ 1="⊮",nVDash $ 1="⊯",nvge $ 1="≥⃒",nvgt $ 1=">⃒",nvHarr $ 1="⤄",nvinfin $ 1="⧞",nvlArr $ 1="⤂",nvle $ 1="≤⃒",nvlt $ 1="<⃒",nvltrie $ 1="⊴⃒",nvrArr $ 1="⤃",nvrtrie $ 1="⊵⃒",nvsim $ 1="∼⃒",nwarhk $ 1="⤣",nwarr $ 1="↖",nwArr $ 1="⇖",nwarrow $ 1="↖",nwnear $ 1="⤧",Oacute $ 3="Ó",oacute $ 3="ó",oast $ 1="⊛",Ocirc $ 3="Ô",ocirc $ 3="ô",ocir $ 1="⊚",Ocy $ 1="О ",ocy $ 1="о ",odash $ 1="⊝",Odblac $ 1="Ő",odblac $ 1="ő",odiv $ 1="⨸",odot $ 1="⊙",odsold $ 1="⦼",OElig $ 1="Œ",oelig $ 1="œ",ofcir $ 1="⦿",Ofr $ 1="𝔒 ",ofr $ 1="𝔬 ",ogon $ 1="˛ ",Ograve $ 3="Ò",ograve $ 3="ò",ogt $ 1="⧁",ohbar $ 1="⦵",ohm $ 1="Ω",oint $ 1="∮",olarr $ 1="↺",olcir $ 1="⦾",olcross $ 1="⦻",oline $ 1="‾",olt $ 1="⧀",Omacr $ 1="Ō",omacr $ 1="ō",Omega $ 1="Ω",omega $ 1="ω",Omicron $ 1="Ο ",omicron $ 1="ο ",omid $ 1="⦶",ominus $ 1="⊖",Oopf $ 1="𝕆 ",oopf $ 1="𝕠 ",opar $ 1="⦷",OpenCurlyDoubleQuote $ 1="“",OpenCurlyQuote $ 1="‘ ",operp $ 1="⦹",oplus
` : $ (z.children):(0,t.isCDATA)(z)? $ (z.children):(0,t.isText)(z)?z.data:""}stringify $ 2.getText= $ ;function j(z){return Array.isArray(z)?z.map(j).join(""):(0,t.hasChildren)(z)&&!(0,t.isComment)(z)?j(z.children):(0,t.isText)(z)?z.data:""}stringify $ 2.textContent=j;function V(z){return Array.isArray(z)?z.map(V).join(""):(0,t.hasChildren)(z)&&(z.type===n.ElementType.Tag||(0,t.isCDATA)(z))?V(z.children):(0,t.isText)(z)?z.data:""}return stringify $ 2.innerText=V,stringify $ 2}var traversal={},hasRequiredTraversal;function requireTraversal(){if(hasRequiredTraversal)return traversal;hasRequiredTraversal=1,Object.defineProperty(traversal,"__esModule",{value:!0}),traversal.prevElementSibling=traversal.nextElementSibling=traversal.getName=traversal.hasAttrib=traversal.getAttributeValue=traversal.getSiblings=traversal.getParent=traversal.getChildren=void 0;var e=requireLib $ a(),t=[];function y(re){var ie;return(ie=re.children)!==null&&ie!==void 0?ie:t}traversal.getChildren=y;function n(re){return re.parent||null}traversal.getParent=n;function k(re){var ie,oe,ue=n(re);if(ue!=null)return y(ue);for(var de=[re],pe=re.prev,Ie=re.next;pe!=null;)de.unshift(pe),ie=pe,pe=ie.prev;for(;Ie!=null;)de.push(Ie),oe=Ie,Ie=oe.next;return de}traversal.getSiblings=k;function L(re,ie){var oe;return(oe=re.attribs)===null||oe===void 0?void 0:oe[ie]}traversal.getAttributeValue=L;function $ (re,ie){return re.attribs!=null&&Object.prototype.hasOwnProperty.call(re.attribs,ie)&&re.attribs[ie]!=null}traversal.hasAttrib= $ ;function j(re){return re.name}traversal.getName=j;function V(re){for(var ie,oe=re.next;oe!==null&&!(0,e.isTag)(oe);)ie=oe,oe=ie.next;return oe}traversal.nextElementSibling=V;function z(re){for(var ie,oe=re.prev;oe!==null&&!(0,e.isTag)(oe);)ie=oe,oe=ie.prev;return oe}return traversal.prevElementSibling=z,traversal}var manipulation $ 1={},hasRequiredManipulation $ 1;function requireManipulation $ 1(){if(hasRequiredManipulation $ 1)return manipulation $ 1;hasRequiredManipulation $ 1=1,Object.defineProperty(manipulation $ 1,"__esModule",{value:!0}),manipulation $ 1.prepend=manipulation $ 1.prependChild=manipulation $ 1.append=manipulation $ 1.appendChild=manipulation $ 1.replaceElement=manipulation $ 1.removeElement=void 0;function e( $ ){if( $ .prev&&( $ .prev.next= $ .next), $ .next&&( $ .next.prev= $ .prev), $ .parent){var j= $ .parent.children;j.splice(j.lastIndexOf( $ ),1)}}manipulation $ 1.removeElement=e;function t( $ ,j){var V=j.prev= $ .prev;V&&(V.next=j);var z=j.next= $ .next;z&&(z.prev=j);var re=j.parent= $ .parent;if(re){var ie=re.children;ie[ie.lastIndexOf( $ )]=j}}manipulation $ 1.replaceElement=t;function y( $ ,j){if(e(j),j.next=null,j.parent= $ , $ .children.push(j)>1){var V= $ .children[ $ .children.length-2];V.next=j,j.prev=V}else j.prev=null}manipulation $ 1.appendChild=y;function n( $ ,j){e(j);var V= $ .parent,z= $ .next;if(j.next=z,j.prev= $ , $ .next=j,j.parent=V,z){if(z.prev=j,V){var re=V.children;re.splice(re.lastIndexOf(z),0,j)}}else V&&V.children.push(j)}manipulation $ 1.append=n;function k( $ ,j){if(e(j),j.parent= $ ,j.prev=null, $ .children.unshift(j)!==1){var V= $ .children[1];V.prev=j,j.next=V}else j.next=null}manipulation $ 1.prependChild=k;function L( $ ,j){e(j);var V= $ .parent;if(V){var z=V.children;z.splice(z.indexOf( $ ),0,j)} $ .prev&&( $ .prev.next=j),j.parent=V,j.prev= $ .prev,j.next= $ , $ .prev=j}return manipulation $ 1.prepend=L,manipulation $ 1}var querying={},hasRequiredQuerying;function requireQuerying(){if(hasRequiredQuerying)return querying;hasRequiredQuerying=1,Object.defineProperty(querying,"__esModule",{value:!0}),querying.findAll=querying.existsOne=querying.findOne=querying.findOneChild=querying.find=querying.filter=void 0;var e=requireLib $ a();function t(j,V,z,re){return z===void 0&&(z=!0),re===void 0&&(re=1/0),Array.isArray(V)||(V=[V]),y(j,V,z,re)}querying.filter=t;function y(j,V,z,re){for(var ie=[],oe=0,ue=V;oe<ue.length;oe++){var de=ue[oe];if(j(de)&&(ie.push(de),--re<=0))break;if(z&&(0,e.hasChildren)(de)&&de.children.length>0){var pe=y(j,de.children,z,re);if(ie.push.apply(ie,pe),re-=pe.length,re<=0)break}}return ie}querying.find=y;function n(j,V){return V.find(j)}querying.findOneChild=n;function k(j,V,z){z===void 0&
2024-08-21 13:12:53 +08:00
: is ( button , input , select , textarea , optgroup , option ) [ disabled ] ,
optgroup [ disabled ] > option ,
fieldset [ disabled ] : not ( fieldset [ disabled ] legend : first - of - type * )
2024-08-24 19:24:09 +08:00
) ` ,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"}),aliases}var subselects={},hasRequiredSubselects;function requireSubselects(){return hasRequiredSubselects||(hasRequiredSubselects=1,function(e){var t=commonjsGlobal&&commonjsGlobal.__spreadArray||function(j,V,z){if(z||arguments.length===2)for(var re=0,ie=V.length,oe;re<ie;re++)(oe||!(re in V))&&(oe||(oe=Array.prototype.slice.call(V,0,re)),oe[re]=V[re]);return j.concat(oe||Array.prototype.slice.call(V))};Object.defineProperty(e,"__esModule",{value:!0}),e.subselects=e.getNextSiblings=e.ensureIsTag=e.PLACEHOLDER_ELEMENT=void 0;var y=requireBoolbase(),n=requireProcedure();e.PLACEHOLDER_ELEMENT={};function k(j,V){return j===y.falseFunc?y.falseFunc:function(z){return V.isTag(z)&&j(z)}}e.ensureIsTag=k;function L(j,V){var z=V.getSiblings(j);if(z.length<=1)return[];var re=z.indexOf(j);return re<0||re===z.length-1?[]:z.slice(re+1).filter(V.isTag)}e.getNextSiblings=L;var $ =function(j,V,z,re,ie){var oe={xmlMode:!!z.xmlMode,adapter:z.adapter,equals:z.equals},ue=ie(V,oe,re);return function(de){return ue(de)&&j(de)}};e.subselects={is: $ ,matches: $ ,where: $ ,not:function(j,V,z,re,ie){var oe={xmlMode:!!z.xmlMode,adapter:z.adapter,equals:z.equals},ue=ie(V,oe,re);return ue===y.falseFunc?j:ue===y.trueFunc?y.falseFunc:function(pe){return!ue(pe)&&j(pe)}},has:function(j,V,z,re,ie){var oe=z.adapter,ue={xmlMode:!!z.xmlMode,adapter:oe,equals:z.equals},de=V.some(function(he){return he.some(n.isTraversal)})?[e.PLACEHOLDER_ELEMENT]:void 0,pe=ie(V,ue,de);if(pe===y.falseFunc)return y.falseFunc;if(pe===y.trueFunc)return function(he){return oe.getChildren(he).some(oe.isTag)&&j(he)};var Ie=k(pe,oe),_e=pe.shouldTestNextSiblings,Ce=_e===void 0?!1:_e;return de?function(he){de[0]=he;var Ne=oe.getChildren(he),Fe=Ce?t(t([],Ne,!0),L(he,oe),!0):Ne;return j(he)&&oe.existsOne(Ie,Fe)}:function(he){return j(he)&&oe.existsOne(Ie,oe.getChildren(he))}}}}(subselects)),subselects}var hasRequiredPseudoSelectors;function requirePseudoSelectors(){return hasRequiredPseudoSelectors||(hasRequiredPseudoSelectors=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.compilePseudoSelector=e.aliases=e.pseudos=e.filters=void 0;var t=requireBoolbase(),y=require $ $ 0 $ 5,n=requireFilters();Object.defineProperty(e,"filters",{enumerable:!0,get:function(){return n.filters}});var k=requirePseudos();Object.defineProperty(e,"pseudos",{enumerable:!0,get:function(){return k.pseudos}});var L=requireAliases();Object.defineProperty(e,"aliases",{enumerable:!0,get:function(){return L.aliases}});var $ =requireSubselects();function j(V,z,re,ie,oe){var ue=z.name,de=z.data;if(Array.isArray(de))return $ .subselects[ue](V,de,re,ie,oe);if(ue in L.aliases){if(de!=null)throw new Error("Pseudo ".concat(ue," doesn't have any arguments"));var pe=(0,y.parse)(L.aliases[ue]);return $ .subselects.is(V,pe,re,ie,oe)}if(ue in n.filters)return n.filters[ue](V,de,re,ie);if(ue in k.pseudos){var Ie=k.pseudos[ue];return(0,k.verifyPseudoArgs)(Ie,ue,de),Ie===t.falseFunc?t.falseFunc:V===t.trueFunc?function(_e){return Ie(_e,re,de)}:function(_e){return Ie(_e,re,de)&&V(_e)}}throw new Error("unmatched pseudo-class :".concat(ue))}e.compilePseudoSelector=j}(pseudoSelectors)),pseudoSelectors}var hasRequiredGeneral;function requireGeneral(){if(hasRequiredGeneral)return general;hasRequiredGeneral=1,Object.defineProperty(general,"__esModule",{value:!0}),general.compileGeneralSelector=void 0;var e=requireAttributes $ 1(),t=requirePseudoSelectors(),y=require $ $ 0 $ 5;fun
2024-08-21 13:12:53 +08:00
` ,nexist="∄",nexists="∄",Nfr="𝔑 ",nfr="𝔫 ",ngE="≧̸",nge="≱",ngeq="≱",ngeqq="≧̸",ngeqslant="⩾̸",nges="⩾̸",nGg="⋙̸",ngsim="≵",nGt="≫⃒",ngt="≯",ngtr="≯",nGtv="≫̸",nharr="↮",nhArr="⇎",nhpar="⫲",ni="∋",nis="⋼",nisd="⋺",niv="∋",NJcy="Њ",njcy="њ",nlarr="↚",nlArr="⇍",nldr="‥",nlE="≦̸",nle="≰",nleftarrow="↚",nLeftarrow="⇍",nleftrightarrow="↮",nLeftrightarrow="⇎",nleq="≰",nleqq="≦̸",nleqslant="⩽̸",nles="⩽̸",nless="≮",nLl="⋘̸",nlsim="≴",nLt="≪⃒",nlt="≮",nltri="⋪",nltrie="⋬",nLtv="≪̸",nmid="∤",NoBreak=" ",NonBreakingSpace=" ",nopf="𝕟 ",Nopf="ℕ ",Not="⫬",not $ 1="¬",NotCongruent="≢",NotCupCap="≭",NotDoubleVerticalBar="∦",NotElement="∉",NotEqual="≠",NotEqualTilde="≂̸",NotExists="∄",NotGreater="≯",NotGreaterEqual="≱",NotGreaterFullEqual="≧̸",NotGreaterGreater="≫̸",NotGreaterLess="≹",NotGreaterSlantEqual="⩾̸",NotGreaterTilde="≵",NotHumpDownHump="≎̸",NotHumpEqual="≏̸",notin="∉",notindot="⋵̸",notinE="⋹̸",notinva="∉",notinvb="⋷",notinvc="⋶",NotLeftTriangleBar="⧏̸",NotLeftTriangle="⋪",NotLeftTriangleEqual="⋬",NotLess="≮",NotLessEqual="≰",NotLessGreater="≸",NotLessLess="≪̸",NotLessSlantEqual="⩽̸",NotLessTilde="≴",NotNestedGreaterGreater="⪢̸",NotNestedLessLess="⪡̸",notni="∌",notniva="∌",notnivb="⋾",notnivc="⋽",NotPrecedes="⊀",NotPrecedesEqual="⪯̸",NotPrecedesSlantEqual="⋠",NotReverseElement="∌",NotRightTriangleBar="⧐̸",NotRightTriangle="⋫",NotRightTriangleEqual="⋭",NotSquareSubset="⊏̸",NotSquareSubsetEqual="⋢",NotSquareSuperset="⊐̸",NotSquareSupersetEqual="⋣",NotSubset="⊂⃒",NotSubsetEqual="⊈",NotSucceeds="⊁",NotSucceedsEqual="⪰̸",NotSucceedsSlantEqual="⋡",NotSucceedsTilde="≿̸",NotSuperset="⊃⃒",NotSupersetEqual="⊉",NotTilde="≁",NotTildeEqual="≄",NotTildeFullEqual="≇",NotTildeTilde="≉",NotVerticalBar="∤",nparallel="∦",npar="∦",nparsl="⫽⃥",npart="∂̸",npolint="⨔",npr="⊀",nprcue="⋠",nprec="⊀",npreceq="⪯̸",npre="⪯̸",nrarrc="⤳̸",nrarr="↛",nrArr="⇏",nrarrw="↝̸",nrightarrow="↛",nRightarrow="⇏",nrtri="⋫",nrtrie="⋭",nsc="⊁",nsccue="⋡",nsce="⪰̸",Nscr="𝒩 ",nscr="𝓃 ",nshortmid="∤",nshortparallel="∦",nsim="≁",nsime="≄",nsimeq="≄",nsmid="∤",nspar="∦",nsqsube="⋢",nsqsupe="⋣",nsub="⊄",nsubE="⫅̸",nsube="⊈",nsubset="⊂⃒",nsubseteq="⊈",nsubseteqq="⫅̸",nsucc="⊁",nsucceq="⪰̸",nsup="⊅",nsupE="⫆̸",nsupe="⊉",nsupset="⊃⃒",nsupseteq="⊉",nsupseteqq="⫆̸",ntgl="≹",Ntilde $ 1="Ñ",ntilde $ 1="ñ",ntlg="≸",ntriangleleft="⋪",ntrianglelefteq="⋬",ntriangleright="⋫",ntrianglerighteq="⋭",Nu="Ν ",nu $ 1="ν ",num="#",numero="№",numsp=" ",nvap="≍⃒",nvdash="⊬",nvDash="⊭",nVdash="⊮",nVDash="⊯",nvge="≥⃒",nvgt=">⃒",nvHarr="⤄",nvinfin="⧞",nvlArr="⤂",nvle="≤⃒",nvlt="<⃒",nvltrie="⊴⃒",nvrArr="⤃",nvrtrie="⊵⃒",nvsim="∼⃒",nwarhk="⤣",nwarr="↖",nwArr="⇖",nwarrow="↖",nwnear="⤧",Oacute $ 1="Ó",oacute $ 1="ó",oast="⊛",Ocirc $ 1="Ô",ocirc $ 1="ô",ocir="⊚",Ocy="О ",ocy="о ",odash="⊝",Odblac="Ő",odblac="ő",odiv="⨸",odot="⊙",odsold="⦼",OElig="Œ",oelig="œ",ofcir="⦿",Ofr="𝔒 ",ofr="𝔬 ",ogon="˛ ",Ograve $ 1="Ò",ograve $ 1="ò",ogt="⧁",ohbar="⦵",ohm="Ω",oint="∮",olarr="↺",olcir="⦾",olcross="⦻",oline="‾",olt="⧀",Omacr="Ō",omacr="ō",Omega="Ω",omega="ω",Omicron="Ο ",omicron="ο ",omid="⦶",ominus="⊖",Oopf="𝕆 ",oopf="𝕠 ",opar="⦷",OpenCurlyDoubleQuote="“",OpenCurlyQuote="‘ ",operp="⦹",oplus="⊕",orarr="↻",Or="⩔",or="∨ ",ord="⩝",order="ℴ ",orderof="ℴ ",ordf $ 1="ª",ordm $ 1="º",origof="⊶",oror="⩖",orslope="⩗",orv="⩛",oS="Ⓢ",Oscr="𝒪 ",oscr="ℴ ",Oslash $ 1="Ø",oslash $ 1="ø",osol="⊘",Otilde $ 1="Õ",otilde $ 1="õ",otimesas="⨶",Otimes="⨷",otimes="⊗",Ouml $ 1="Ö",ouml $ 1="ö",ovbar="⌽",OverBar="‾",OverBrace="⏞",OverBracket="⎴",OverParenthesis="⏜",para $ 1="¶",parallel $ 1="∥",par="∥",parsim="⫳",parsl="⫽",par
2024-08-24 19:24:09 +08:00
` ||yr===" "||yr===" \f "||yr===" \r "}function $ (yr){return yr>="a"&&yr<="z"||yr>="A"&&yr<="Z"}function j(yr,vr,Ir){var Mr=yr.toLowerCase();return yr===Mr?function(mr,gr){gr===Mr?mr._state=vr:(mr._state=Ir,mr._index--)}:function(mr,gr){gr===Mr||gr===yr?mr._state=vr:(mr._state=Ir,mr._index--)}}function V(yr,vr){var Ir=yr.toLowerCase();return function(Mr,mr){mr===Ir||mr===yr?Mr._state=vr:(Mr._state=3,Mr._index--)}}var z=j("C",24,16),re=j("D",25,16),ie=j("A",26,16),oe=j("T",27,16),ue=j("A",28,16),de=V("R",35),pe=V("I",36),Ie=V("P",37),_e=V("T",38),Ce=j("R",40,1),he=j("I",41,1),Ne=j("P",42,1),Fe=j("T",43,1),Ue=V("Y",45),kt=V("L",46),Et=V("E",47),Ve=j("Y",49,1),qe=j("L",50,1),jt=j("E",51,1),tr=V("I",54),rr=V("T",55),ar=V("L",56),nr=V("E",57),ur=j("I",58,1),cr=j("T",59,1),_r=j("L",60,1),hr=j("E",61,1),Er=j("#",63,64),kr=j("X",66,65),xr=function(){function yr(vr,Ir){var Mr;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=Ir,this.xmlMode=!!(vr!=null&&vr.xmlMode),this.decodeEntities=(Mr=vr==null?void 0:vr.decodeEntities)!==null&&Mr!==void 0?Mr:!0}return yr.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},yr.prototype.write=function(vr){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=vr,this.parse()},yr.prototype.end=function(vr){this.ended&&this.cbs.onerror(Error(".end() after done!")),vr&&this.write(vr),this.ended=!0,this.running&&this.finish()},yr.prototype.pause=function(){this.running=!1},yr.prototype.resume=function(){this.running=!0,this._index<this.buffer.length&&this.parse(),this.ended&&this.finish()},yr.prototype.getAbsoluteIndex=function(){return this.bufferOffset+this._index},yr.prototype.stateText=function(vr){vr==="<"?(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):this.decodeEntities&&vr==="&"&&(this.special===1||this.special===4)&&(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},yr.prototype.isTagStartChar=function(vr){return $ (vr)||this.xmlMode&&!L(vr)&&vr!=="/"&&vr!==">"},yr.prototype.stateBeforeTagName=function(vr){vr==="/"?this._state=5:vr==="<"?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):vr===">"||this.special!==1||L(vr)?this._state=1:vr==="!"?(this._state=15,this.sectionStart=this._index+1):vr==="?"?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar(vr)?(this._state=!this.xmlMode&&(vr==="s"||vr==="S")?32:!this.xmlMode&&(vr==="t"||vr==="T")?52:3,this.sectionStart=this._index):this._state=1},yr.prototype.stateInTagName=function(vr){(vr==="/"||vr===">"||L(vr))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},yr.prototype.stateBeforeClosingTagName=function(vr){L(vr)||(vr===">"?this._state=1:this.special!==1?this.special!==4&&(vr==="s"||vr==="S")?this._state=33:this.special===4&&(vr==="t"||vr==="T")?this._state=53:(this._state=1,this._index--):this.isTagStartChar(vr)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},yr.prototype.stateInClosingTagName=function(vr){(vr===">"||L(vr))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},yr.prototype.stateAfterClosingTagName=function(vr){vr===">"&&(this._state=1,this.sectionStart=this._index+1)},yr.prototype.stateBeforeAttributeName=function(vr){vr===">"?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):vr==="/"?this._state=4:L(vr)||(this._state=9,this.sectionStart=this._index)},yr.prototype.stateInSelfClosingTag=function(vr){vr===">"?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):L(vr)||(this._state=8,this._index--)},yr.prototype.stateInAttributeName=function(vr){(vr==="="||vr==="/"||vr===">"||L(vr))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},yr.prototype.
2024-08-21 13:12:53 +08:00
` || $ ===" \r "&&this.html[L+1]!== `
2024-08-24 19:24:09 +08:00
` )&&(n.isEol=!0),n.col=L-n.lineStartPos+1,n.offset=n.droppedBufferSize+L,k.advance.call(this)},retreat(){k.retreat.call(this),n.isEol=!1,n.col=this.pos-n.lineStartPos+1},dropParsedChunk(){const L=this.pos;k.dropParsedChunk.call(this);const $ =L-this.pos;n.lineStartPos-= $ ,n.droppedBufferSize+= $ ,n.offset=n.droppedBufferSize+this.pos}}}}return preprocessorMixin $ 1=t,preprocessorMixin $ 1}var tokenizerMixin $ 1,hasRequiredTokenizerMixin $ 1;function requireTokenizerMixin $ 1(){if(hasRequiredTokenizerMixin $ 1)return tokenizerMixin $ 1;hasRequiredTokenizerMixin $ 1=1;const e=requireMixin(),t=requireTokenizer(),y=requirePreprocessorMixin $ 1();class n extends e{constructor(L){super(L),this.tokenizer=L,this.posTracker=e.install(L.preprocessor,y),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const L=this.tokenizer.currentToken, $ =this.tokenizer.currentAttr;L.location.attrs||(L.location.attrs=Object.create(null)),L.location.attrs[ $ .name]=this.currentAttrLocation}_getOverriddenMethods(L, $ ){const j={_createStartTagToken(){ $ ._createStartTagToken.call(this),this.currentToken.location=L.ctLoc},_createEndTagToken(){ $ ._createEndTagToken.call(this),this.currentToken.location=L.ctLoc},_createCommentToken(){ $ ._createCommentToken.call(this),this.currentToken.location=L.ctLoc},_createDoctypeToken(V){ $ ._createDoctypeToken.call(this,V),this.currentToken.location=L.ctLoc},_createCharacterToken(V,z){ $ ._createCharacterToken.call(this,V,z),this.currentCharacterToken.location=L.ctLoc},_createEOFToken(){ $ ._createEOFToken.call(this),this.currentToken.location=L._getCurrentLocation()},_createAttr(V){ $ ._createAttr.call(this,V),L.currentAttrLocation=L._getCurrentLocation()},_leaveAttrName(V){ $ ._leaveAttrName.call(this,V),L._attachCurrentAttrLocationInfo()},_leaveAttrValue(V){ $ ._leaveAttrValue.call(this,V),L._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const V=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=V.startLine,this.currentCharacterToken.location.endCol=V.startCol,this.currentCharacterToken.location.endOffset=V.startOffset),this.currentToken.type===t.EOF_TOKEN?(V.endLine=V.startLine,V.endCol=V.startCol,V.endOffset=V.startOffset):(V.endLine=L.posTracker.line,V.endCol=L.posTracker.col+1,V.endOffset=L.posTracker.offset+1), $ ._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const V=this.currentCharacterToken&&this.currentCharacterToken.location;V&&V.endOffset===-1&&(V.endLine=L.posTracker.line,V.endCol=L.posTracker.col,V.endOffset=L.posTracker.offset), $ ._emitCurrentCharacterToken.call(this)}};return Object.keys(t.MODE).forEach(V=>{const z=t.MODE[V];j[z]=function(re){L.ctLoc=L._getCurrentLocation(), $ [z].call(this,re)}}),j}}return tokenizerMixin $ 1=n,tokenizerMixin $ 1}var openElementStackMixin,hasRequiredOpenElementStackMixin;function requireOpenElementStackMixin(){if(hasRequiredOpenElementStackMixin)return openElementStackMixin;hasRequiredOpenElementStackMixin=1;const e=requireMixin();class t extends e{constructor(n,k){super(n),this.onItemPop=k.onItemPop}_getOverriddenMethods(n,k){return{pop(){n.onItemPop(this.current),k.pop.call(this)},popAllUpToHtmlElement(){for(let L=this.stackTop;L>0;L--)n.onItemPop(this.items[L]);k.popAllUpToHtmlElement.call(this)},remove(L){n.onItemPop(this.current),k.remove.call(this,L)}}}}return openElementStackMixin=t,openElementStackMixin}var parserMixin $ 1,hasRequiredParserMixin $ 1;function requireParserMixin $ 1(){if(hasRequiredParserMixin $ 1)return parserMixin $ 1;hasRequiredParserMixin $ 1=1;const e=requireMixin(),t=requireTokenizer(),y=requireTokenizerMixin $ 1(),n=requireOpenElementStackMixin(),L=requireHtml().TAG_NAMES;class $ extends e{constructor(V){super(V),this.parser=V,this.treeAdapter=this.parser.treeAdapter,this.posTracker=
` )){if(vi.chars.length===1)continue;vi.chars=vi.chars.substr(1)}if(this._processInputToken(vi),Wn&&this.pendingScript)break}}runParsingLoopForCurrentChunk(Wn,vi){if(this._runParsingLoop(vi),vi&&this.pendingScript){const Du=this.pendingScript;this.pendingScript=null,vi(Du);return}Wn&&Wn()}_setupTokenizerCDATAMode(){const Wn=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=Wn&&Wn!==this.document&&this.treeAdapter.getNamespaceURI(Wn)!==de.HTML&&!this._isIntegrationPoint(Wn)}_switchToTextParsing(Wn,vi){this._insertElement(Wn,de.HTML),this.tokenizer.state=vi,this.originalInsertionMode=this.insertionMode,this.insertionMode=jt}switchToPlaintextParsing(){this.insertionMode=jt,this.originalInsertionMode=qe,this.tokenizer.state=e.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let Wn=this.fragmentContext;do{if(this.treeAdapter.getTagName(Wn)===ue.FORM){this.formElement=Wn;break}Wn=this.treeAdapter.getParentNode(Wn)}while(Wn)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===de.HTML){const Wn=this.treeAdapter.getTagName(this.fragmentContext);Wn===ue.TITLE||Wn===ue.TEXTAREA?this.tokenizer.state=e.MODE.RCDATA:Wn===ue.STYLE||Wn===ue.XMP||Wn===ue.IFRAME||Wn===ue.NOEMBED||Wn===ue.NOFRAMES||Wn===ue.NOSCRIPT?this.tokenizer.state=e.MODE.RAWTEXT:Wn===ue.SCRIPT?this.tokenizer.state=e.MODE.SCRIPT_DATA:Wn===ue.PLAINTEXT&&(this.tokenizer.state=e.MODE.PLAINTEXT)}}_setDocumentType(Wn){const vi=Wn.name||"",Du=Wn.publicId||"",qc=Wn.systemId||"";this.treeAdapter.setDocumentType(this.document,vi,Du,qc)}_attachElementToTree(Wn){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(Wn);else{const vi=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(vi,Wn)}}_appendElement(Wn,vi){const Du=this.treeAdapter.createElement(Wn.tagName,vi,Wn.attrs);this._attachElementToTree(Du)}_insertElement(Wn,vi){const Du=this.treeAdapter.createElement(Wn.tagName,vi,Wn.attrs);this._attachElementToTree(Du),this.openElements.push(Du)}_insertFakeElement(Wn){const vi=this.treeAdapter.createElement(Wn,de.HTML,[]);this._attachElementToTree(vi),this.openElements.push(vi)}_insertTemplate(Wn){const vi=this.treeAdapter.createElement(Wn.tagName,de.HTML,Wn.attrs),Du=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(vi,Du),this._attachElementToTree(vi),this.openElements.push(vi)}_insertFakeRootElement(){const Wn=this.treeAdapter.createElement(ue.HTML,de.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,Wn),this.openElements.push(Wn)}_appendCommentNode(Wn,vi){const Du=this.treeAdapter.createCommentNode(Wn.data);this.treeAdapter.appendChild(vi,Du)}_insertCharacters(Wn){if(this._shouldFosterParentOnInsertion())this._fosterParentText(Wn.chars);else{const vi=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(vi,Wn.chars)}}_adoptNodes(Wn,vi){for(let Du=this.treeAdapter.getFirstChild(Wn);Du;Du=this.treeAdapter.getFirstChild(Wn))this.treeAdapter.detachNode(Du),this.treeAdapter.appendChild(vi,Du)}_shouldProcessTokenInForeignContent(Wn){const vi=this._getAdjustedCurrentElement();if(!vi||vi===this.document)return!1;const Du=this.treeAdapter.getNamespaceURI(vi);if(Du===de.HTML||this.treeAdapter.getTagName(vi)===ue.ANNOTATION_XML&&Du===de.MATHML&&Wn.type===e.START_TAG_TOKEN&&Wn.tagName===ue.SVG)return!1;const qc=Wn.type===e.CHARACTER_TOKEN||Wn.type===e.NULL_CHARACTER_TOKEN||Wn.type===e.WHITESPACE_CHARACTER_TOKEN;return(Wn.type===e.START_TAG_TOKEN&&Wn.tagName!==ue.MGLYPH&&Wn.tagName!==ue.MALIGNMARK||qc)&&this._isIntegrationPoint(vi,de.MATHML)||(Wn.type===e.START_TAG_TOKEN||qc)&&this._isIntegrationPoint(vi,de.HTML)?!1:Wn.type!==e.EOF_TOKEN}_processToken(Wn){jr[this.insertionMode][Wn.type](this,Wn)}_processTokenInBodyMode(Wn){jr[qe][Wn.type](this,Wn)}_processTokenInForeignContent(Wn){Wn.type===e.CHARACTER_TOKEN?mm(this,Wn):Wn.type===e.NULL_CHARACTER_TOKEN?tp(this,Wn):Wn.type===e.W
2024-08-21 13:12:53 +08:00
* The buffer module from node . js , for the browser .
*
* @ author Feross Aboukhadijeh < https : //feross.org>
* @ license MIT
2024-08-24 19:24:09 +08:00
* / ( f u n c t i o n ( e ) { c o n s t t = b a s e 6 4 J s $ 1 , y = i e e e 7 5 4 $ 1 , n = t y p e o f S y m b o l = = " f u n c t i o n " & & t y p e o f S y m b o l . f o r = = " f u n c t i o n " ? S y m b o l . f o r ( " n o d e j s . u t i l . i n s p e c t . c u s t o m " ) : n u l l ; e . B u f f e r = r e , e . S l o w B u f f e r = F e , e . I N S P E C T _ M A X _ B Y T E S = 5 0 ; c o n s t k = 2 1 4 7 4 8 3 6 4 7 ; e . k M a x L e n g t h = k ; c o n s t { U i n t 8 A r r a y : L , A r r a y B u f f e r : $ , S h a r e d A r r a y B u f f e r : j } = g l o b a l T h i s ; r e . T Y P E D _ A R R A Y _ S U P P O R T = V ( ) , ! r e . T Y P E D _ A R R A Y _ S U P P O R T & & t y p e o f c o n s o l e < " u " & & t y p e o f c o n s o l e . e r r o r = = " f u n c t i o n " & & c o n s o l e . e r r o r ( " T h i s b r o w s e r l a c k s t y p e d a r r a y ( U i n t 8 A r r a y ) s u p p o r t w h i c h i s r e q u i r e d b y ` b u f f e r ` v 5 . x . U s e ` b u f f e r ` v 4 . x i f y o u r e q u i r e o l d b r o w s e r s u p p o r t . " ) ; f u n c t i o n V ( ) { t r y { c o n s t K n = n e w L ( 1 ) , G r = { f o o : f u n c t i o n ( ) { r e t u r n 4 2 } } ; r e t u r n O b j e c t . s e t P r o t o t y p e O f ( G r , L . p r o t o t y p e ) , O b j e c t . s e t P r o t o t y p e O f ( K n , G r ) , K n . f o o ( ) = = = 4 2 } c a t c h { r e t u r n ! 1 } } O b j e c t . d e f i n e P r o p e r t y ( r e . p r o t o t y p e , " p a r e n t " , { e n u m e r a b l e : ! 0 , g e t : f u n c t i o n ( ) { i f ( r e . i s B u f f e r ( t h i s ) ) r e t u r n t h i s . b u f f e r } } ) , O b j e c t . d e f i n e P r o p e r t y ( r e . p r o t o t y p e , " o f f s e t " , { e n u m e r a b l e : ! 0 , g e t : f u n c t i o n ( ) { i f ( r e . i s B u f f e r ( t h i s ) ) r e t u r n t h i s . b y t e O f f s e t } } ) ; f u n c t i o n z ( K n ) { i f ( K n > k ) t h r o w n e w R a n g e E r r o r ( ' T h e v a l u e " ' + K n + ' " i s i n v a l i d f o r o p t i o n " s i z e " ' ) ; c o n s t G r = n e w L ( K n ) ; r e t u r n O b j e c t . s e t P r o t o t y p e O f ( G r , r e . p r o t o t y p e ) , G r } f u n c t i o n r e ( K n , G r , A r ) { i f ( t y p e o f K n = = " n u m b e r " ) { i f ( t y p e o f G r = = " s t r i n g " ) t h r o w n e w T y p e E r r o r ( ' T h e " s t r i n g " a r g u m e n t m u s t b e o f t y p e s t r i n g . R e c e i v e d t y p e n u m b e r ' ) ; r e t u r n d e ( K n ) } r e t u r n i e ( K n , G r , A r ) } r e . p o o l S i z e = 8 1 9 2 ; f u n c t i o n i e ( K n , G r , A r ) { i f ( t y p e o f K n = = " s t r i n g " ) r e t u r n p e ( K n , G r ) ; i f ( $ . i s V i e w ( K n ) ) r e t u r n _ e ( K n ) ; i f ( K n = = n u l l ) t h r o w n e w T y p e E r r o r ( " T h e f i r s t a r g u m e n t m u s t b e o n e o f t y p e s t r i n g , B u f f e r , A r r a y B u f f e r , A r r a y , o r A r r a y - l i k e O b j e c t . R e c e i v e d t y p e " + t y p e o f K n ) ; i f ( c a ( K n , $ ) | | K n & & c a ( K n . b u f f e r , $ ) | | t y p e o f j < " u " & & ( c a ( K n , j ) | | K n & & c a ( K n . b u f f e r , j ) ) ) r e t u r n C e ( K n , G r , A r ) ; i f ( t y p e o f K n = = " n u m b e r " ) t h r o w n e w T y p e E r r o r ( ' T h e " v a l u e " a r g u m e n t m u s t n o t b e o f t y p e n u m b e r . R e c e i v e d t y p e n u m b e r ' ) ; c o n s t O n = K n . v a l u e O f & & K n . v a l u e O f ( ) ; i f ( O n ! = n u l l & & O n ! = = K n ) r e t u r n r e . f r o m ( O n , G r , A r ) ; c o n s t I n = h e ( K n ) ; i f ( I n ) r e t u r n I n ; i f ( t y p e o f S y m b o l < " u " & & S y m b o l . t o P r i m i t i v e ! = n u l l & & t y p e o f K n [ S y m b o l . t o P r i m i t i v e ] = = " f u n c t i o n " ) r e t u r n r e . f r o m ( K n [ S y m b o l . t o P r i m i t i v e ] ( " s t r i n g " ) , G r , A r ) ; t h r o w n e w T y p e E r r o r ( " T h e f i r s t a r g u m e n t m u s t b e o n e o f t y p e s t r i n g , B u f f e r , A r r a y B u f f e r , A r r a y , o r A r r a y - l i k e O b j e c t . R e c e i v e d t y p e " + t y p e o f K n ) } r e . f r o m = f u n c t i o n ( K n , G r , A r ) { r e t u r n i e ( K n , G r , A r ) } , O b j e c t . s e t P r o t o t y p e O f ( r e . p r o t o t y p e , L . p r o t o t y p e ) , O b j e c t . s e t P r o t o t y p e O f ( r e , L ) ; f u n c t i o n o e ( K n ) { i f ( t y p e o f K n ! = " n u m b e r " ) t h r o w n e w T y p e E r r o r ( ' " s i z e " a r g u m e n t m u s t b e o f t y p e n u m b e r ' ) ; i f ( K n < 0 ) t h r o w n e w R a n g e E r r o r ( ' T h e v a l u e " ' + K n + ' " i s i n v a l i d f o r o p t i o n " s i z e " ' ) } f u n c t i o n u e ( K n , G r , A r ) { r e t u r n o e ( K n ) , K n < = 0 ? z ( K n ) : G r ! = = v o i d 0 ? t y p e o f A r = = " s t r i n g " ? z ( K n ) . f i l l ( G r , A r ) : z ( K n ) . f i l l ( G r ) : z ( K n ) } r e . a l l o c = f u n c t i o n ( K n , G r , A r ) { r e t u r n u e ( K n , G r , A r ) } ; f u n c t i o n d e ( K n ) { r e t u r n o e ( K n ) , z ( K n < 0 ? 0 : N e ( K n ) | 0 ) } r e . a l l o c U n s a f e = f u n c t i o n ( K n ) { r e t u r n d e ( K n ) } , r e . a l l o c U n s a f e S l o w = f u n c t i o n ( K n ) { r e t u r n d e ( K n ) } ; f u n c t i o n p e ( K n , G r ) { i f ( ( t y p e o f G r ! = " s t r i n g " | | G r = = = " " ) & & ( G r = " u t f 8 " ) , ! r e . i s E n c o d i n g ( G r ) ) t h r o w n e w T y p e E r r o r ( " U n k n o w n e n c o d i n g : " + G r ) ; c o n s t A r = U e ( K n , G r ) | 0 ; l e t O n = z ( A r ) ; c o n s t I n = O n . w r i t e ( K n , G r ) ; r e t u r n I n ! = = A r & & ( O n = O n . s l i c e ( 0 , I n ) ) , O n } f u n c t i o n I e ( K n ) { c o n s t G r = K n . l e n g t h < 0 ? 0 : N e ( K n . l e n g t h ) | 0 , A r = z ( G r ) ; f o r ( l e t O n = 0 ; O n < G r ; O n + = 1 ) A r [ O n ] = K n [ O n ] & 2 5 5 ; r e t u r n A r } f u n c t i o n _ e ( K n ) { i f ( c a ( K n , L ) ) { c o n s t G r = n e w L ( K n ) ; r e t u r n C e ( G r . b u f f e r , G r . b y t e O f f s e t , G r . b y t e L e n g t h ) } r e t u r n I e ( K n ) } f u n c t i o n C e ( K n , G r , A r ) { i f ( G r < 0 | | K n . b y t e L e n g t h < G r ) t h r o w n e w R a n g e E r r o r ( ' " o f f s e t " i s o u t s i d e o f b u f f e r b o u n d s ' ) ; i f ( K n . b y t e L e n g t h < G r + ( A r | | 0 ) ) t h r o w n e w R a n g e E r r o r ( ' " l e n g t h " i s o u t s i d e o f b u f f e r b o u n d s ' ) ; l e t O n ; r e t u r n G r = = = v o i d 0 & & A r = = = v o i d 0 ? O n = n e w L ( K n ) : A r = = = v o i d 0 ? O n = n e w L ( K n , G r ) : O n = n e w L ( K n , G r , A r ) , O b j e c t . s e t P r o t o t y p e O f ( O n , r e . p r o t o t y p e ) , O n } f u n c t i o n h e ( K n ) { i f ( r e . i s B u f f e r ( K n ) ) { c o n s t G r = N e ( K n . l e n g t h ) | 0 , A r = z ( G r ) ; r e t u r n A r . l e n g t h = = = 0 | | K n . c o p y ( A r , 0 , 0 , G r ) , A r } i f ( K n . l e n g t h ! = = v o i d 0 ) r e t u r n t y p e o f K n . l e n g t h ! = " n u m b e r " | | P o ( K n . l e n g t h ) ? z ( 0 ) : I e ( K n ) ; i f ( K n . t y p e = = = " B u f f e r " & & A r r a y . i s A r r a y ( K n . d a t a ) ) r e t u r n I e ( K n . d a t a ) } f u n c t i o n N e ( K n ) { i f ( K n > = k ) t h r o w n e w R a n g e E r r o r ( " A t t e m p t t o a l l o c a t e B u f f e r l a r g e r t h a n m a x i m u m s i z e : 0 x " + k . t o S t r i n g ( 1 6 ) + " b y t e s " ) ; r e t u r n K n | 0 } f u n c t i o n F e ( K n ) { r e t u r n + K n ! = K n & & ( K n = 0 ) , r e . a l l o c ( + K n ) } r e . i s B u f f e r = f u n c t i
2024-08-21 13:12:53 +08:00
` )}}):{name:ie,value:oe.replace(n, ` \ r
2024-08-25 08:49:45 +08:00
` )}}).toArray()}return forms.serializeArray=L,forms}var hasRequiredCheerio;function requireCheerio(){if(hasRequiredCheerio)return cheerio $ 1;hasRequiredCheerio=1,Object.defineProperty(cheerio $ 1,"__esModule",{value:!0}),cheerio $ 1.Cheerio=void 0;var e=require $ $ 0 $ 6,t=e.__importDefault(requireParse()),y=e.__importDefault(requireOptions()),n=requireUtils $ 1(),k=e.__importStar(requireAttributes()),L=e.__importStar(requireTraversing()), $ =e.__importStar(requireManipulation()),j=e.__importStar(requireCss()),V=e.__importStar(requireForms()),z=function(){function ie(oe,ue,de,pe){var Ie=this;if(pe===void 0&&(pe=y.default),this.length=0,this.options=pe,!oe)return this;if(de&&(typeof de=="string"&&(de=t.default(de,this.options,!1)),this._root=new this.constructor(de,null,null,this.options),this._root._root=this._root),n.isCheerio(oe))return oe;var _e=typeof oe=="string"&&n.isHtml(oe)?t.default(oe,this.options,!1).children:re(oe)?[oe]:Array.isArray(oe)?oe:null;if(_e)return _e.forEach(function(Ne,Fe){Ie[Fe]=Ne}),this.length=_e.length,this;var Ce=oe,he=ue?typeof ue=="string"?n.isHtml(ue)?this._make(t.default(ue,this.options,!1)):(Ce=ue+" "+Ce,this._root):n.isCheerio(ue)?ue:this._make(ue):this._root;return he?he.find(Ce):this}return ie.prototype._make=function(oe,ue){var de=new this.constructor(oe,ue,this._root,this.options);return de.prevObject=this,de},ie}();cheerio $ 1.Cheerio=z,z.prototype.cheerio="[cheerio object]",z.prototype.splice=Array.prototype.splice,z.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(z.prototype,k,L, $ ,j,V);function re(ie){return!!ie.name||ie.type==="root"||ie.type==="text"||ie.type==="comment"}return cheerio $ 1}var hasRequiredLoad;function requireLoad(){if(hasRequiredLoad)return load;hasRequiredLoad=1,Object.defineProperty(load,"__esModule",{value:!0}),load.load=void 0;var e=require $ $ 0 $ 6,t=e.__importStar(requireOptions()),y=e.__importStar(require_static()),n=requireCheerio(),k=e.__importDefault(requireParse());function L( $ ,j,V){if(V===void 0&&(V=!0), $ ==null)throw new Error("cheerio.load() expects a string");var z=e.__assign(e.__assign({},t.default),t.flatten(j)),re=k.default( $ ,z,V),ie=function(ue){e.__extends(de,ue);function de(){return ue!==null&&ue.apply(this,arguments)||this}return de}(n.Cheerio);function oe(ue,de,pe,Ie){return pe===void 0&&(pe=re),new ie(ue,de,pe,e.__assign(e.__assign({},z),t.flatten(Ie)))}return Object.assign(oe,y,{load:L,_root:re,_options:z,fn:ie.prototype,prototype:ie.prototype}),oe}return load.load=L,load}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.root=e.parseHTML=e.merge=e.contains=void 0;var t=require $ $ 0 $ 6;t.__exportStar(requireTypes(),e),t.__exportStar(requireLoad(),e);var y=requireLoad();e.default=y.load([]);var n=t.__importStar(require_static());e.contains=n.contains,e.merge=n.merge,e.parseHTML=n.parseHTML,e.root=n.root})(lib $ d);var utils $ 3={},lexer={exports:{}},debug={exports:{}};(function(e,t){var y={version:"v20.16.0",versions:{node:"20.16.0",acorn:"8.11.3",ada:"2.8.0",ares:"1.31.0",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.2.2",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.13+quic",simdutf:"5.2.8",tz:"2024a",undici:"6.19.2",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-209717d"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.16.0/node-v20.16.0.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.16.0/node-v20.16.0-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule
2024-08-24 19:24:09 +08:00
` )}})(debug);var debugExports=debug.exports;(function(e,t){debugExports("lex"),e.exports=y;function y(n){var k="",L, $ =0,j=-1,V=0,z=1,re="before-selector",ie=[re],oe={},ue=[],de=["media","keyframes",{name:"-webkit-keyframes",type:"keyframes",prefix:"-webkit-"},{name:"-moz-keyframes",type:"keyframes",prefix:"-moz-"},{name:"-ms-keyframes",type:"keyframes",prefix:"-ms-"},{name:"-o-keyframes",type:"keyframes",prefix:"-o-"},"font-face",{name:"import",state:"before-at-value"},{name:"charset",state:"before-at-value"},"supports","viewport",{name:"namespace",state:"before-at-value"},"document",{name:"-moz-document",type:"document",prefix:"-moz-"},"page"];function pe(){return Et(),n[j]}function Ie(cr){return cr?ie[ie.length-1-cr]:re}function _e(cr){var _r=j+1;return cr===n.slice(_r,_r+cr.length)}function Ce(cr){var _r=n.slice(j).indexOf(cr);return _r>0?_r:!1}function he(cr){return cr===Ne(1)}function Ne(cr){return n[j+(cr||1)]}function Fe(){var cr=ie.pop();return re=ie[ie.length-1],cr}function Ue(cr){return re=cr,ie.push(re),ie.length}function kt(cr){var _r=re;return ie[ie.length-1]=re=cr,_r}function Et(cr){if((cr||1)==1)n[j]== `
2024-08-21 13:12:53 +08:00
` ?(z++, $ =1): $ ++,j++;else{var _r=n.slice(j,j+cr).split( `
2024-08-24 19:24:09 +08:00
` );_r.length>1&&(z+=_r.length-1, $ =1), $ +=_r[_r.length-1].length,j=j+cr}}function Ve(){oe.end={line:z,col: $ },ue.push(oe),k="",oe={}}function qe(cr){oe={type:cr,start:{line:z,col: $ }}}for(;L=pe();)switch(L){case" ":switch(Ie()){case"selector":case"value":case"value-paren":case"at-group":case"at-value":case"comment":case"double-string":case"single-string":k+=L;break}break;case `
2024-08-21 13:12:53 +08:00
` :case" ":case" \r ":case" \f ":switch(Ie()){case"value":case"value-paren":case"at-group":case"comment":case"single-string":case"double-string":case"selector":k+=L;break;case"at-value":L=== `
2024-08-24 19:24:09 +08:00
` &&(oe.value=k.trim(),Ve(),Fe());break}break;case":":switch(Ie()){case"name":oe.name=k.trim(),k="",kt("before-value");break;case"before-selector":k+=L,qe("selector"),Ue("selector");break;case"before-value":kt("value"),k+=L;break;default:k+=L;break}break;case";":switch(Ie()){case"name":case"before-value":case"value":k.trim().length>0&&(oe.value=k.trim(),Ve()),kt("before-name");break;case"value-paren":k+=L;break;case"at-value":oe.value=k.trim(),Ve(),Fe();break;case"before-name":break;default:k+=L;break}break;case"{":switch(Ie()){case"selector":if(Ne(-1)===" \\ "){k+=L;break}oe.text=k.trim(),Ve(),kt("before-name"),V=V+1;break;case"at-group":switch(oe.name=k.trim(),oe.type){case"font-face":case"viewport":case"page":Ue("before-name");break;default:Ue("before-selector")}Ve(),V=V+1;break;case"name":case"at-rule":oe.name=k.trim(),Ve(),Ue("before-name"),V=V+1;break;case"comment":case"double-string":case"single-string":k+=L;break;case"before-value":kt("value"),k+=L;break}break;case"}":switch(Ie()){case"before-name":case"name":case"before-value":case"value":k&&(oe.value=k.trim()),oe.name&&oe.value&&Ve(),qe("end"),Ve(),Fe(),Ie()==="at-group"&&(qe("at-group-end"),Ve(),Fe()),V>0&&(V=V-1);break;case"at-group":case"before-selector":case"selector":if(Ne(-1)===" \\ "){k+=L;break}V>0&&Ie(1)==="at-group"&&(qe("at-group-end"),Ve()),V>1&&Fe(),V>0&&(V=V-1);break;case"double-string":case"single-string":case"comment":k+=L;break}break;case'"':case"'":switch(Ie()){case"double-string":L==='"'&&Ne(-1)!==" \\ "&&Fe();break;case"single-string":L==="'"&&Ne(-1)!==" \\ "&&Fe();break;case"before-at-value":kt("at-value"),Ue(L==='"'?"double-string":"single-string");break;case"before-value":kt("value"),Ue(L==='"'?"double-string":"single-string");break;case"comment":break;default:Ne(-1)!==" \\ "&&Ue(L==='"'?"double-string":"single-string")}k+=L;break;case"/":switch(Ie()){case"comment":case"double-string":case"single-string":k+=L;break;case"before-value":case"selector":case"name":case"value":if(he("*")){var jt=Ce("*/");jt&&Et(jt+1)}else Ie()=="before-value"&&kt("value"),k+=L;break;default:he("*")?(qe("comment"),Ue("comment"),Et()):k+=L;break}break;case"*":switch(Ie()){case"comment":he("/")?(oe.text=k,Et(),Ve(),Fe()):k+=L;break;case"before-selector":k+=L,qe("selector"),Ue("selector");break;case"before-value":kt("value"),k+=L;break;default:k+=L}break;case"@":switch(Ie()){case"comment":case"double-string":case"single-string":k+=L;break;case"before-value":kt("value"),k+=L;break;default:for(var tr=!1,rr,ar,nr=0,ur=de.length;!tr&&nr<ur;++nr)ar=de[nr],rr=ar.name||ar,_e(rr)&&(tr=!0,qe(rr),Ue(ar.state||"at-group"),Et(rr.length),ar.prefix&&(oe.prefix=ar.prefix),ar.type&&(oe.type=ar.type));tr||(k+=L);break}break;case"(":switch(Ie()){case"value":Ue("value-paren");break;case"before-value":kt("value");break}k+=L;break;case")":switch(Ie()){case"value-paren":Fe();break;case"before-value":kt("value");break}k+=L;break;default:switch(Ie()){case"before-selector":qe("selector"),Ue("selector");break;case"before-name":qe("property"),kt("name");break;case"before-value":kt("value");break;case"before-at-value":kt("at-value");break}k+=L;break}return ue}})(lexer);var lexerExports=lexer.exports,parser $ 2={exports:{}};(function(e,t){debugExports("parse");var y=lexerExports;e.exports=j;var n,k,L, $ ;function j(Fe,Ue){Ue||(Ue={}),n=!!Ue.comments,L=!!Ue.position,k=0, $ =Array.isArray(Fe)?Fe.slice():y(Fe);for(var kt,Et=[],Ve;Ve=z();)kt=_e(Ve),kt&&Et.push(kt);return{type:"stylesheet",stylesheet:{rules:Et}}}function V(Fe,Ue){Ue||(Ue={});for(var kt,Et=["type","name","value"],Ve={},qe=0;qe<Et.length;++qe)kt=Et[qe],Fe[kt]&&(Ve[kt]=Ue[kt]||Fe[kt]);for(Et=Object.keys(Ue),qe=0;qe<Et.length;++qe)kt=Et[qe],Ve[kt]||(Ve[kt]=Ue[kt]);return L&&(Ve.position={start:Fe.start,end:Fe.end}),Ve}function z(){var Fe= $ .shift();return Fe}function re(Fe){k=k+1;var Ue={};switch(Fe.type){case"font-face":case"viewport":Ue.declarations=he();break;case"page":Ue.prefix=Fe.prefix,Ue.declarations=he();break;default:Ue.prefix=Fe.prefix,Ue.rules=Ne()}return V(Fe,Ue)}function ie(Fe){return V(Fe)}function oe(Fe){return V(Fe)}function ue(Fe){ret
` ,j=" ");var Ue=de(Ne.stylesheet.rules,Ce).join( `
` ).trim();return Ue}function z(Ne){if(Ne){L+=Ne;return}return n?"":Array(L).join(k||"")}function re(Ne){return"@"+Ne.type+" "+Ne.value+";"+ $ }function ie(Ne){var Fe="",Ue=Ne.prefix||"";Ne.name&&(Fe=" "+Ne.name);var kt=Ne.type!=="page";return"@"+Ue+Ne.type+Fe+j+pe(Ne,kt)+ $ }function oe(Ne){return y?"/*"+(Ne.text||"")+"*/"+ $ :""}function ue(Ne){var Fe;return Ne.selectors?Fe=Ne.selectors.join(","+ $ ):(Fe="@"+Ne.type,Fe+=Ne.name?" "+Ne.name:""),z()+Fe+j+pe(Ne)+ $ }function de(Ne,Fe){return Ne.reduce(function(Ue,kt){var Et=kt.type==="comment"?oe(kt):Fe(kt);return Et&&Ue.push(Et),Ue},[])}function pe(Ne,Fe){var Ue=Ne.declarations,kt=_e;return Ne.rules&&(Ue=Ne.rules,kt=ue),Ue=Ie(Ue,kt),Ue&&(Ue= $ +Ue+(Fe?"": $ )),"{"+Ue+z()+"}"}function Ie(Ne,Fe){if(!Ne)return"";z(1);var Ue=de(Ne,Fe);return z(-1),Ue.length?Ue.join( $ ):""}function _e(Ne){if(Ne.type==="property")return he(Ne)}function Ce(Ne){switch(Ne.type){case"rule":return ue(Ne);case"media":case"keyframes":return ie(Ne);case"comment":return oe(Ne);case"import":case"charset":case"namespace":return re(Ne);case"font-face":case"supports":case"viewport":case"document":case"page":return ie(Ne)}}function he(Ne){var Fe=Ne.name?Ne.name+":"+j:"";return z()+Fe+Ne.value+";"}})(stringify $ 1);var stringifyExports=stringify $ 1.exports,mensch={lex:lexerExports,parse:parserExports,stringify:stringifyExports},selector={exports:{}},escapeRe=/([-.*+?^ ${ } ()|[ \] \/ \\ ])/g,unescapeRe=/ \\ /g,escape $ 1=function(e){return(e+"").replace(escapeRe," \\ $ 1")},unescape $ 1=function(e){return(e+"").replace(unescapeRe,"")},slickRe=RegExp( ` ^ ( ? : \ \ s * ( , ) \ \ s * | \ \ s * ( < combinator > + ) \ \ s * | ( \ \ s + ) | ( < unicode > + | \ \ * ) | \ \ # ( < unicode > + ) | \ \ . ( < unicode > + ) | \ \ [ \ \ s * ( < unicode1 > + ) ( ? : \ \ s * ( [ * ^ $ ! ~ | ] ? = ) ( ? : \ \ s * ( ? : ( [ "']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(<unicode>+)(?:\\((?:(?:([" '])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)`.replace(/<combinator>/,"["+escape$1(">+~`!@$%^&={}\\;</")+"]").replace(/<unicode>/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(/<unicode1>/g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])")),Part=function(t){this.combinator=t||" ",this.tag="*"};Part.prototype.toString=function(){if(!this.raw){var e="",t,y;if(e+=this.tag||"*",this.id&&(e+="#"+this.id),this.classes&&(e+="."+this.classList.join(".")),this.attributes)for(t=0;y=this.attributes[t++];)e+="["+y.name+(y.operator?y.operator+' "'+y.value+'" ' : "" ) + "]" ; if ( this . pseudos ) for ( t = 0 ; y = this . pseudos [ t ++ ] ; ) e += ":" + y . name , y . value && ( e += "(" + y . value + ")" ) ; this . raw = e } return this . raw } ; var Expression = function ( ) { this . length = 0 } ; Expression . prototype . toString = function ( ) { if ( ! this . raw ) { for ( var e = "" , t = 0 , y ; y = this [ t ++ ] ; ) t !== 1 && ( e += " " ) , y . combinator !== " " && ( e += y . combinator + " " ) , e += y ; this . raw = e } return this . raw } ; var replacer = function ( e , t , y , n , k , L , $ , j , V , z , re , ie , oe , ue , de , pe ) { var Ie , _e ; if ( ( t || ! this . length ) && ( Ie = this [ this . length ++ ] = new Expression , t ) ) return "" ; if ( Ie || ( Ie = this [ this . length - 1 ] ) , ( y || n || ! Ie . length ) && ( _e = Ie [ Ie . length ++ ] = new Part ( y ) ) , _e || ( _e = Ie [ Ie . length - 1 ] ) , k ) _e . tag = unescape$1 ( k ) ; else if ( L ) _e . id = unescape$1 ( L ) ; else if ( $ ) { var Ce = unescape$1 ( $ ) , he = _e . classes || ( _e . classes = { } ) ; if ( ! he [ Ce ] ) { he [ Ce ] = escape$1 ( $ ) ; var Ne = _e . classList || ( _e . classList = [ ] ) ; Ne . push ( Ce ) , Ne . sort ( ) } } else oe ? ( pe = pe || de , ( _e . pseudos || ( _e . pseudos = [ ] ) ) . push ( { type : ie . length == 1 ? "class" : "element" , name : unescape$1 ( oe ) , escapedName : escape$1 ( oe ) , value : pe ? unescape$1 ( pe ) : null , escapedValue : pe ? escape$1 ( pe ) : null } ) ) : j && ( re = re ? escape$1 ( re ) : null , ( _e . attributes || ( _e . attributes = [ ] ) ) . push ( { operator : V , name : unescape$1 ( j ) , escapedName : escape$1 ( j ) , value : re ? unescape$1 ( re ) : null , escapedValue : re ? escape$1 ( re ) : null } ) ) ; return "" } , Expressions = function ( t ) { this . length = 0 ; for ( var y = this , n = t , k ; t ; ) { if ( k = t . replace ( slickRe , function ( ) { return replacer . apply ( y , arguments ) } ) , k === t ) throw new Error ( n + " is an invalid expression" ) ; t = k } } ; Expressions . prototype . toString = function ( ) { if ( ! this . raw ) { for ( var e = [ ] , t = 0 , y ; y = this [ t ++ ] ; ) e . push ( y ) ; this . raw = e . join ( ", " ) } return this . raw } ; var cache$1 = { } , parse = function ( e ) { return e == null ? null : ( e = ( "" + e ) . replace ( /^\s+|\s+$/g , "" ) , cache$1 [ e ] || ( cache$1 [ e ] = new Expressions ( e ) ) ) } , parser$1 = parse ; ( function ( e , t ) { var y = parser$1 ; e . exports = n ; function n ( L , $ ) { this . text = L , this . spe
2024-08-21 13:12:53 +08:00
* Returns an array of the selectors .
*
* @ license Sizzle CSS Selector Engine - MIT
* @ param { String } selectorText from mensch
* @ api public
* / e . e x t r a c t = f u n c t i o n ( L ) { f o r ( v a r $ = 0 , j = [ ] , V = " " , z = 0 , r e = L . l e n g t h ; z < r e ; z + + ) { v a r i e = L . c h a r A t ( z ) ; $ ? ( ( i e = = = " ] " | | i e = = = " ) " ) & & $ - - , V + = i e ) : i e = = = " , " ? ( j . p u s h ( V ) , V = " " ) : ( ( i e = = = " [ " | | i e = = = " ( " ) & & $ + + , ( V . l e n g t h | | i e ! = = " , " & & i e ! = = `
` &&ie!==" ")&&(V+=ie))}return V.length&&j.push(V),j},e.parseCSS=function(k){for(var L=t.parse(k,{position:!0,comments:!0}), $ =typeof L.stylesheet<"u"&&L.stylesheet.rules?L.stylesheet.rules:[],j=[],V=0,z= $ .length;V<z;V++)if( $ [V].type=="rule")for(var re= $ [V],ie=re.selectors,oe=0,ue=ie.length;oe<ue;oe++)j.push([ie[oe],re.declarations]);return j},e.getPreservedText=function(k,L, $ ){for(var j=t.parse(k,{position:!0,comments:!0}),V=typeof j.stylesheet<"u"&&j.stylesheet.rules?j.stylesheet.rules:[],z=[],re=V.length-1;re>=0;re--)(L.fontFaces&&V[re].type==="font-face"||L.mediaQueries&&V[re].type==="media"||L.keyFrames&&V[re].type==="keyframes"||L.pseudos&&V[re].selectors&&this.matchesPseudo(V[re].selectors[0], $ ))&&z.unshift(t.stringify({stylesheet:{rules:[V[re]]}},{comments:!1,indentation:" "})),V[re].position.start;return z.length===0?!1: `
` +z.join( `
` )+ `
` },e.normalizeLineEndings=function(k){return k.replace(/ \r \n /g, `
` ).replace(/ \n /g, ` \ r
2024-08-24 19:24:09 +08:00
` )},e.matchesPseudo=function(k,L){return L.find(function( $ ){return k.indexOf( $ )>-1})},e.compareFunc=function(k,L){for(var $ =Math.min(k.length,L.length),j=0;j< $ ;j++)if(k[j]!==L[j])return k[j]>L[j]?1:-1;return k.length-L.length},e.compare=function(k,L){return e.compareFunc(k,L)==1?k:L},e.getDefaultOptions=function(k){var L=Object.assign({extraCss:"",insertPreservedExtraCss:!0,applyStyleTags:!0,removeStyleTags:!0,preserveMediaQueries:!0,preserveFontFaces:!0,preserveKeyFrames:!0,preservePseudos:!0,applyWidthAttributes:!0,applyHeightAttributes:!0,applyAttributesTableElements:!0,url:""},k);return L.webResources=L.webResources||{},L}}(utils $ 3)),utils $ 3}(function(e){var t=lib $ d;requireUtils();var y=function(k,L, $ ){return L=Object.assign({decodeEntities:!1,_useHtmlParser2:!0},L),k= $ (k),t.load(k,L)},n=function(){var k=[],L=function(j){var V=e.exports.codeBlocks;return Object.keys(V).forEach(function(z){var re=new RegExp(V[z].start+"([ \\ S \\ s]*?)"+V[z].end,"g");j=j.replace(re,function(ie,oe){return k.push(ie),"JUICE_CODE_BLOCK_"+(k.length-1)+"_"})}),j}, $ =function(j){for(var V=0;V<k.length;V++){var z=new RegExp("JUICE_CODE_BLOCK_"+V+'_(="")?',"gi");j=j.replace(z,function(){return k[V]})}return j};return{encodeEntities:L,decodeEntities: $ }};e.exports=function(k,L, $ ,j){var V=n(),z=y(k,L,V.encodeEntities),re=[z];re.push.apply(re,j);var ie= $ .apply(void 0,re)||z;return L&&L.xmlMode?V.decodeEntities(ie.xml()):V.decodeEntities(ie.html())},e.exports.codeBlocks={EJS:{start:"<%",end:"%>"},HBS:{start:"{{",end:"}}"}}})(cheerio $ 2);var cheerioExports=cheerio $ 2.exports,numbers $ 1={};numbers $ 1.romanize=function(e){if(isNaN(e))return NaN;for(var t=String(+e).split(""),y=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],n="",k=3;k--;)n=(y[+t.pop()+k*10]||"")+n;return Array(+t.join("")+1).join("M")+n};numbers $ 1.alphanumeric=function(e){for(var t="",y;e>0;)y=(e-1)%26,t=String.fromCharCode(65+y)+t,e=(e-y)/26|0;return t||void 0};var utils $ 2=requireUtils(),numbers=numbers $ 1,inline=function(t){t.ignoredPseudos=["hover","active","focus","visited","link"],t.widthElements=["TABLE","TD","TH","IMG"],t.heightElements=["TABLE","TD","TH","IMG"],t.tableElements=["TABLE","TH","TR","TD","CAPTION","COLGROUP","COL","THEAD","TBODY","TFOOT"],t.nonVisualElements=["HEAD","TITLE","BASE","LINK","STYLE","META","SCRIPT","NOSCRIPT"],t.styleToAttribute={"background-color":"bgcolor","background-image":"background","text-align":"align","vertical-align":"valign"},t.excludedProperties=[],t.juiceDocument=re,t.inlineDocument=y;function y(ue,de,pe){pe=pe||{};var Ie=utils $ 2.parseCSS(de),_e=[],Ce="style",he={};if(pe.styleAttributeName&&(Ce=pe.styleAttributeName),Ie.forEach(Ue),_e.forEach(kt),pe.inlinePseudoElements&&_e.forEach(Et),pe.applyWidthAttributes&&_e.forEach(function(tr){Ve(tr,"width")}),pe.applyHeightAttributes&&_e.forEach(function(tr){Ve(tr,"height")}),pe.applyAttributesTableElements&&_e.forEach(jt),pe.insertPreservedExtraCss&&pe.extraCss){var Ne=utils $ 2.getPreservedText(pe.extraCss,{mediaQueries:pe.preserveMediaQueries,fontFaces:pe.preserveFontFaces,keyFrames:pe.preserveKeyFrames});if(Ne){var Fe=null;pe.insertPreservedExtraCss!==!0?Fe=ue(pe.insertPreservedExtraCss):(Fe=ue("head"),Fe.length||(Fe=ue("body")),Fe.length||(Fe=ue.root())),Fe.first().append("<style>"+Ne+"</style>")}}function Ue(tr){var rr=tr[0],ar=tr[1],nr=new utils $ 2.Selector(rr),ur=nr.parsed();if(ur){for(var cr=j(ur),_r=0;_r<ur.length;++_r){var hr=ur[_r];if(hr.pseudos)for(var Er=0;Er<hr.pseudos.length;++Er){var kr=hr.pseudos[Er];if(t.ignoredPseudos.indexOf(kr.name)>=0)return}}if(cr){var xr=ur[ur.length-1],yr=xr.pseudos;xr.pseudos=z(xr.pseudos),rr=ur.toString(),xr.pseudos=yr}var vr;try{vr=ue(rr)}catch{return}vr.each(function(){var Ir=this;if(Ir.name&&t.nonVisualElements.indexOf(Ir.name.toUpperCase())>=0)return;if(cr){var Mr="pseudo"+cr,mr=Ir[Mr];mr||(mr=Ir[Mr]=ue("<span />").get(0),mr.pseudoElementType=cr,mr.pseudoElementParent=Ir,mr.counterProps=Ir.counterProps,Ir[Mr]=mr),Ir=mr}if(!Ir.styleProps){if(Ir.styleProps={},
` +de.extraCss,y(ue,pe,de),ue}function ie(ue,de){var pe=[],Ie=ue("style"),_e,Ce,he;return Ie.each(function(){he=this;var Ne=!!he.childNodes;if(_e=Ne?he.childNodes:he.children,_e.length!==1){de.removeStyleTags&&ue(he).remove();return}if(Ce=_e[0].data,de.applyStyleTags&&ue(he).attr("data-embed")===void 0&&pe.push(Ce),de.removeStyleTags&&ue(he).attr("data-embed")===void 0){var Fe=Ne?he.childNodes[0].nodeValue:he.children[0].data,Ue=utils $ 2.getPreservedText(Fe,{mediaQueries:de.preserveMediaQueries,fontFaces:de.preserveFontFaces,keyFrames:de.preserveKeyFrames,pseudos:de.preservePseudos},t.ignoredPseudos);Ue?Ne?he.childNodes[0].nodeValue=Ue:he.children[0].data=Ue:ue(he).remove()}ue(he).removeAttr("data-embed")}),pe}function oe(ue,de){var pe=ie(ue,de),Ie=pe.join( `
` );return Ie}return t},cheerio=cheerioExports,makeJuiceClient=inline,juiceClient=makeJuiceClient(function(e,t){return cheerio(e,{xmlMode:t&&t.xmlMode},juiceDocument,[t])}),juiceDocument=function(e,t){return juiceClient.juiceDocument(e,t)};juiceClient.inlineContent=function(e,t,y){return cheerio(e,{xmlMode:y&&y.xmlMode},juiceClient.inlineDocument,[t,y])};var client=juiceClient;const juice=getDefaultExportFromCjs(client);var standalone={exports:{}};(function(e,t){(function(y){e.exports=y()})(function(){var y=(Zn,hn)=>()=>(hn||Zn((hn={exports:{}}).exports,hn),hn.exports),n=y((Zn,hn)=>{var Ln=function(Vi){return Vi&&Vi.Math==Math&&Vi};hn.exports=Ln(typeof globalThis=="object"&&globalThis)||Ln(typeof window=="object"&&window)||Ln(typeof self=="object"&&self)||Ln(typeof commonjsGlobal=="object"&&commonjsGlobal)||function(){return this}()||Function("return this")()}),k=y((Zn,hn)=>{hn.exports=function(Ln){try{return!!Ln()}catch{return!0}}}),L=y((Zn,hn)=>{var Ln=k();hn.exports=!Ln(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}), $ =y((Zn,hn)=>{var Ln=k();hn.exports=!Ln(function(){var Vi=(function(){}).bind();return typeof Vi!="function"||Vi.hasOwnProperty("prototype")})}),j=y((Zn,hn)=>{var Ln= $ (),Vi=Function.prototype.call;hn.exports=Ln?Vi.bind(Vi):function(){return Vi.apply(Vi,arguments)}}),V=y(Zn=>{var hn={}.propertyIsEnumerable,Ln=Object.getOwnPropertyDescriptor,Vi=Ln&&!hn.call({1:2},1);Zn.f=Vi?function(Wi){var pa=Ln(this,Wi);return!!pa&&pa.enumerable}:hn}),z=y((Zn,hn)=>{hn.exports=function(Ln,Vi){return{enumerable:!(Ln&1),configurable:!(Ln&2),writable:!(Ln&4),value:Vi}}}),re=y((Zn,hn)=>{var Ln= $ (),Vi=Function.prototype,Wi=Vi.call,pa=Ln&&Vi.bind.bind(Wi,Wi);hn.exports=Ln?pa:function(Ki){return function(){return Wi.apply(Ki,arguments)}}}),ie=y((Zn,hn)=>{var Ln=re(),Vi=Ln({}.toString),Wi=Ln("".slice);hn.exports=function(pa){return Wi(Vi(pa),8,-1)}}),oe=y((Zn,hn)=>{var Ln=re(),Vi=k(),Wi=ie(),pa=Object,Ki=Ln("".split);hn.exports=Vi(function(){return!pa("z").propertyIsEnumerable(0)})?function(Yo){return Wi(Yo)=="String"?Ki(Yo,""):pa(Yo)}:pa}),ue=y((Zn,hn)=>{hn.exports=function(Ln){return Ln==null}}),de=y((Zn,hn)=>{var Ln=ue(),Vi=TypeError;hn.exports=function(Wi){if(Ln(Wi))throw Vi("Can't call method on "+Wi);return Wi}}),pe=y((Zn,hn)=>{var Ln=oe(),Vi=de();hn.exports=function(Wi){return Ln(Vi(Wi))}}),Ie=y((Zn,hn)=>{var Ln=typeof document=="object"&&document.all,Vi=typeof Ln>"u"&&Ln!==void 0;hn.exports={all:Ln,IS_HTMLDDA:Vi}}),_e=y((Zn,hn)=>{var Ln=Ie(),Vi=Ln.all;hn.exports=Ln.IS_HTMLDDA?function(Wi){return typeof Wi=="function"||Wi===Vi}:function(Wi){return typeof Wi=="function"}}),Ce=y((Zn,hn)=>{var Ln=_e(),Vi=Ie(),Wi=Vi.all;hn.exports=Vi.IS_HTMLDDA?function(pa){return typeof pa=="object"?pa!==null:Ln(pa)||pa===Wi}:function(pa){return typeof pa=="object"?pa!==null:Ln(pa)}}),he=y((Zn,hn)=>{var Ln=n(),Vi=_e(),Wi=function(pa){return Vi(pa)?pa:void 0};hn.exports=function(pa,Ki){return arguments.length<2?Wi(Ln[pa]):Ln[pa]&&Ln[pa][Ki]}}),Ne=y((Zn,hn)=>{var Ln=re();hn.exports=Ln({}.isPrototypeOf)}),Fe=y((Zn,hn)=>{var Ln=he();hn.exports=Ln("navigator","userAgent")||""}),Ue=y((Zn,hn)=>{var Ln=n(),Vi=Fe(),Wi=Ln.process,pa=Ln.Deno,Ki=Wi&&Wi.versions||pa&&pa.version,Yo=Ki&&Ki.v8,Eo,Fo;Yo&&(Eo=Yo.split("."),Fo=Eo[0]>0&&Eo[0]<4?1:+(Eo[0]+Eo[1])),!Fo&&Vi&&(Eo=Vi.match(/Edge \/ ( \d +)/),(!Eo||Eo[1]>=74)&&(Eo=Vi.match(/Chrome \/ ( \d +)/),Eo&&(Fo=+Eo[1]))),hn.exports=Fo}),kt=y((Zn,hn)=>{var Ln=Ue(),Vi=k();hn.exports=!!Object.getOwnPropertySymbols&&!Vi(function(){var Wi=Symbol();return!String(Wi)||!(Object(Wi)instanceof Symbol)||!Symbol.sham&&Ln&&Ln<41})}),Et=y((Zn,hn)=>{var Ln=kt();hn.exports=Ln&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),Ve=y((Zn,hn)=>{var Ln=he(),Vi=_e(),Wi=Ne(),pa=Et(),Ki=Object;hn.exports=pa?function(Yo){return typeof Yo=="symbol"}:function(Yo){var Eo=Ln("Symbol");return Vi(Eo)&&Wi(Eo.prototype,Ki(Yo))}}),qe=y((Zn,hn)=>{var Ln=String;hn.exports=function(Vi){try{return Ln(Vi)}catch{return"Object"}}}),jt=y((Zn,hn)=>{var Ln=_e(),Vi=qe(),Wi=TypeError;hn.exports=function(pa){if(Ln(pa))return pa;throw
2024-08-21 13:12:53 +08:00
` ?"crlf":"cr":"lf"}function Vn(xn){switch(xn){case"cr":return" \r ";case"crlf":return ` \ r
` ;default:return `
` }}function Fn(xn,Nn){let ui;switch(Nn){case `
` :ui=/ \n /g;break;case" \r ":ui=/ \r /g;break;case ` \ r
` :ui=/ \r \n /g;break;default:throw new Error( ` Unexpected "eol" $ { JSON . stringify ( Nn ) } . ` )}let Mi=xn.match(ui);return Mi?Mi.length:0}function En(xn){return xn.replace(/ \r \n ?/g, `
2024-08-24 19:24:09 +08:00
` )}di.exports={guessEndOfLine:vn,convertEndOfLineToChars:Vn,countEndOfLineChars:Fn,normalizeEndOfLine:En}}}),Ac=Io({"src/utils/get-last.js"(Rn,di){kn();var vn=Vn=>Vn[Vn.length-1];di.exports=vn}});function od(){let{onlyFirst:Rn=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},di=["[ \\ u001B \\ u009B][[ \\ ]()#;?]*(?:(?:(?:(?:;[-a-zA-Z \\ d \\ /#&.:=?%@~_]+)*|[a-zA-Z \\ d]+(?:;[-a-zA-Z \\ d \\ /#&.:=?%@~_]*)*)? \\ u0007)","(?:(?: \\ d{1,4}(?:; \\ d{0,4})*)?[ \\ dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(di,Rn?void 0:"g")}var ld=cu({"node_modules/strip-ansi/node_modules/ansi-regex/index.js"(){kn()}});function _p(Rn){if(typeof Rn!="string")throw new TypeError( ` Expected a \ ` string \` , got \` ${ typeof Rn } \` ` ) ; return Rn . replace ( od ( ) , "" ) } var cp = cu ( { "node_modules/strip-ansi/index.js" ( ) { kn ( ) , ld ( ) } } ) ; function Oc ( Rn ) { return Number . isInteger ( Rn ) ? Rn >= 4352 && ( Rn <= 4447 || Rn === 9001 || Rn === 9002 || 11904 <= Rn && Rn <= 12871 && Rn !== 12351 || 12880 <= Rn && Rn <= 19903 || 19968 <= Rn && Rn <= 42182 || 43360 <= Rn && Rn <= 43388 || 44032 <= Rn && Rn <= 55203 || 63744 <= Rn && Rn <= 64255 || 65040 <= Rn && Rn <= 65049 || 65072 <= Rn && Rn <= 65131 || 65281 <= Rn && Rn <= 65376 || 65504 <= Rn && Rn <= 65510 || 110592 <= Rn && Rn <= 110593 || 127488 <= Rn && Rn <= 127569 || 131072 <= Rn && Rn <= 262141 ) : ! 1 } var Hd = cu ( { "node_modules/is-fullwidth-code-point/index.js" ( ) { kn ( ) } } ) , nd = Io ( { "node_modules/emoji-regex/index.js" ( Rn , di ) { kn ( ) , di . exports = function ( ) { return / \ u D 8 3 C \ u D F F 4 \ u D B 4 0 \ u D C 6 7 \ u D B 4 0 \ u D C 6 2 ( ? : \ u D B 4 0 \ u D C 7 7 \ u D B 4 0 \ u D C 6 C \ u D B 4 0 \ u D C 7 3 | \ u D B 4 0 \ u D C 7 3 \ u D B 4 0 \ u D C 6 3 \ u D B 4 0 \ u D C 7 4 | \ u D B 4 0 \ u D C 6 5 \ u D B 4 0 \ u D C 6 E \ u D B 4 0 \ u D C 6 7 ) \ u D B 4 0 \ u D C 7 F | ( ? : \ u D 8 3 E \ u D D D 1 \ u D 8 3 C \ u D F F F \ u 2 0 0 D \ u 2 7 6 4 \ u F E 0 F \ u 2 0 0 D ( ? : \ u D 8 3 D \ u D C 8 B \ u 2 0 0 D ) ? \ u D 8 3 E \ u D D D 1 | \ u D 8 3 D \ u D C 6 9 \ u D 8 3 C \ u D F F F \ u 2 0 0 D \ u D 8 3 E \ u D D 1 D \ u 2 0 0 D ( ? : \ u D 8 3 D [ \ u D C 6 8 \ u D C 6 9 ] ) ) ( ? : \ u D 8 3 C [ \ u D F F B - \ u D F F E ] ) | ( ? : \ u D 8 3 E \ u D D D 1 \ u D 8 3 C \ u D F F E \ u 2 0 0 D \ u 2 7 6 4 \ u F E 0 F \ u 2 0 0 D ( ? : \ u D 8 3 D \ u D C 8 B \ u 2 0 0 D ) ? \ u D 8 3 E \ u D D D 1 | \ u D 8 3 D \ u D C 6 9 \ u D 8 3 C \ u D F F E \ u 2 0 0 D \ u D 8 3 E \ u D D 1 D \ u 2 0 0 D ( ? : \ u D 8 3 D [ \ u D C 6 8 \ u D C 6 9 ] ) ) ( ? : \ u D 8 3 C [ \ u D F F B - \ u D F F D \ u D F F F ] ) | ( ? : \ u D 8 3 E \ u D D D 1 \ u D 8 3 C \ u D F F D \ u 2 0 0 D \ u 2 7 6 4 \ u F E 0 F \ u 2 0 0 D ( ? : \ u D 8 3 D \ u D C 8 B \ u 2 0 0 D ) ? \ u D 8 3 E \ u D D D 1 | \ u D 8 3 D \ u D C 6 9 \ u D 8 3 C \ u D F F D \ u 2 0 0 D \ u D 8 3 E \ u D D 1 D \ u 2 0 0 D ( ? : \ u D 8 3 D [ \ u D C 6 8 \ u D C 6 9 ] ) ) ( ? : \ u D 8 3 C [ \ u D F F B \ u D F F C \ u D F F E \ u D F F F ] ) | ( ? : \ u D 8 3 E \ u D D D 1 \ u D 8 3 C \ u D F F C \ u 2 0 0 D \ u 2 7 6 4 \ u F E 0 F \ u 2 0 0 D ( ? : \ u D 8 3 D \ u D C 8 B \ u 2 0 0 D ) ? \ u D 8 3 E \ u D D D 1 | \ u D 8 3 D \ u D C 6 9 \ u D 8 3 C \ u D F F C \ u 2 0 0 D \ u D 8 3 E \ u D D 1 D \ u 2 0 0 D ( ? : \ u D 8 3 D [ \ u D C 6 8 \ u D C 6 9 ] ) ) ( ? : \ u D 8 3 C [ \ u D F F B \ u D F F D - \ u D F F F ] ) | ( ? : \ u D 8 3 E \ u D D D 1 \ u D 8 3 C \ u D F F B \ u 2 0 0 D \ u 2 7 6 4 \ u F E 0 F \ u 2 0 0 D ( ? : \ u D 8 3 D \ u D C 8 B \ u 2 0 0 D ) ? \ u D 8 3 E \ u D D D 1 | \ u D 8 3 D \ u D C 6 9 \ u D 8 3 C \ u D F F B \ u 2 0 0 D \ u D 8 3 E \ u D D 1 D \ u 2 0 0 D ( ? : \ u D 8 3 D [ \ u D C 6 8 \ u D C 6 9 ] ) ) ( ? : \ u D 8 3 C [ \ u D F F C - \ u D F F F ] ) | \ u D 8 3 D \ u D C 6 8 ( ? : \ u D 8 3 C \ u D F F B ( ? : \ u 2 0 0 D ( ? : \ u 2 7 6 4 \ u F E 0 F \ u 2 0 0 D ( ? : \ u D 8 3 D \ u D C 8 B \ u 2 0 0 D \ u D 8 3 D \ u D C 6 8 ( ? : \ u D 8 3 C [ \ u D F F B - \ u D F F F ] ) | \ u D 8 3 D \ u D C 6 8 ( ? : \ u D 8 3 C [ \ u D F F B - \ u D F F F ] ) ) | \ u D 8 3 E \ u D D 1 D \ u 2 0 0 D \ u D 8 3 D \ u D C 6 8 ( ? : \ u D 8 3 C [ \ u D F F C - \ u D F F F ] ) | [ \ u 2 6 9 5 \ u 2 6 9 6 \ u 2 7 0 8 ] \ u F E 0 F | \ u D 8 3 C [ \ u D F 3 E \ u D F 7 3 \ u D F 7 C \ u D F 9 3 \ u D F A 4 \ u D F A 8 \ u D F E B \ u D F E D ] | \ u D 8 3 D [ \ u D C B B \ u D C B C \ u D D 2 7 \ u D D 2 C \ u D E 8 0 \ u D E 9 2 ] | \ u D 8 3 E [ \ u D D A F - \ u D D B 3 \ u D D B C \ u D D B D ] ) ) ? | ( ? : \ u D 8 3 C [ \ u D F F C - \ u D F F F ] ) \ u 2 0 0 D \ u 2 7 6 4 \ u F E 0 F \ u 2 0 0 D ( ? : \ u D 8 3 D \ u D C 8 B \ u 2 0 0 D \ u D 8 3 D \ u D C 6 8 ( ? : \ u D 8 3 C [ \ u D F F B - \ u D F F F ] ) | \ u D 8 3 D \ u D C 6 8 ( ? : \ u D 8 3 C [ \ u D F F B - \ u D F F F ] ) ) | \ u 2 0 0 D ( ? : \ u 2 7 6 4 \ u F E 0 F \ u 2 0 0 D ( ? : \ u D 8 3 D \ u D C 8 B \ u 2 0 0 D ) ? \ u D 8 3 D \ u D C 6 8 | ( ? : \ u D 8 3 D [ \ u D C 6 8 \ u D C 6 9 ] ) \ u 2 0 0 D ( ? : \ u D 8 3 D \ u D C 6 6 \ u 2 0 0 D \ u D 8 3 D \ u D C 6 6 | \ u D 8 3 D \ u D C 6 7 \ u 2 0 0 D ( ? : \ u D 8 3 D [ \ u D C 6 6 \ u D C 6 7 ] ) ) | \ u D 8 3 D \ u D C 6 6 \ u 2 0 0 D \ u D 8 3 D \ u D C 6 6 | \ u D 8 3 D \ u D C 6 7 \ u 2 0 0 D ( ? : \ u D 8 3 D [ \ u D C 6 6 \ u D C 6 7 ] ) | \ u D 8 3 C [ \ u D F 3 E \ u D F 7 3 \ u D F 7 C \ u D F 9 3 \ u D F A 4 \ u D F A 8 \ u D F E B \ u D F E D ] | \ u D 8 3 D [ \ u D C B B \ u D C B C \ u D D 2 7 \ u D D 2 C \ u D E 8 0 \ u D E 9 2 ] | \ u D 8 3 E [ \ u D D A F - \ u D D B 3 \ u D D B C \ u D D B D ] ) | \ u D 8 3 C \ u D F F F \ u 2 0 0 D ( ? : \ u D 8 3 E \ u D D 1 D \ u 2 0 0 D \ u D 8 3 D \ u D C 6 8 ( ? : \ u D 8 3 C [ \ u D F F B - \ u D F F E ] ) | \ u D 8 3 C [ \ u D F 3 E \ u D F 7 3 \ u D F 7 C \ u D F 9 3 \ u D F A 4 \ u D F A 8 \ u D F E B \ u D F E D ] | \ u D 8 3 D [ \ u D C B B \ u D C B C \ u D D 2 7 \ u D D 2 C \ u D E 8 0 \ u D E 9 2 ] | \ u D 8 3 E [ \ u D D A F - \ u D D B 3 \ u D D B C \ u D D B D ] ) | \ u D 8 3 C \ u D F F E \ u 2 0 0 D ( ? : \ u D 8 3 E \ u D D 1 D \ u 2 0 0 D \ u D 8 3 D \ u D C 6 8 ( ? : \ u D 8 3 C [ \ u D F F B - \ u D F F D \ u D F F F ] ) | \ u D 8 3 C [ \ u D F 3 E \ u D F 7 3 \ u D F 7 C \ u D F 9 3 \ u D F A 4 \ u D F A 8 \ u D F E B \ u D F E D ] | \ u D 8 3 D [ \ u D C B B \ u D C B C \ u D D 2 7 \ u D D 2 C \ u D E 8 0 \ u D E 9 2 ] | \ u D 8 3 E [ \ u D D A F - \ u D D B 3 \ u D D B C \ u D D B D ] ) | \ u D 8 3 C \ u D F F D \ u 2 0 0 D ( ? : \ u D 8 3 E \ u D D 1 D \ u 2 0 0 D \ u D 8 3 D \ u D C 6 8 ( ? : \ u D 8 3 C [ \ u D F F B \ u D F F C \ u D F F E \ u D F F F ] ) | \ u D 8 3 C [ \ u D F 3 E \ u D F 7 3 \ u D F 7 C \ u D F 9 3 \ u D F A 4 \ u D F A 8 \ u D F E B \ u D F E D ] | \ u D 8 3 D [ \ u D C B B \ u D C B C \ u D D 2 7 \ u D D 2 C \ u D E 8 0 \ u D E 9 2 ] | \ u D 8 3 E [ \ u D D A F - \ u D D B 3 \ u D D B C \ u D D B D ] ) | \ u D 8 3 C \ u D F F C \ u 2 0 0 D ( ? : \ u D 8 3 E \ u D D 1 D \ u 2 0 0 D \ u D 8 3 D \ u D C 6 8 ( ? : \ u D 8 3 C [ \ u D F F B
2024-08-21 13:12:53 +08:00
` )?Ta(Gi):Gi)}function Ta(Un){let Gi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Vn;return Fn(Gi,Un.split( `
2024-08-24 19:24:09 +08:00
` )).parts}function Fi(Un){if(Un.type==="line")return!0}function aa(Un){return ea(Un,Fi,!1)}di.exports={isConcat:En,getDocParts:xn,willBreak:ta,traverseDoc:ui,findInDoc:ea,mapDoc:Mi,propagateBreaks:ji,removeLines:Ra,stripTrailingHardline:La,normalizeParts:Fa,normalizeDoc:Zo,cleanDoc:Xa,replaceTextEndOfLine:Ta,replaceEndOfLine:Ui,canBreak:aa}}}),lm=Io({"src/document/doc-printer.js"(Rn,di){kn();var{convertEndOfLineToChars:vn}=Uu(),Vn=Ac(),Fn=uf(),{fill:En,cursor:xn,indent:Nn}=ml(),{isConcat:ui,getDocParts:Mi}=Rp(),ea,zi=1,ta=2;function ki(){return{value:"",length:0,queue:[]}}function ji(Ea,Xa){return Ra(Ea,{type:"indent"},Xa)}function oa(Ea,Xa,Fa){return Xa===Number.NEGATIVE_INFINITY?Ea.root||ki():Xa<0?Ra(Ea,{type:"dedent"},Fa):Xa?Xa.type==="root"?Object.assign(Object.assign({},Ea),{},{root:Ea}):Ra(Ea,{type:typeof Xa=="string"?"stringAlign":"numberAlign",n:Xa},Fa):Ea}function Ra(Ea,Xa,Fa){let Zo=Xa.type==="dedent"?Ea.queue.slice(0,-1):[...Ea.queue,Xa],Ui="",Ta=0,Fi=0,aa=0;for(let to of Zo)switch(to.type){case"indent":ra(),Fa.useTabs?Un(1):Gi(Fa.tabWidth);break;case"stringAlign":ra(),Ui+=to.n,Ta+=to.n.length;break;case"numberAlign":Fi+=1,aa+=to.n;break;default:throw new Error( ` Unexpected type '${to.type}' ` )}return va(),Object.assign(Object.assign({},Ea),{},{value:Ui,length:Ta,queue:Zo});function Un(to){Ui+=" ".repeat(to),Ta+=Fa.tabWidth*to}function Gi(to){Ui+=" ".repeat(to),Ta+=to}function ra(){Fa.useTabs?da():va()}function da(){Fi>0&&Un(Fi),Aa()}function va(){aa>0&&Gi(aa),Aa()}function Aa(){Fi=0,aa=0}}function Ba(Ea){if(Ea.length===0)return 0;let Xa=0;for(;Ea.length>0&&typeof Vn(Ea)=="string"&&/^[ \t ]* $ /.test(Vn(Ea));)Xa+=Ea.pop().length;if(Ea.length>0&&typeof Vn(Ea)=="string"){let Fa=Vn(Ea).replace(/[ \t ]* $ /,"");Xa+=Vn(Ea).length-Fa.length,Ea[Ea.length-1]=Fa}return Xa}function la(Ea,Xa,Fa,Zo,Ui){let Ta=Xa.length,Fi=[Ea],aa=[];for(;Fa>=0;){if(Fi.length===0){if(Ta===0)return!0;Fi.push(Xa[--Ta]);continue}let{mode:Un,doc:Gi}=Fi.pop();if(typeof Gi=="string")aa.push(Gi),Fa-=Fn(Gi);else if(ui(Gi)||Gi.type==="fill"){let ra=Mi(Gi);for(let da=ra.length-1;da>=0;da--)Fi.push({mode:Un,doc:ra[da]})}else switch(Gi.type){case"indent":case"align":case"indent-if-break":case"label":Fi.push({mode:Un,doc:Gi.contents});break;case"trim":Fa+=Ba(aa);break;case"group":{if(Ui&&Gi.break)return!1;let ra=Gi.break?zi:Un,da=Gi.expandedStates&&ra===zi?Vn(Gi.expandedStates):Gi.contents;Fi.push({mode:ra,doc:da});break}case"if-break":{let ra=(Gi.groupId?ea[Gi.groupId]||ta:Un)===zi?Gi.breakContents:Gi.flatContents;ra&&Fi.push({mode:Un,doc:ra});break}case"line":if(Un===zi||Gi.hard)return!0;Gi.soft||(aa.push(" "),Fa--);break;case"line-suffix":Zo=!0;break;case"line-suffix-boundary":if(Zo)return!1;break}}return!1}function La(Ea,Xa){ea={};let Fa=Xa.printWidth,Zo=vn(Xa.endOfLine),Ui=0,Ta=[{ind:ki(),mode:zi,doc:Ea}],Fi=[],aa=!1,Un=[];for(;Ta.length>0;){let{ind:ra,mode:da,doc:va}=Ta.pop();if(typeof va=="string"){let Aa=Zo!== `
` ?va.replace(/ \n /g,Zo):va;Fi.push(Aa),Ui+=Fn(Aa)}else if(ui(va)){let Aa=Mi(va);for(let to=Aa.length-1;to>=0;to--)Ta.push({ind:ra,mode:da,doc:Aa[to]})}else switch(va.type){case"cursor":Fi.push(xn.placeholder);break;case"indent":Ta.push({ind:ji(ra,Xa),mode:da,doc:va.contents});break;case"align":Ta.push({ind:oa(ra,va.n,Xa),mode:da,doc:va.contents});break;case"trim":Ui-=Ba(Fi);break;case"group":switch(da){case ta:if(!aa){Ta.push({ind:ra,mode:va.break?zi:ta,doc:va.contents});break}case zi:{aa=!1;let Aa={ind:ra,mode:ta,doc:va.contents},to=Fa-Ui,Bo=Un.length>0;if(!va.break&&la(Aa,Ta,to,Bo))Ta.push(Aa);else if(va.expandedStates){let Jo=Vn(va.expandedStates);if(va.break){Ta.push({ind:ra,mode:zi,doc:Jo});break}else for(let Mo=1;Mo<va.expandedStates.length+1;Mo++)if(Mo>=va.expandedStates.length){Ta.push({ind:ra,mode:zi,doc:Jo});break}else{let _s=va.expandedStates[Mo],bo={ind:ra,mode:ta,doc:_s};if(la(bo,Ta,to,Bo)){Ta.push(bo);break}}}else Ta.push({ind:ra,mode:zi,doc:va.contents});break}}va.id&&(ea[va.id]=Vn(Ta).mode);break;case"fill":{let Aa=Fa-Ui,{parts:to}=va;if(to.length===0)break;let[Bo,Jo]=to,Mo={ind:ra,mode:ta,doc:Bo},_s={ind:ra,mode:zi,doc:Bo},bo=la(Mo,[],Aa,Un.length>0,!0);if(to.length===1){bo?Ta.push(Mo):Ta.push(_s);break}let Bs={ind:ra,mode:ta,doc:Jo},Xo={ind:ra,mode:zi,doc:Jo};if(to.length===2){bo?Ta.push(Bs,Mo):Ta.push(Xo,_s);break}to.splice(0,2);let Oo={ind:ra,mode:da,doc:En(to)},ys=to[0];la({ind:ra,mode:ta,doc:[Bo,Jo,ys]},[],Aa,Un.length>0,!0)?Ta.push(Oo,Bs,Mo):bo?Ta.push(Oo,Xo,Mo):Ta.push(Oo,Xo,_s);break}case"if-break":case"indent-if-break":{let Aa=va.groupId?ea[va.groupId]:da;if(Aa===zi){let to=va.type==="if-break"?va.breakContents:va.negate?va.contents:Nn(va.contents);to&&Ta.push({ind:ra,mode:da,doc:to})}if(Aa===ta){let to=va.type==="if-break"?va.flatContents:va.negate?Nn(va.contents):va.contents;to&&Ta.push({ind:ra,mode:da,doc:to})}break}case"line-suffix":Un.push({ind:ra,mode:da,doc:va.contents});break;case"line-suffix-boundary":Un.length>0&&Ta.push({ind:ra,mode:da,doc:{type:"line",hard:!0}});break;case"line":switch(da){case ta:if(va.hard)aa=!0;else{va.soft||(Fi.push(" "),Ui+=1);break}case zi:if(Un.length>0){Ta.push({ind:ra,mode:da,doc:va},...Un.reverse()),Un.length=0;break}va.literal?ra.root?(Fi.push(Zo,ra.root.value),Ui=ra.root.length):(Fi.push(Zo),Ui=0):(Ui-=Ba(Fi),Fi.push(Zo+ra.value),Ui=ra.length);break}break;case"label":Ta.push({ind:ra,mode:da,doc:va.contents});break}Ta.length===0&&Un.length>0&&(Ta.push(...Un.reverse()),Un.length=0)}let Gi=Fi.indexOf(xn.placeholder);if(Gi!==-1){let ra=Fi.indexOf(xn.placeholder,Gi+1),da=Fi.slice(0,Gi).join(""),va=Fi.slice(Gi+1,ra).join(""),Aa=Fi.slice(ra+1).join("");return{formatted:da+va+Aa,cursorNodeStart:da.length,cursorNodeText:va}}return{formatted:Fi.join("")}}di.exports={printDocToString:La}}}),Of=Io({"src/document/doc-debug.js"(Rn,di){kn();var{isConcat:vn,getDocParts:Vn}=Rp();function Fn(xn){if(!xn)return"";if(vn(xn)){let Nn=[];for(let ui of Vn(xn))if(vn(ui))Nn.push(...Fn(ui).parts);else{let Mi=Fn(ui);Mi!==""&&Nn.push(Mi)}return{type:"concat",parts:Nn}}return xn.type==="if-break"?Object.assign(Object.assign({},xn),{},{breakContents:Fn(xn.breakContents),flatContents:Fn(xn.flatContents)}):xn.type==="group"?Object.assign(Object.assign({},xn),{},{contents:Fn(xn.contents),expandedStates:xn.expandedStates&&xn.expandedStates.map(Fn)}):xn.type==="fill"?{type:"fill",parts:xn.parts.map(Fn)}:xn.contents?Object.assign(Object.assign({},xn),{},{contents:Fn(xn.contents)}):xn}function En(xn){let Nn=Object.create(null),ui=new Set;return Mi(Fn(xn));function Mi(zi,ta,ki){if(typeof zi=="string")return JSON.stringify(zi);if(vn(zi)){let ji=Vn(zi).map(Mi).filter(Boolean);return ji.length===1?ji[0]: ` [ $ { ji . join ( ", " ) } ] ` }if(zi.type==="line"){let ji=Array.isArray(ki)&&ki[ta+1]&&ki[ta+1].type==="break-parent";return zi.literal?ji?"literalline":"literallineWithoutBreakParent":zi.hard?ji?"hardline":"hardlineWithoutBreakParent":zi.soft?"softline":"line"}if(zi.type==="break-parent")return Array.isArray(ki)&&ki[ta-1]&&ki[ta-1].type==="line"&&ki[ta-1].hard?void 0:"breakParent";if(zi.type==="trim")retur
2024-08-21 13:12:53 +08:00
Print ( to stderr ) where a cursor at the given position would move to after formatting .
This option cannot be used with -- range - start and -- range - end .
` ,cliCategory:Fn},endOfLine:{since:"1.15.0",category:ui,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only ( \\ n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters ( \\ r \\ n), common on Windows"},{value:"cr",description:"Carriage Return character only ( \\ r), used very rarely"},{value:"auto",description:vn `
Maintain existing
( mixed values within one file are normalised by looking at what ' s used after the first line )
` }]},filepath:{since:"1.4.0",category:Mi,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:xn,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:Mi,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:xn},parser:{since:"0.0.10",category:ui,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:zi=>typeof zi=="string"||typeof zi=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"acorn",since:"2.6.0",description:"JavaScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:ui,description:"Add a plugin. Multiple plugins can be passed as separate ` -- plugin ` s.",exception:zi=>typeof zi=="string"||typeof zi=="object",cliName:"plugin",cliCategory:Vn},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:ui,description:vn `
Custom directory that contains prettier plugins in node _modules subdirectory .
Overrides default behavior when plugins are searched relatively to the location of Prettier .
Multiple values are accepted .
` ,exception:zi=>typeof zi=="string"||typeof zi=="object",cliName:"plugin-search-dir",cliCategory:Vn},printWidth:{since:"0.0.0",category:ui,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:Mi,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:vn `
Format code ending at a given character offset ( exclusive ) .
The range will extend forwards to the end of the selected statement .
This option cannot be used with -- cursor - offset .
` ,cliCategory:Fn},rangeStart:{since:"1.4.0",category:Mi,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:vn `
Format code starting at a given character offset .
The range will extend backwards to the start of the first line containing the selected statement .
This option cannot be used with -- cursor - offset .
` ,cliCategory:Fn},requirePragma:{since:"1.7.0",category:Mi,type:"boolean",default:!1,description:vn `
Require either '@prettier' or '@format' to be present in the file ' s first docblock comment
in order for it to be formatted .
2024-08-24 19:24:09 +08:00
` ,cliCategory:xn},tabWidth:{type:"int",category:ui,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:ui,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:ui,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};di.exports={CATEGORY_CONFIG:Vn,CATEGORY_EDITOR:Fn,CATEGORY_FORMAT:En,CATEGORY_OTHER:xn,CATEGORY_OUTPUT:Nn,CATEGORY_GLOBAL:ui,CATEGORY_SPECIAL:Mi,options:ea}}}),cm=Io({"src/main/support.js"(Rn,di){kn();var vn={compare:Qp(),lt:Jf(),gte:Rf()},Vn=rh(),Fn=rs().version,En=Oh().options;function xn(){let{plugins:ui=[],showUnreleased:Mi=!1,showDeprecated:ea=!1,showInternal:zi=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ta=Fn.split("-",1)[0],ki=ui.flatMap(la=>la.languages||[]).filter(oa),ji=Vn(Object.assign({},...ui.map(la=>{let{options:La}=la;return La}),En),"name").filter(la=>oa(la)&&Ra(la)).sort((la,La)=>la.name===La.name?0:la.name<La.name?-1:1).map(Ba).map(la=>{la=Object.assign({},la),Array.isArray(la.default)&&(la.default=la.default.length===1?la.default[0].value:la.default.filter(oa).sort((Ea,Xa)=>vn.compare(Xa.since,Ea.since))[0].value),Array.isArray(la.choices)&&(la.choices=la.choices.filter(Ea=>oa(Ea)&&Ra(Ea)),la.name==="parser"&&Nn(la,ki,ui));let La=Object.fromEntries(ui.filter(Ea=>Ea.defaultOptions&&Ea.defaultOptions[la.name]!==void 0).map(Ea=>[Ea.name,Ea.defaultOptions[la.name]]));return Object.assign(Object.assign({},la),{},{pluginDefaults:La})});return{languages:ki,options:ji};function oa(la){return Mi||!("since"in la)||la.since&&vn.gte(ta,la.since)}function Ra(la){return ea||!("deprecated"in la)||la.deprecated&&vn.lt(ta,la.deprecated)}function Ba(la){return zi?la:pa(la,Ln)}}function Nn(ui,Mi,ea){let zi=new Set(ui.choices.map(ta=>ta.value));for(let ta of Mi)if(ta.parsers){for(let ki of ta.parsers)if(!zi.has(ki)){zi.add(ki);let ji=ea.find(Ra=>Ra.parsers&&Ra.parsers[ki]),oa=ta.name;ji&&ji.name&&(oa+= ` ( plugin : $ { ji . name } ) ` ),ui.choices.push({value:ki,description:oa})}}}di.exports={getSupportInfo:xn}}}),wm=Io({"src/utils/is-non-empty-array.js"(Rn,di){kn();function vn(Vn){return Array.isArray(Vn)&&Vn.length>0}di.exports=vn}}),xm=Io({"src/utils/text/skip.js"(Rn,di){kn();function vn(Nn){return(ui,Mi,ea)=>{let zi=ea&&ea.backwards;if(Mi===!1)return!1;let{length:ta}=ui,ki=Mi;for(;ki>=0&&ki<ta;){let ji=ui.charAt(ki);if(Nn instanceof RegExp){if(!Nn.test(ji))return ki}else if(!Nn.includes(ji))return ki;zi?ki--:ki++}return ki===-1||ki===ta?ki:!1}}var Vn=vn(/ \s /),Fn=vn(" "),En=vn(",; "),xn=vn(/[^ \n \r ]/);di.exports={skipWhitespace:Vn,skipSpaces:Fn,skipToLineEnd:En,skipEverythingButNewLine:xn}}}),Td=Io({"src/utils/text/skip-inline-comment.js"(Rn,di){kn();function vn(Vn,Fn){if(Fn===!1)return!1;if(Vn.charAt(Fn)==="/"&&Vn.charAt(Fn+1)==="*"){for(let En=Fn+2;En<Vn.length;++En)if(Vn.charAt(En)==="*"&&Vn.charAt(En+1)==="/")return En+2}return Fn}di.exports=vn}}),Sd=Io({"src/utils/text/skip-trailing-comment.js"(Rn,di){kn();var{skipEverythingButNewLine:vn}=xm();function Vn(Fn,En){return En===!1?!1:Fn.charAt(En)==="/"&&Fn.charAt(En+1)==="/"?vn(Fn,En):En}di.exports=Vn}}),Lp=Io({"src/utils/text/skip-newline.js"(Rn,di){kn();function vn(Vn,Fn,En){let xn=En&&En.backwards;if(Fn===!1)return!1;let Nn=Vn.charAt(Fn);if(xn){if(Vn.charAt(Fn-1)===" \r "&&Nn=== `
2024-08-21 13:12:53 +08:00
` )return Fn-2;if(Nn=== `
` ||Nn===" \r "||Nn===" \u 2028"||Nn===" \u 2029")return Fn-1}else{if(Nn===" \r "&&Vn.charAt(Fn+1)=== `
` )return Fn+2;if(Nn=== `
2024-08-24 19:24:09 +08:00
` ||Nn===" \r "||Nn===" \u 2028"||Nn===" \u 2029")return Fn+1}return Fn}di.exports=vn}}),df=Io({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(Rn,di){kn();var vn=Td(),Vn=Lp(),Fn=Sd(),{skipSpaces:En}=xm();function xn(Nn,ui){let Mi=null,ea=ui;for(;ea!==Mi;)Mi=ea,ea=En(Nn,ea),ea=vn(Nn,ea),ea=Fn(Nn,ea),ea=Vn(Nn,ea);return ea}di.exports=xn}}),Gc=Io({"src/common/util.js"(Rn,di){kn();var{default:vn}=(cf(),Fu(Cf)),Vn=Ac(),{getSupportInfo:Fn}=cm(),En=wm(),xn=uf(),{skipWhitespace:Nn,skipSpaces:ui,skipToLineEnd:Mi,skipEverythingButNewLine:ea}=xm(),zi=Td(),ta=Sd(),ki=Lp(),ji=df(),oa=Xo=>Xo[Xo.length-2];function Ra(Xo){return(Oo,ys,tl)=>{let $ s=tl&&tl.backwards;if(ys===!1)return!1;let{length:pl}=Oo,Vo=ys;for(;Vo>=0&&Vo<pl;){let As=Oo.charAt(Vo);if(Xo instanceof RegExp){if(!Xo.test(As))return Vo}else if(!Xo.includes(As))return Vo; $ s?Vo--:Vo++}return Vo===-1||Vo===pl?Vo:!1}}function Ba(Xo,Oo){let ys=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},tl=ui(Xo,ys.backwards?Oo-1:Oo,ys), $ s=ki(Xo,tl,ys);return tl!== $ s}function la(Xo,Oo,ys){for(let tl=Oo;tl<ys;++tl)if(Xo.charAt(tl)=== `
2024-08-21 13:12:53 +08:00
` )return!0;return!1}function La(Xo,Oo,ys){let tl=ys(Oo)-1;tl=ui(Xo,tl,{backwards:!0}),tl=ki(Xo,tl,{backwards:!0}),tl=ui(Xo,tl,{backwards:!0});let $ s=ki(Xo,tl,{backwards:!0});return tl!== $ s}function Ea(Xo,Oo){let ys=null,tl=Oo;for(;tl!==ys;)ys=tl,tl=Mi(Xo,tl),tl=zi(Xo,tl),tl=ui(Xo,tl);return tl=ta(Xo,tl),tl=ki(Xo,tl),tl!==!1&&Ba(Xo,tl)}function Xa(Xo,Oo,ys){return Ea(Xo,ys(Oo))}function Fa(Xo,Oo,ys){return ji(Xo,ys(Oo))}function Zo(Xo,Oo,ys){return Xo.charAt(Fa(Xo,Oo,ys))}function Ui(Xo,Oo){let ys=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ui(Xo,ys.backwards?Oo-1:Oo,ys)!==Oo}function Ta(Xo,Oo){let ys=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,tl=0;for(let $ s=ys; $ s<Xo.length;++ $ s)Xo[ $ s]===" "?tl=tl+Oo-tl%Oo:tl++;return tl}function Fi(Xo,Oo){let ys=Xo.lastIndexOf( `
2024-08-24 19:24:09 +08:00
` );return ys===-1?0:Ta(Xo.slice(ys+1).match(/^[ \t ]*/)[0],Oo)}function aa(Xo,Oo){let ys={quote:'"',regex:/"/g,escaped:"""},tl={quote:"'",regex:/'/g,escaped:"'"}, $ s=Oo==="'"?tl:ys,pl= $ s===tl?ys:tl,Vo= $ s;if(Xo.includes( $ s.quote)||Xo.includes(pl.quote)){let As=(Xo.match( $ s.regex)||[]).length,dl=(Xo.match(pl.regex)||[]).length;Vo=As>dl?pl: $ s}return Vo}function Un(Xo,Oo){let ys=Xo.slice(1,-1),tl=Oo.parser==="json"||Oo.parser==="json5"&&Oo.quoteProps==="preserve"&&!Oo.singleQuote?'"':Oo.__isInHtmlAttribute?"'":aa(ys,Oo.singleQuote?"'":'"').quote;return Gi(ys,tl,!(Oo.parser==="css"||Oo.parser==="less"||Oo.parser==="scss"||Oo.__embeddedInHtml))}function Gi(Xo,Oo,ys){let tl=Oo==='"'?"'":'"', $ s=/ \\ (.)|(["'])/gs,pl=Xo.replace( $ s,(Vo,As,dl)=>As===tl?As:dl===Oo?" \\ "+dl:dl||(ys&&/^[^ \n \r "'0-7 \\ bfnrt-vx \u 2028 \u 2029] $ /.test(As)?As:" \\ "+As));return Oo+pl+Oo}function ra(Xo){return Xo.toLowerCase().replace(/^([+-]?[ \d .]+e)(?: \+ |(-))?0*( \d )/," $ 1 $ 2 $ 3").replace(/^([+-]?[ \d .]+)e[+-]?0+ $ /," $ 1").replace(/^([+-])? \. /," $ 10.").replace(/( \. \d +?)0+(?=e| $ )/," $ 1").replace(/ \. (?=e| $ )/,"")}function da(Xo,Oo){let ys=Xo.match(new RegExp( ` ( $ { vn ( Oo ) } ) + ` ,"g"));return ys===null?0:ys.reduce((tl, $ s)=>Math.max(tl, $ s.length/Oo.length),0)}function va(Xo,Oo){let ys=Xo.match(new RegExp( ` ( $ { vn ( Oo ) } ) + ` ,"g"));if(ys===null)return 0;let tl=new Map, $ s=0;for(let pl of ys){let Vo=pl.length/Oo.length;tl.set(Vo,!0),Vo> $ s&&( $ s=Vo)}for(let pl=1;pl< $ s;pl++)if(!tl.get(pl))return pl;return $ s+1}function Aa(Xo,Oo){(Xo.comments||(Xo.comments=[])).push(Oo),Oo.printed=!1,Oo.nodeDescription=Bs(Xo)}function to(Xo,Oo){Oo.leading=!0,Oo.trailing=!1,Aa(Xo,Oo)}function Bo(Xo,Oo,ys){Oo.leading=!1,Oo.trailing=!1,ys&&(Oo.marker=ys),Aa(Xo,Oo)}function Jo(Xo,Oo){Oo.leading=!1,Oo.trailing=!0,Aa(Xo,Oo)}function Mo(Xo,Oo){let{languages:ys}=Fn({plugins:Oo.plugins}),tl=ys.find( $ s=>{let{name:pl}= $ s;return pl.toLowerCase()===Xo})||ys.find( $ s=>{let{aliases:pl}= $ s;return Array.isArray(pl)&&pl.includes(Xo)})||ys.find( $ s=>{let{extensions:pl}= $ s;return Array.isArray(pl)&&pl.includes( ` . $ { Xo } ` )});return tl&&tl.parsers[0]}function _s(Xo){return Xo&&Xo.type==="front-matter"}function bo(Xo){let Oo=new WeakMap;return function(ys){return Oo.has(ys)||Oo.set(ys,Symbol(Xo)),Oo.get(ys)}}function Bs(Xo){let Oo=Xo.type||Xo.kind||"(unknown type)",ys=String(Xo.name||Xo.id&&(typeof Xo.id=="object"?Xo.id.name:Xo.id)||Xo.key&&(typeof Xo.key=="object"?Xo.key.name:Xo.key)||Xo.value&&(typeof Xo.value=="object"?"":String(Xo.value))||Xo.operator||"");return ys.length>20&&(ys=ys.slice(0,19)+"…"),Oo+(ys?" "+ys:"")}di.exports={inferParserByLanguage:Mo,getStringWidth:xn,getMaxContinuousCount:da,getMinNotPresentContinuousCount:va,getPenultimate:oa,getLast:Vn,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:ji,getNextNonSpaceNonCommentCharacterIndex:Fa,getNextNonSpaceNonCommentCharacter:Zo,skip:Ra,skipWhitespace:Nn,skipSpaces:ui,skipToLineEnd:Mi,skipEverythingButNewLine:ea,skipInlineComment:zi,skipTrailingComment:ta,skipNewline:ki,isNextLineEmptyAfterIndex:Ea,isNextLineEmpty:Xa,isPreviousLineEmpty:La,hasNewline:Ba,hasNewlineInRange:la,hasSpaces:Ui,getAlignmentSize:Ta,getIndentSize:Fi,getPreferredQuote:aa,printString:Un,printNumber:ra,makeString:Gi,addLeadingComment:to,addDanglingComment:Bo,addTrailingComment:Jo,isFrontMatterNode:_s,isNonEmptyArray:En,createGroupIdMapper:bo}}}),Zf={};vu(Zf,{basename:()=>Mf,default:()=>Wn,delimiter:()=>Yr,dirname:()=>If,extname:()=>fm,isAbsolute:()=>Am,join:()=>Bd,normalize:()=>Nm,relative:()=>dm,resolve:()=>pf,sep:()=>Hf});function jm(Rn,di){for(var vn=0,Vn=Rn.length-1;Vn>=0;Vn--){var Fn=Rn[Vn];Fn==="."?Rn.splice(Vn,1):Fn===".."?(Rn.splice(Vn,1),vn++):vn&&(Rn.splice(Vn,1),vn--)}if(di)for(;vn--;vn)Rn.unshift("..");return Rn}function pf(){for(var Rn="",di=!1,vn=arguments.length-1;vn>=-1&&!di;vn--){var Vn=vn>=0?arguments[vn]:"/";if(typeof Vn!="string")throw new TypeError("Arguments to path.resolve must be strings");Vn&&(Rn=Vn+"/"+Rn,di=Vn.charAt(0)==="/")}return Rn=jm(tp(Rn.split("/"),function(Fn){return!!Fn}),!di).join("/"),(di?"/":"")+Rn||"."}function Nm(Rn){var di=Am(Rn),vn=vi(Rn,-1)==="
2024-08-21 13:12:53 +08:00
` ,ji(ki.gutter,Ta.replace(/ \d /g," "))," ",Gi,ji(ki.marker,"^").repeat(ra)].join(""),aa&&ea.message&&(Un+=" "+ji(ki.message,ea.message))}return[ji(ki.marker,">"),ji(ki.gutter,Ta),Fa.length>0? ` $ { Fa } ` :"",Un].join("")}else return ` $ { ji ( ki . gutter , Ta ) } $ { Fa . length > 0 ? ` ${ Fa } ` : "" } ` }).join( `
` );return ea.message&&!La&&(Xa= ` $ { " " . repeat ( Ea + 1 ) } $ { ea . message }
2024-08-24 19:24:09 +08:00
$ { Xa } ` ),zi?ta.reset(Xa):Xa}function Nn(ui,Mi,ea){let zi=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(!vn){vn=!0;let ta="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use ` codeFrameColumns ` .";if(Ku.emitWarning)Ku.emitWarning(ta,"DeprecationWarning");else{let ki=new Error(ta);ki.name="DeprecationWarning",console.warn(new Error(ta))}}return ea=Math.max(ea,0),xn(ui,{start:{column:ea,line:Mi}},zi)}}}),Xs=Io({"src/main/parser.js"(Rn,di){kn();var{ConfigError:vn}=id(),Vn=Np();Gh();var{locStart:Fn,locEnd:En}=Vn,xn=Object.getOwnPropertyNames,Nn=Object.getOwnPropertyDescriptor;function ui(zi){let ta={};for(let ki of zi.plugins)if(ki.parsers)for(let ji of xn(ki.parsers))Object.defineProperty(ta,ji,Nn(ki.parsers,ji));return ta}function Mi(zi){let ta=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ui(zi);if(typeof zi.parser=="function")return{parse:zi.parser,astFormat:"estree",locStart:Fn,locEnd:En};if(typeof zi.parser=="string"){if(Object.prototype.hasOwnProperty.call(ta,zi.parser))return ta[zi.parser];throw new vn( ` Couldn ' t resolve parser "${zi.parser}" . Parsers must be explicitly added to the standalone bundle . ` )}}function ea(zi,ta){let ki=ui(ta),ji=Object.defineProperties({},Object.fromEntries(Object.keys(ki).map(Ra=>[Ra,{enumerable:!0,get(){return ki[Ra].parse}}]))),oa=Mi(ta,ki);try{return oa.preprocess&&(zi=oa.preprocess(zi,ta)),{text:zi,ast:oa.parse(zi,ji,ta)}}catch(Ra){let{loc:Ba}=Ra;if(Ba){let{codeFrameColumns:la}=rm();throw Ra.codeFrame=la(zi,Ba,{highlightCode:!0}),Ra.message+= `
` +Ra.codeFrame,Ra}throw Ra}}di.exports={parse:ea,resolveParser:Mi}}}),Yl=Io({"src/main/options.js"(Rn,di){kn();var vn=qc(),{UndefinedParserError:Vn}=id(),{getSupportInfo:Fn}=cm(),En=Gm(),{resolveParser:xn}=Xs(),Nn={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function ui(zi){let ta=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ki=Object.assign({},zi),ji=Fn({plugins:zi.plugins,showUnreleased:!0,showDeprecated:!0}).options,oa=Object.assign(Object.assign({},Nn),Object.fromEntries(ji.filter(Ea=>Ea.default!==void 0).map(Ea=>[Ea.name,Ea.default])));if(!ki.parser){if(!ki.filepath)(ta.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),ki.parser="babel";else if(ki.parser=ea(ki.filepath,ki.plugins),!ki.parser)throw new Vn( ` No parser could be inferred for file : $ { ki . filepath } ` )}let Ra=xn(En.normalizeApiOptions(ki,[ji.find(Ea=>Ea.name==="parser")],{passThrough:!0,logger:!1}));ki.astFormat=Ra.astFormat,ki.locEnd=Ra.locEnd,ki.locStart=Ra.locStart;let Ba=Mi(ki);ki.printer=Ba.printers[ki.astFormat];let la=Object.fromEntries(ji.filter(Ea=>Ea.pluginDefaults&&Ea.pluginDefaults[Ba.name]!==void 0).map(Ea=>[Ea.name,Ea.pluginDefaults[Ba.name]])),La=Object.assign(Object.assign({},oa),la);for(let[Ea,Xa]of Object.entries(La))(ki[Ea]===null||ki[Ea]===void 0)&&(ki[Ea]=Xa);return ki.parser==="json"&&(ki.trailingComma="none"),En.normalizeApiOptions(ki,ji,Object.assign({passThrough:Object.keys(Nn)},ta))}function Mi(zi){let{astFormat:ta}=zi;if(!ta)throw new Error("getPlugin() requires astFormat to be set");let ki=zi.plugins.find(ji=>ji.printers&&ji.printers[ta]);if(!ki)throw new Error( ` Couldn ' t find plugin for AST format "${ta}" ` );return ki}function ea(zi,ta){let ki=vn.basename(zi).toLowerCase(),ji=Fn({plugins:ta}).languages.filter(oa=>oa.since!==null).find(oa=>oa.extensions&&oa.extensions.some(Ra=>ki.endsWith(Ra))||oa.filenames&&oa.filenames.some(Ra=>Ra.toLowerCase()===ki));return ji&&ji.parsers[0]}di.exports={normalize:ui,hiddenDefaults:Nn,inferParser:ea}}}),Pl=Io({"src/main/massage-ast.js"(Rn,di){kn();function vn(Vn,Fn,En){if(Array.isArray(Vn))return Vn.map(Mi=>vn(Mi,Fn,En)).filter(Boolean);if(!Vn||typeof Vn!="object")return Vn;let xn=Fn.printer.massageAstNode,Nn;xn&&xn.ignoredProperties?Nn=xn.ignoredProperties:Nn=new Set;let ui={};for(let[Mi,ea]of Object.entries(Vn))!Nn.has(Mi)&&typeof ea!="function"&&(ui[Mi]=vn(ea,Fn,Vn));if(xn){let Mi=xn(Vn,ui,En);if(Mi===null)return;if(Mi)return Mi}return ui}di.exports=vn}}),_c=Io({"scripts/build/shims/assert.cjs"(Rn,di){kn();var vn=()=>{};vn.ok=vn,vn.strictEqual=vn,di.exports=vn}}),Ec=Io({"src/main/comments.js"(Rn,di){kn();var vn=_c(),{builders:{line:Vn,hardline:Fn,breakParent:En,indent:xn,lineSuffix:Nn,join:ui,cursor:Mi}}=yc(),{hasNewline:ea,skipNewline:zi,skipSpaces:ta,isPreviousLineEmpty:ki,addLeadingComment:ji,addDanglingComment:oa,addTrailingComment:Ra}=Gc(),Ba=new WeakMap;function la(to,Bo,Jo){if(!to)return;let{printer:Mo,locStart:_s,locEnd:bo}=Bo;if(Jo){if(Mo.canAttachComment&&Mo.canAttachComment(to)){let Xo;for(Xo=Jo.length-1;Xo>=0&&!(_s(Jo[Xo])<=_s(to)&&bo(Jo[Xo])<=bo(to));--Xo);Jo.splice(Xo+1,0,to);return}}else if(Ba.has(to))return Ba.get(to);let Bs=Mo.getCommentChildNodes&&Mo.getCommentChildNodes(to,Bo)||typeof to=="object"&&Object.entries(to).filter(Xo=>{let[Oo]=Xo;return Oo!=="enclosingNode"&&Oo!=="precedingNode"&&Oo!=="followingNode"&&Oo!=="tokens"&&Oo!=="comments"&&Oo!=="parent"}).map(Xo=>{let[,Oo]=Xo;return Oo});if(Bs){Jo||(Jo=[],Ba.set(to,Jo));for(let Xo of Bs)la(Xo,Bo,Jo);return Jo}}function La(to,Bo,Jo,Mo){let{locStart:_s,locEnd:bo}=Jo,Bs=_s(Bo),Xo=bo(Bo),Oo=la(to,Jo),ys,tl, $ s=0,pl=Oo.length;for(; $ s<pl;){let Vo= $ s+pl>>1,As=Oo[Vo],dl=_s(As),al=bo(As);if(dl<=Bs&&Xo<=al)return La(As,Bo,Jo,As);if(al<=Bs){ys=As, $ s=Vo+1;continue}if(Xo<=dl){tl=As,pl=Vo;continue}throw new Error("Comment location overlaps with node location")}if(Mo&&Mo.type==="TemplateLiteral"){let{quasis:Vo}=Mo,As=aa(Vo,Bo,Jo);ys&&aa(Vo,ys,Jo)!==As&&
2024-08-21 13:12:53 +08:00
` ,ra)+1),to=Gi.slice(Aa,ra).match(/^ \s */)[0],Bo=En(to,aa.tabWidth),Jo=La(va,Object.assign(Object.assign({},aa),{},{rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:aa.cursorOffset>ra&&aa.cursorOffset<=da?aa.cursorOffset-ra:-1,endOfLine:"lf"}),Bo),Mo=Jo.formatted.trimEnd(),{cursorOffset:_s}=aa;_s>da?_s+=Mo.length-va.length:Jo.cursorOffset>=0&&(_s=Jo.cursorOffset+ra);let bo=Gi.slice(0,ra)+Mo+Gi.slice(da);if(aa.endOfLine!=="lf"){let Bs=Nn(aa.endOfLine);_s>=0&&Bs=== ` \ r
` &&(_s+=ui(bo.slice(0,_s), `
` )),bo=bo.replace(/ \n /g,Bs)}return{formatted:bo,cursorOffset:_s,comments:Jo.comments}}function Xa(Fi,aa,Un){return typeof aa!="number"||Number.isNaN(aa)||aa<0||aa>Fi.length?Un:aa}function Fa(Fi,aa){let{cursorOffset:Un,rangeStart:Gi,rangeEnd:ra}=aa;return Un=Xa(Fi,Un,-1),Gi=Xa(Fi,Gi,0),ra=Xa(Fi,ra,Fi.length),Object.assign(Object.assign({},aa),{},{cursorOffset:Un,rangeStart:Gi,rangeEnd:ra})}function Zo(Fi,aa){let{cursorOffset:Un,rangeStart:Gi,rangeEnd:ra,endOfLine:da}=Fa(Fi,aa),va=Fi.charAt(0)===Ra;if(va&&(Fi=Fi.slice(1),Un--,Gi--,ra--),da==="auto"&&(da=xn(Fi)),Fi.includes(" \r ")){let Aa=to=>ui(Fi.slice(0,Math.max(to,0)), ` \ r
2024-08-24 19:24:09 +08:00
` );Un-=Aa(Un),Gi-=Aa(Gi),ra-=Aa(ra),Fi=Mi(Fi)}return{hasBOM:va,text:Fi,options:Fa(Fi,Object.assign(Object.assign({},aa),{},{cursorOffset:Un,rangeStart:Gi,rangeEnd:ra,endOfLine:da}))}}function Ui(Fi,aa){let Un=ki.resolveParser(aa);return!Un.hasPragma||Un.hasPragma(Fi)}function Ta(Fi,aa){let{hasBOM:Un,text:Gi,options:ra}=Zo(Fi,ea(aa));if(ra.rangeStart>=ra.rangeEnd&&Gi!==""||ra.requirePragma&&!Ui(Gi,ra))return{formatted:Fi,cursorOffset:aa.cursorOffset,comments:[]};let da;return ra.rangeStart>0||ra.rangeEnd<Gi.length?da=Ea(Gi,ra):(!ra.requirePragma&&ra.insertPragma&&ra.printer.insertPragma&&!Ui(Gi,ra)&&(Gi=ra.printer.insertPragma(Gi)),da=La(Gi,ra)),Un&&(da.formatted=Ra+da.formatted,da.cursorOffset>=0&&da.cursorOffset++),da}di.exports={formatWithCursor:Ta,parse(Fi,aa,Un){let{text:Gi,options:ra}=Zo(Fi,ea(aa)),da=ki.parse(Gi,ra);return Un&&(da.ast=zi(da.ast,ra)),da},formatAST(Fi,aa){aa=ea(aa);let Un=ji(Fi,aa);return Vn(Un,aa)},formatDoc(Fi,aa){return Ta(Fn(Fi),Object.assign(Object.assign({},aa),{},{parser:"__js_expression"})).formatted},printToDoc(Fi,aa){aa=ea(aa);let{ast:Un,text:Gi}=ki.parse(Fi,aa);return la(Gi,Un,aa),ji(Un,aa)},printDocToString(Fi,aa){return Vn(Fi,ea(aa))}}}}),_f=Io({"src/common/util-shared.js"(Rn,di){kn();var{getMaxContinuousCount:vn,getStringWidth:Vn,getAlignmentSize:Fn,getIndentSize:En,skip:xn,skipWhitespace:Nn,skipSpaces:ui,skipNewline:Mi,skipToLineEnd:ea,skipEverythingButNewLine:zi,skipInlineComment:ta,skipTrailingComment:ki,hasNewline:ji,hasNewlineInRange:oa,hasSpaces:Ra,isNextLineEmpty:Ba,isNextLineEmptyAfterIndex:la,isPreviousLineEmpty:La,getNextNonSpaceNonCommentCharacterIndex:Ea,makeString:Xa,addLeadingComment:Fa,addDanglingComment:Zo,addTrailingComment:Ui}=Gc();di.exports={getMaxContinuousCount:vn,getStringWidth:Vn,getAlignmentSize:Fn,getIndentSize:En,skip:xn,skipWhitespace:Nn,skipSpaces:ui,skipNewline:Mi,skipToLineEnd:ea,skipEverythingButNewLine:zi,skipInlineComment:ta,skipTrailingComment:ki,hasNewline:ji,hasNewlineInRange:oa,hasSpaces:Ra,isNextLineEmpty:Ba,isNextLineEmptyAfterIndex:la,isPreviousLineEmpty:La,getNextNonSpaceNonCommentCharacterIndex:Ea,makeString:Xa,addLeadingComment:Fa,addDanglingComment:Zo,addTrailingComment:Ui}}}),Lf=Io({"src/utils/create-language.js"(Rn,di){kn(),di.exports=function(vn,Vn){let{languageId:Fn}=vn,En=pa(vn,Wi);return Object.assign(Object.assign({linguistLanguageId:Fn},En),Vn(vn))}}}),bm=Io({"node_modules/esutils/lib/ast.js"(Rn,di){kn(),function(){function vn(ui){if(ui==null)return!1;switch(ui.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function Vn(ui){if(ui==null)return!1;switch(ui.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function Fn(ui){if(ui==null)return!1;switch(ui.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function En(ui){return Fn(ui)||ui!=null&&ui.type==="FunctionDeclaration"}function xn(ui){switch(ui.type){case"IfStatement":return ui.alternate!=null?ui.alternate:ui.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return ui.body}return null}function Nn(ui){var Mi;if(ui.type!=="IfStatement"||ui.alternate==null)return!1;Mi=ui.consequent;do{if(Mi.type==="IfStatement"&&Mi.alternate==null)return!0;Mi=xn(Mi)}while(Mi);return!1}di.exports={isExpression:vn,isStatement:Fn,isIterationStatement:Vn,isSourceElement:En,isProblematicIfStatement:N
2024-08-21 13:12:53 +08:00
` ))}function rc(co,rl){return(co.type==="TemplateLiteral"&&jl(co)||co.type==="TaggedTemplateExpression"&&jl(co.quasi))&&!Fn(rl,Mi(co),{backwards:!0})}function ed(co){if(!gu(co))return!1;let rl=Vn(vs(co,sl.Dangling));return rl&&!ta(rl)}function Uc(co){if(co.length<=1)return!1;let rl=0;for(let Ju of co)if(va(Ju)){if(rl+=1,rl>1)return!0}else if(dl(Ju)){for(let jc of Ju.arguments)if(va(jc))return!0}return!1}function fc(co){let rl=co.getValue(),Ju=co.getParentNode();return dl(rl)&&dl(Ju)&&Ju.callee===rl&&rl.arguments.length>Ju.arguments.length&&Ju.arguments.length>0}function lc(co,rl){if(rl>=2)return!1;let Ju=yd=>lc(yd,rl+1),jc=co.type==="Literal"&&"regex"in co&&co.regex.pattern||co.type==="RegExpLiteral"&&co.pattern;if(jc&&ui(jc)>5)return!1;if(co.type==="Literal"||co.type==="BigIntLiteral"||co.type==="DecimalLiteral"||co.type==="BooleanLiteral"||co.type==="NullLiteral"||co.type==="NumericLiteral"||co.type==="RegExpLiteral"||co.type==="StringLiteral"||co.type==="Identifier"||co.type==="ThisExpression"||co.type==="Super"||co.type==="PrivateName"||co.type==="PrivateIdentifier"||co.type==="ArgumentPlaceholder"||co.type==="Import")return!0;if(co.type==="TemplateLiteral")return co.quasis.every(yd=>!yd.value.raw.includes( `
2024-08-24 19:24:09 +08:00
` ))&&co.expressions.every(Ju);if(co.type==="ObjectExpression")return co.properties.every(yd=>!yd.computed&&(yd.shorthand||yd.value&&Ju(yd.value)));if(co.type==="ArrayExpression")return co.elements.every(yd=>yd===null||Ju(yd));if(vc(co))return(co.type==="ImportExpression"||lc(co.callee,rl))&&ms(co).every(Ju);if(al(co))return lc(co.object,rl)&&lc(co.property,rl);let Wc={"!":!0,"-":!0,"+":!0,"~":!0};if(co.type==="UnaryExpression"&&Wc[co.operator])return lc(co.argument,rl);let Xd={"++":!0,"--":!0};return co.type==="UpdateExpression"&&Xd[co.operator]?lc(co.argument,rl):co.type==="TSNonNullExpression"?lc(co.expression,rl):!1}function ol(co){var rl,Ju;return(rl=(Ju=co.extra)===null||Ju===void 0?void 0:Ju.raw)!==null&&rl!==void 0?rl:co.raw}function Qo(co){return co}function fl(co){return co.filepath&&/ \. tsx $ /i.test(co.filepath)}function ks(co){let rl=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"es5";return co.trailingComma==="es5"&&rl==="es5"||co.trailingComma==="all"&&(rl==="all"||rl==="es5")}function ul(co,rl){switch(co.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ul(co.left,rl);case"MemberExpression":case"OptionalMemberExpression":return ul(co.object,rl);case"TaggedTemplateExpression":return co.tag.type==="FunctionExpression"?!1:ul(co.tag,rl);case"CallExpression":case"OptionalCallExpression":return co.callee.type==="FunctionExpression"?!1:ul(co.callee,rl);case"ConditionalExpression":return ul(co.test,rl);case"UpdateExpression":return!co.prefix&&ul(co.argument,rl);case"BindExpression":return co.object&&ul(co.object,rl);case"SequenceExpression":return ul(co.expressions[0],rl);case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":return ul(co.expression,rl);default:return rl(co)}}var Hu={"==":!0,"!=":!0,"===":!0,"!==":!0}, $ e={"*":!0,"/":!0,"%":!0},er={">>":!0,">>>":!0,"<<":!0};function ir(co,rl){return!(dr(rl)!==dr(co)||co==="**"||Hu[co]&&Hu[rl]||rl==="%"&& $ e[co]||co==="%"&& $ e[rl]||rl!==co&& $ e[rl]&& $ e[co]||er[co]&&er[rl])}var lr=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((co,rl)=>co.map(Ju=>[Ju,rl])));function dr(co){return lr.get(co)}function $ r(co){return!!er[co]||co==="|"||co==="^"||co==="&"}function Zr(co){var rl;if(co.rest)return!0;let Ju=mi(co);return((rl=Vn(Ju))===null||rl===void 0?void 0:rl.type)==="RestElement"}var Hn=new WeakMap;function mi(co){if(Hn.has(co))return Hn.get(co);let rl=[];return co.this&&rl.push(co.this),Array.isArray(co.parameters)?rl.push(...co.parameters):Array.isArray(co.params)&&rl.push(...co.params),co.rest&&rl.push(co.rest),Hn.set(co,rl),rl}function ma(co,rl){let Ju=co.getValue(),jc=0,Wc=Xd=>rl(Xd,jc++);Ju.this&&co.call(Wc,"this"),Array.isArray(Ju.parameters)?co.each(Wc,"parameters"):Array.isArray(Ju.params)&&co.each(Wc,"params"),Ju.rest&&co.call(Wc,"rest")}var io=new WeakMap;function ms(co){if(io.has(co))return io.get(co);let rl=co.arguments;return co.type==="ImportExpression"&&(rl=[co.source],co.attributes&&rl.push(co.attributes)),io.set(co,rl),rl}function gs(co,rl){let Ju=co.getValue();Ju.type==="ImportExpression"?(co.call(jc=>rl(jc,0),"source"),Ju.attributes&&co.call(jc=>rl(jc,1),"attributes")):co.each(rl,"arguments")}function Cs(co){return co.value.trim()==="prettier-ignore"&&!co.unignore}function Js(co){return co&&(co.prettierIgnore||gu(co,sl.PrettierIgnore))}function Hl(co){let rl=co.getValue();return Js(rl)}var sl={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},pu=(co,rl)=>{if(typeof co=="function"&&(rl=co,co=0),co||rl)return(Ju,jc,Wc)=>!(co&sl.Leading&&!Ju.leading||co&sl.Trailing&&!Ju.trailing||co&sl.Dangling&&(Ju.leading||Ju.trailing)||co&sl.Block&&!ta(Ju)||co&sl.Line&&!Ui(Ju)||co&sl.First&&jc!==0||co&sl.Last&&jc!==Wc.length-1||co&sl.PrettierIgnore&&!Cs(Ju)||rl&&!rl(Ju))};function gu(co,rl,Ju){if(!xn(co==null?void 0:co.comments))return!1;let jc=pu(rl,Ju);return jc?co.comments.some(jc):!0}function vs(co,rl,Ju){if(!Array.isAr
2024-08-21 13:12:53 +08:00
` )?ea(Number.NEGATIVE_INFINITY,Bs):ta(Bs,bo,Mo);va.push(ui([" ${ ",Xo,zi," } "]))}},"quasis"),va.push(" ` "),va}function Fa(aa,Un,Gi){let ra=aa.getNode(),da=ra.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(da.length>1||da.some(va=>va.length>0)){Un.__inJestEach=!0;let va=aa.map(Gi," expressions ");Un.__inJestEach=!1;let Aa=[],to=va.map(bo=>" $ { "+ki(bo,Object.assign(Object.assign({},Un),{},{printWidth:Number.POSITIVE_INFINITY,endOfLine:" lf "})).formatted+" } " ) , Bo = [ { hasLineBreak : ! 1 , cells : [ ] } ] ; for ( let bo = 1 ; bo < ra . quasis . length ; bo ++ ) { let Bs = vn ( Bo ) , Xo = to [ bo - 1 ] ; Bs . cells . push ( Xo ) , Xo . includes ( `
` )&&(Bs.hasLineBreak=!0),ra.quasis[bo].value.raw.includes( `
2024-08-24 19:24:09 +08:00
` )&&Bo.push({hasLineBreak:!1,cells:[]})}let Jo=Math.max(da.length,...Bo.map(bo=>bo.cells.length)),Mo=Array.from({length:Jo}).fill(0),_s=[{cells:da},...Bo.filter(bo=>bo.cells.length>0)];for(let{cells:bo}of _s.filter(Bs=>!Bs.hasLineBreak))for(let[Bs,Xo]of bo.entries())Mo[Bs]=Math.max(Mo[Bs],Vn(Xo));return Aa.push(zi," ` ",Mi([xn,En(xn,_s.map(bo=>En(" | ",bo.cells.map((Bs,Xo)=>bo.hasLineBreak?Bs:Bs+" ".repeat(Mo[Xo]-Vn(Bs))))))]),xn," ` "),Aa}}function Zo(aa,Un){let Gi=aa.getValue(),ra=Un();return la(Gi)&&(ra=ui([Mi([Nn,ra]),Nn])),[" ${ ",ra,zi," } "]}function Ui(aa,Un){return aa.map(Gi=>Zo(Gi,Un),"expressions")}function Ta(aa,Un){return ji(aa,Gi=>typeof Gi=="string"?Un?Gi.replace(/( \\ *) ` / g , "$1$1\\`" ) : Fi ( Gi ) : Gi ) } function Fi ( aa ) { return aa . replace ( /([\\`]|\${)/g , "\\$1" ) } di . exports = { printTemplateLiteral : Xa , printTemplateExpressions : Ui , escapeTemplateCharacters : Ta , uncookTemplateElementValue : Fi } } } ) , Mm = Io ( { "src/language-js/embed/markdown.js" ( Rn , di ) { kn ( ) ; var { builders : { indent : vn , softline : Vn , literalline : Fn , dedentToRoot : En } } = yc ( ) , { escapeTemplateCharacters : xn } = Wp ( ) ; function Nn ( Mi , ea , zi ) { let ta = Mi . getValue ( ) . quasis [ 0 ] . value . raw . replace ( /((?:\\\\)*)\\`/g , ( Ra , Ba ) => "\\" . repeat ( Ba . length / 2 ) + "`" ) , ki = ui ( ta ) , ji = ki !== "" ; ji && ( ta = ta . replace ( new RegExp ( ` ^ ${ ki } ` , "gm" ) , "" ) ) ; let oa = xn ( zi ( ta , { parser : "markdown" , _ _inJsTemplate : ! 0 } , { stripTrailingHardline : ! 0 } ) , ! 0 ) ; return [ "`" , ji ? vn ( [ Vn , oa ] ) : [ Fn , En ( oa ) ] , Vn , "`" ] } function ui ( Mi ) { let ea = Mi . match ( /^([^\S\n]*)\S/m ) ; return ea === null ? "" : ea [ 1 ] } di . exports = Nn } } ) , Ip = Io ( { "src/language-js/embed/css.js" ( Rn , di ) { kn ( ) ; var { isNonEmptyArray : vn } = Gc ( ) , { builders : { indent : Vn , hardline : Fn , softline : En } , utils : { mapDoc : xn , replaceEndOfLine : Nn , cleanDoc : ui } } = yc ( ) , { printTemplateExpressions : Mi } = Wp ( ) ; function ea ( ki , ji , oa ) { let Ra = ki . getValue ( ) , Ba = Ra . quasis . map ( Fa => Fa . value . raw ) , la = 0 , La = Ba . reduce ( ( Fa , Zo , Ui ) => Ui === 0 ? Zo : Fa + "@prettier-placeholder-" + la ++ + "-id" + Zo , "" ) , Ea = oa ( La , { parser : "scss" } , { stripTrailingHardline : ! 0 } ) , Xa = Mi ( ki , ji ) ; return zi ( Ea , Ra , Xa ) } function zi ( ki , ji , oa ) { if ( ji . quasis . length === 1 && ! ji . quasis [ 0 ] . value . raw . trim ( ) ) return "``" ; let Ra = ta ( ki , oa ) ; if ( ! Ra ) throw new Error ( "Couldn't insert all the expressions" ) ; return [ "`" , Vn ( [ Fn , Ra ] ) , En , "`" ] } function ta ( ki , ji ) { if ( ! vn ( ji ) ) return ki ; let oa = 0 , Ra = xn ( ui ( ki ) , Ba => typeof Ba != "string" || ! Ba . includes ( "@prettier-placeholder" ) ? Ba : Ba . split ( /@prettier-placeholder-(\d+)-id/ ) . map ( ( la , La ) => La % 2 === 0 ? Nn ( la ) : ( oa ++ , ji [ la ] ) ) ) ; return ji . length === oa ? Ra : null } di . exports = ea } } ) , nm = Io ( { "src/language-js/embed/graphql.js" ( Rn , di ) { kn ( ) ; var { builders : { indent : vn , join : Vn , hardline : Fn } } = yc ( ) , { escapeTemplateCharacters : En , printTemplateExpressions : xn } = Wp ( ) ; function Nn ( Mi , ea , zi ) { let ta = Mi . getValue ( ) , ki = ta . quasis . length ; if ( ki === 1 && ta . quasis [ 0 ] . value . raw . trim ( ) === "" ) return "``" ; let ji = xn ( Mi , ea ) , oa = [ ] ; for ( let Ra = 0 ; Ra < ki ; Ra ++ ) { let Ba = ta . quasis [ Ra ] , la = Ra === 0 , La = Ra === ki - 1 , Ea = Ba . value . cooked , Xa = Ea . split ( `
` ),Fa=Xa.length,Zo=ji[Ra],Ui=Fa>2&&Xa[0].trim()===""&&Xa[1].trim()==="",Ta=Fa>2&&Xa[Fa-1].trim()===""&&Xa[Fa-2].trim()==="",Fi=Xa.every(Un=>/^ \s *(?:#[^ \n \r ]*)? $ /.test(Un));if(!La&&/#[^ \n \r ]* $ /.test(Xa[Fa-1]))return null;let aa=null;Fi?aa=ui(Xa):aa=zi(Ea,{parser:"graphql"},{stripTrailingHardline:!0}),aa?(aa=En(aa,!1),!la&&Ui&&oa.push(""),oa.push(aa),!La&&Ta&&oa.push("")):!la&&!La&&Ui&&oa.push(""),Zo&&oa.push(Zo)}return[" ` ",vn([Fn,Vn(Fn,oa)]),Fn," ` "]}function ui(Mi){let ea=[],zi=!1,ta=Mi.map(ki=>ki.trim());for(let[ki,ji]of ta.entries())ji!==""&&(ta[ki-1]===""&&zi?ea.push([Fn,ji]):ea.push(ji),zi=!0);return ea.length===0?null:Vn(Fn,ea)}di.exports=Nn}}), $ f=Io({"src/language-js/embed/html.js"(Rn,di){kn();var{builders:{indent:vn,line:Vn,hardline:Fn,group:En},utils:{mapDoc:xn}}=yc(),{printTemplateExpressions:Nn,uncookTemplateElementValue:ui}=Wp(),Mi=0;function ea(zi,ta,ki,ji,oa){let{parser:Ra}=oa,Ba=zi.getValue(),la=Mi;Mi=Mi+1>>>0;let La=Gi=> ` PRETTIER _HTML _PLACEHOLDER _$ { Gi } _$ { la } _IN _JS ` ,Ea=Ba.quasis.map((Gi,ra,da)=>ra===da.length-1?Gi.value.cooked:Gi.value.cooked+La(ra)).join(""),Xa=Nn(zi,ta);if(Xa.length===0&&Ea.trim().length===0)return" ` ` ";let Fa=new RegExp(La("( \\ d+)"),"g"),Zo=0,Ui=ki(Ea,{parser:Ra,__onHtmlRoot(Gi){Zo=Gi.children.length}},{stripTrailingHardline:!0}),Ta=xn(Ui,Gi=>{if(typeof Gi!="string")return Gi;let ra=[],da=Gi.split(Fa);for(let va=0;va<da.length;va++){let Aa=da[va];if(va%2===0){Aa&&(Aa=ui(Aa),ji.__embeddedInHtml&&(Aa=Aa.replace(/< \/ (script) \b /gi,"< \\ / $ 1")),ra.push(Aa));continue}let to=Number(Aa);ra.push(Xa[to])}return ra}),Fi=/^ \s /.test(Ea)?" ":"",aa=/ \s $ /.test(Ea)?" ":"",Un=ji.htmlWhitespaceSensitivity==="ignore"?Fn:Fi&&aa?Vn:null;return En(Un?[" ` ",vn([Un,En(Ta)]),Un," ` "]:[" ` ",Fi,Zo>1?vn(En(Ta)):En(Ta),aa," ` "])}di.exports=ea}}),jf=Io({"src/language-js/embed.js"(Rn,di){kn();var{hasComment:vn,CommentCheckFlags:Vn,isObjectProperty:Fn}=Dd(),En=Mm(),xn=Ip(),Nn=nm(),ui= $ f();function Mi(Ui){if(ta(Ui)||Ra(Ui)||Ba(Ui)||ki(Ui))return"css";if(Ea(Ui))return"graphql";if(Fa(Ui))return"html";if(ji(Ui))return"angular";if(zi(Ui))return"markdown"}function ea(Ui,Ta,Fi,aa){let Un=Ui.getValue();if(Un.type!=="TemplateLiteral"||Zo(Un))return;let Gi=Mi(Ui);if(Gi){if(Gi==="markdown")return En(Ui,Ta,Fi);if(Gi==="css")return xn(Ui,Ta,Fi);if(Gi==="graphql")return Nn(Ui,Ta,Fi);if(Gi==="html"||Gi==="angular")return ui(Ui,Ta,Fi,aa,{parser:Gi})}}function zi(Ui){let Ta=Ui.getValue(),Fi=Ui.getParentNode();return Fi&&Fi.type==="TaggedTemplateExpression"&&Ta.quasis.length===1&&Fi.tag.type==="Identifier"&&(Fi.tag.name==="md"||Fi.tag.name==="markdown")}function ta(Ui){let Ta=Ui.getValue(),Fi=Ui.getParentNode(),aa=Ui.getParentNode(1);return aa&&Ta.quasis&&Fi.type==="JSXExpressionContainer"&&aa.type==="JSXElement"&&aa.openingElement.name.name==="style"&&aa.openingElement.attributes.some(Un=>Un.name.name==="jsx")||Fi&&Fi.type==="TaggedTemplateExpression"&&Fi.tag.type==="Identifier"&&Fi.tag.name==="css"||Fi&&Fi.type==="TaggedTemplateExpression"&&Fi.tag.type==="MemberExpression"&&Fi.tag.object.name==="css"&&(Fi.tag.property.name==="global"||Fi.tag.property.name==="resolve")}function ki(Ui){return Ui.match(Ta=>Ta.type==="TemplateLiteral",(Ta,Fi)=>Ta.type==="ArrayExpression"&&Fi==="elements",(Ta,Fi)=>Fn(Ta)&&Ta.key.type==="Identifier"&&Ta.key.name==="styles"&&Fi==="value",...oa)}function ji(Ui){return Ui.match(Ta=>Ta.type==="TemplateLiteral",(Ta,Fi)=>Fn(Ta)&&Ta.key.type==="Identifier"&&Ta.key.name==="template"&&Fi==="value",...oa)}var oa=[(Ui,Ta)=>Ui.type==="ObjectExpression"&&Ta==="properties",(Ui,Ta)=>Ui.type==="CallExpression"&&Ui.callee.type==="Identifier"&&Ui.callee.name==="Component"&&Ta==="arguments",(Ui,Ta)=>Ui.type==="Decorator"&&Ta==="expression"];function Ra(Ui){let Ta=Ui.getParentNode();if(!Ta||Ta.type!=="TaggedTemplateExpression")return!1;let Fi=Ta.tag.type==="ParenthesizedExpression"?Ta.tag.expression:Ta.tag;switch(Fi.type){case"MemberExpression":return la(Fi.object)||La(Fi);case"CallExpression":return la(Fi.callee)||Fi.callee.type==="MemberExpression"&&(Fi.callee.object.type==="MemberExpression"&&(la(Fi.callee.object.object)||La(Fi.cal
` ,Ts={EOL: $ o,tmpdir:Ja,tmpDir:no,networkInterfaces:Ao,getNetworkInterfaces:eo,release:Do,type:Co,cpus:os,totalmem:Os,freemem:Nh,uptime:Kf,loadavg:ym,hostname:Bm,endianness:bf}}}),Is=Io({"node-modules-polyfills-commonjs:os"(Rn,di){kn();var vn=(ds(),Fu(dh));if(vn&&vn.default){di.exports=vn.default;for(let Vn in vn)di.exports[Vn]=vn[Vn]}else vn&&(di.exports=vn)}}),Gs=Io({"node_modules/detect-newline/index.js"(Rn,di){kn();var vn=Vn=>{if(typeof Vn!="string")throw new TypeError("Expected a string");let Fn=Vn.match(/(?: \r ? \n )/g)||[];if(Fn.length===0)return;let En=Fn.filter(Nn=>Nn=== ` \ r
2024-08-21 13:12:53 +08:00
` ).length,xn=Fn.length-En;return En>xn? ` \ r
` : `
` };di.exports=vn,di.exports.graceful=Vn=>typeof Vn=="string"&&vn(Vn)|| `
2024-08-24 19:24:09 +08:00
` }}),Ls=Io({"node_modules/jest-docblock/build/index.js"(Rn){kn(),Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.extract=ki,Rn.parse=oa,Rn.parseWithComments=Ra,Rn.print=Ba,Rn.strip=ji;function di(){let La=Is();return di=function(){return La},La}function vn(){let La=Vn(Gs());return vn=function(){return La},La}function Vn(La){return La&&La.__esModule?La:{default:La}}var Fn=/ \* \/ $ /,En=/^ \/ \* \* ?/,xn=/^ \s *( \/ \* \* ?(.| \r ? \n )*? \* \/ )/,Nn=/(^| \s +) \/ \/ ([^ \r \n ]*)/g,ui=/^( \r ? \n )+/,Mi=/(?:^| \r ? \n ) *(@[^ \r \n ]*?) * \r ? \n *(?![^@ \r \n ]* \/ \/ [^]*)([^@ \r \n \s ][^@ \r \n ]+?) * \r ? \n /g,ea=/(?:^| \r ? \n ) *@( \S +) *([^ \r \n ]*)/g,zi=/( \r ? \n |^) * \* ?/g,ta=[];function ki(La){let Ea=La.match(xn);return Ea?Ea[0].trimLeft():""}function ji(La){let Ea=La.match(xn);return Ea&&Ea[0]?La.substring(Ea[0].length):La}function oa(La){return Ra(La).pragmas}function Ra(La){let Ea=(0,vn().default)(La)||di().EOL;La=La.replace(En,"").replace(Fn,"").replace(zi," $ 1");let Xa="";for(;Xa!==La;)Xa=La,La=La.replace(Mi, ` $ { Ea } $1 $2$ { Ea } ` );La=La.replace(ui,"").trimRight();let Fa=Object.create(null),Zo=La.replace(ea,"").replace(ui,"").trimRight(),Ui;for(;Ui=ea.exec(La);){let Ta=Ui[2].replace(Nn,"");typeof Fa[Ui[1]]=="string"||Array.isArray(Fa[Ui[1]])?Fa[Ui[1]]=ta.concat(Fa[Ui[1]],Ta):Fa[Ui[1]]=Ta}return{comments:Zo,pragmas:Fa}}function Ba(La){let{comments:Ea="",pragmas:Xa={}}=La,Fa=(0,vn().default)(Ea)||di().EOL,Zo="/**",Ui=" *",Ta=" */",Fi=Object.keys(Xa),aa=Fi.map(Gi=>la(Gi,Xa[Gi])).reduce((Gi,ra)=>Gi.concat(ra),[]).map(Gi=> ` $ { Ui } $ { Gi } $ { Fa } ` ).join("");if(!Ea){if(Fi.length===0)return"";if(Fi.length===1&&!Array.isArray(Xa[Fi[0]])){let Gi=Xa[Fi[0]];return ` $ { Zo } $ { la ( Fi [ 0 ] , Gi ) [ 0 ] } $ { Ta } ` }}let Un=Ea.split(Fa).map(Gi=> ` $ { Ui } $ { Gi } ` ).join(Fa)+Fa;return Zo+Fa+(Ea?Un:"")+(Ea&&Fi.length?Ui+Fa:"")+aa+Ta}function la(La,Ea){return ta.concat(Ea).map(Xa=> ` @ $ { La } $ { Xa } ` .trim())}}}),cl=Io({"src/language-js/utils/get-shebang.js"(Rn,di){kn();function vn(Vn){if(!Vn.startsWith("#!"))return"";let Fn=Vn.indexOf( `
` );return Fn===-1?Vn:Vn.slice(0,Fn)}di.exports=vn}}),ns=Io({"src/language-js/pragma.js"(Rn,di){kn();var{parseWithComments:vn,strip:Vn,extract:Fn,print:En}=Ls(),{normalizeEndOfLine:xn}=Uu(),Nn=cl();function ui(zi){let ta=Nn(zi);ta&&(zi=zi.slice(ta.length+1));let ki=Fn(zi),{pragmas:ji,comments:oa}=vn(ki);return{shebang:ta,text:zi,pragmas:ji,comments:oa}}function Mi(zi){let ta=Object.keys(ui(zi).pragmas);return ta.includes("prettier")||ta.includes("format")}function ea(zi){let{shebang:ta,text:ki,pragmas:ji,comments:oa}=ui(zi),Ra=Vn(ki),Ba=En({pragmas:Object.assign({format:""},ji),comments:oa.trimStart()});return(ta? ` $ { ta }
2024-08-21 13:12:53 +08:00
` :"")+xn(Ba)+(Ra.startsWith( `
` )? `
` : `
2024-08-24 19:24:09 +08:00
` )+Ra}di.exports={hasPragma:Mi,insertPragma:ea}}}),il=Io({"src/language-js/utils/is-type-cast-comment.js"(Rn,di){kn();var vn=Nd();function Vn(Fn){return vn(Fn)&&Fn.value[0]==="*"&&/@(?:type|satisfies) \b /.test(Fn.value)}di.exports=Vn}}),Es=Io({"src/language-js/comments.js"(Rn,di){kn();var{getLast:vn,hasNewline:Vn,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Fn,getNextNonSpaceNonCommentCharacter:En,hasNewlineInRange:xn,addLeadingComment:Nn,addTrailingComment:ui,addDanglingComment:Mi,getNextNonSpaceNonCommentCharacterIndex:ea,isNonEmptyArray:zi}=Gc(),{getFunctionParameters:ta,isPrettierIgnoreComment:ki,isJsxNode:ji,hasFlowShorthandAnnotationComment:oa,hasFlowAnnotationComment:Ra,hasIgnoreComment:Ba,isCallLikeExpression:la,getCallArguments:La,isCallExpression:Ea,isMemberExpression:Xa,isObjectProperty:Fa,isLineComment:Zo,getComments:Ui,CommentCheckFlags:Ta,markerForIfWithoutBlockAndSameLineComment:Fi}=Dd(),{locStart:aa,locEnd:Un}=Np(),Gi=Nd(),ra=il();function da(er){return[Qo,Ou,Bs,Mo,_s,bo,tl,jl,Ws,du,rc,ed,pl,Rs,fs].some(ir=>ir(er))}function va(er){return[Jo,Ou,Xo,rc,Mo,_s,bo,tl,Rs,Fs,Hs,du,lc,fs,ks].some(ir=>ir(er))}function Aa(er){return[Qo,Mo,_s,Oo,al,pl,du,dl,As,fl,fs,ol].some(ir=>ir(er))}function to(er,ir){let lr=(er.body||er.properties).find(dr=>{let{type: $ r}=dr;return $ r!=="EmptyStatement"});lr?Nn(lr,ir):Mi(er,ir)}function Bo(er,ir){er.type==="BlockStatement"?to(er,ir):Nn(er,ir)}function Jo(er){let{comment:ir,followingNode:lr}=er;return lr&&ra(ir)?(Nn(lr,ir),!0):!1}function Mo(er){let{comment:ir,precedingNode:lr,enclosingNode:dr,followingNode: $ r,text:Zr}=er;if((dr==null?void 0:dr.type)!=="IfStatement"||! $ r)return!1;if(En(Zr,ir,Un)===")")return ui(lr,ir),!0;if(lr===dr.consequent&& $ r===dr.alternate){if(lr.type==="BlockStatement")ui(lr,ir);else{let Hn=ir.type==="SingleLine"||ir.loc.start.line===ir.loc.end.line,mi=ir.loc.start.line===lr.loc.start.line;Hn&&mi?Mi(lr,ir,Fi):Mi(dr,ir)}return!0}return $ r.type==="BlockStatement"?(to( $ r,ir),!0): $ r.type==="IfStatement"?(Bo( $ r.consequent,ir),!0):dr.consequent=== $ r?(Nn( $ r,ir),!0):!1}function _s(er){let{comment:ir,precedingNode:lr,enclosingNode:dr,followingNode: $ r,text:Zr}=er;return(dr==null?void 0:dr.type)!=="WhileStatement"||! $ r?!1:En(Zr,ir,Un)===")"?(ui(lr,ir),!0): $ r.type==="BlockStatement"?(to( $ r,ir),!0):dr.body=== $ r?(Nn( $ r,ir),!0):!1}function bo(er){let{comment:ir,precedingNode:lr,enclosingNode:dr,followingNode: $ r}=er;return(dr==null?void 0:dr.type)!=="TryStatement"&&(dr==null?void 0:dr.type)!=="CatchClause"||! $ r?!1:dr.type==="CatchClause"&&lr?(ui(lr,ir),!0): $ r.type==="BlockStatement"?(to( $ r,ir),!0): $ r.type==="TryStatement"?(Bo( $ r.finalizer,ir),!0): $ r.type==="CatchClause"?(Bo( $ r.body,ir),!0):!1}function Bs(er){let{comment:ir,enclosingNode:lr,followingNode:dr}=er;return Xa(lr)&&(dr==null?void 0:dr.type)==="Identifier"?(Nn(lr,ir),!0):!1}function Xo(er){let{comment:ir,precedingNode:lr,enclosingNode:dr,followingNode: $ r,text:Zr}=er,Hn=lr&&!xn(Zr,Un(lr),aa(ir));return(!lr||!Hn)&&((dr==null?void 0:dr.type)==="ConditionalExpression"||(dr==null?void 0:dr.type)==="TSConditionalType")&& $ r?(Nn( $ r,ir),!0):!1}function Oo(er){let{comment:ir,precedingNode:lr,enclosingNode:dr}=er;return Fa(dr)&&dr.shorthand&&dr.key===lr&&dr.value.type==="AssignmentPattern"?(ui(dr.value.left,ir),!0):!1}var ys=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function tl(er){let{comment:ir,precedingNode:lr,enclosingNode:dr,followingNode: $ r}=er;if(ys.has(dr==null?void 0:dr.type)){if(zi(dr.decorators)&&!( $ r&& $ r.type==="Decorator"))return ui(vn(dr.decorators),ir),!0;if(dr.body&& $ r===dr.body)return to(dr.body,ir),!0;if( $ r){if(dr.superClass&& $ r===dr.superClass&&lr&&(lr===dr.id||lr===dr.typeParameters))return ui(lr,ir),!0;for(let Zr of["implements","extends","mixins"])if(dr[Zr]&& $ r===dr[Zr][0])return lr&&(lr===dr.id||lr===dr.typeParameters||lr===dr.superClass)?ui(lr,ir):Mi(dr,ir,Zr),!0}}return!1}var $ s=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclar
2024-08-21 13:12:53 +08:00
` )&&!du&&!Zo(Hs.attributes[0]))return ui(["<",Ws("name"),Ws("typeParameters")," ",...fs.map(Ws,"attributes"),Hs.selfClosing?" />":">"]);let jl=Hs.attributes&&Hs.attributes.some(ed=>ed.value&&Xa(ed.value)&&ed.value.value.includes( `
` )),rc=Fs.singleAttributePerLine&&Hs.attributes.length>1?xn:En;return ui(["<",Ws("name"),Ws("typeParameters"),Mi(fs.map(()=>[rc,Ws()],"attributes")),...Mo(Hs,Fs,du)],{shouldBreak:jl})}function Mo(fs,Fs,Ws){return fs.selfClosing?[En,"/>"]:_s(fs,Fs,Ws)?[">"]:[Nn,">"]}function _s(fs,Fs,Ws){let Hs=fs.attributes.length>0&&Zo(Ra(fs.attributes),Ui.Trailing);return fs.attributes.length===0&&!Ws||(Fs.bracketSameLine||Fs.jsxBracketSameLine)&&(!Ws||fs.attributes.length>0)&&!Hs}function bo(fs,Fs,Ws){let Hs=fs.getValue(),du=[];du.push("</");let jl=Ws("name");return Zo(Hs.name,Ui.Leading|Ui.Line)?du.push(Mi([xn,jl]),xn):Zo(Hs.name,Ui.Leading|Ui.Block)?du.push(" ",jl):du.push(jl),du.push(">"),du}function Bs(fs,Fs){let Ws=fs.getValue(),Hs=Zo(Ws),du=Zo(Ws,Ui.Line),jl=Ws.type==="JSXOpeningFragment";return[jl?"<":"</",Mi([du?xn:Hs&&!jl?" ":"",Vn(fs,Fs,!0)]),du?xn:"",">"]}function Xo(fs,Fs,Ws){let Hs=vn(fs,Gi(fs,Fs,Ws),Fs);return Aa(fs,Hs,Fs)}function Oo(fs,Fs){let Ws=fs.getValue(),Hs=Zo(Ws,Ui.Line);return[Vn(fs,Fs,!Hs),Hs?xn:""]}function ys(fs,Fs,Ws){let Hs=fs.getValue();return["{",fs.call(du=>{let jl=["...",Ws()],rc=du.getValue();return!Zo(rc)||!aa(du)?jl:[Mi([Nn,vn(du,jl,Fs)]),Nn]},Hs.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function tl(fs,Fs,Ws){let Hs=fs.getValue();if(Hs.type.startsWith("JSX"))switch(Hs.type){case"JSXAttribute":return to(fs,Fs,Ws);case"JSXIdentifier":return String(Hs.name);case"JSXNamespacedName":return ji(":",[Ws("namespace"),Ws("name")]);case"JSXMemberExpression":return ji(".",[Ws("object"),Ws("property")]);case"JSXSpreadAttribute":return ys(fs,Fs,Ws);case"JSXSpreadChild":return ys(fs,Fs,Ws);case"JSXExpressionContainer":return Bo(fs,Fs,Ws);case"JSXFragment":case"JSXElement":return Xo(fs,Fs,Ws);case"JSXOpeningElement":return Jo(fs,Fs,Ws);case"JSXClosingElement":return bo(fs,Fs,Ws);case"JSXOpeningFragment":case"JSXClosingFragment":return Bs(fs,Fs);case"JSXEmptyExpression":return Oo(fs,Fs);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Error( ` Unknown JSX node type : $ { JSON . stringify ( Hs . type ) } . ` )}}var $ s= `
2024-08-24 19:24:09 +08:00
\ r ` ,pl=new RegExp("(["+ $ s+"]+)"),Vo=new RegExp("[^"+ $ s+"]"),As=fs=>fs.replace(new RegExp("(?:^"+pl.source+"|"+pl.source+" $ )"),"");function dl(fs){if(fs.children.length===0)return!0;if(fs.children.length>1)return!1;let Fs=fs.children[0];return Fs.type==="JSXText"&&!al(Fs)}function al(fs){return fs.type==="JSXText"&&(Vo.test(La(fs))||!/ \n /.test(La(fs)))}function Ou(fs){return fs.type==="JSXExpressionContainer"&&Xa(fs.expression)&&fs.expression.value===" "&&!Zo(fs.expression)}function Rs(fs){let Fs=fs.getValue(),Ws=fs.getParentNode();if(!Ws||!Fs||!la(Fs)||!la(Ws))return!1;let Hs=Ws.children.indexOf(Fs),du=null;for(let jl=Hs;jl>0;jl--){let rc=Ws.children[jl-1];if(!(rc.type==="JSXText"&&!al(rc))){du=rc;break}}return du&&du.type==="JSXExpressionContainer"&&du.expression.type==="JSXEmptyExpression"&&Ta(du.expression)}di.exports={hasJsxIgnoreComment:Rs,printJsx:tl}}}),hl=Io({"src/language-js/print/misc.js"(Rn,di){kn();var{isNonEmptyArray:vn}=Gc(),{builders:{indent:Vn,join:Fn,line:En}}=yc(),{isFlowAnnotationComment:xn}=Dd();function Nn(Ra){let Ba=Ra.getValue();return!Ba.optional||Ba.type==="Identifier"&&Ba===Ra.getParentNode().key?"":Ba.type==="OptionalCallExpression"||Ba.type==="OptionalMemberExpression"&&Ba.computed?"?.":"?"}function ui(Ra){return Ra.getValue().definite||Ra.match(void 0,(Ba,la)=>la==="id"&&Ba.type==="VariableDeclarator"&&Ba.definite)?"!":""}function Mi(Ra,Ba,la){let La=Ra.getValue();return La.typeArguments?la("typeArguments"):La.typeParameters?la("typeParameters"):""}function ea(Ra,Ba,la){let La=Ra.getValue();if(!La.typeAnnotation)return"";let Ea=Ra.getParentNode(),Xa=Ea.type==="DeclareFunction"&&Ea.id===La;return xn(Ba.originalText,La.typeAnnotation)?[" /*: ",la("typeAnnotation")," */"]:[Xa?"":": ",la("typeAnnotation")]}function zi(Ra,Ba,la){return["::",la("callee")]}function ta(Ra,Ba,la){let La=Ra.getValue();return vn(La.modifiers)?[Fn(" ",Ra.map(la,"modifiers"))," "]:""}function ki(Ra,Ba,la){return Ra.type==="EmptyStatement"?";":Ra.type==="BlockStatement"||la?[" ",Ba]:Vn([En,Ba])}function ji(Ra,Ba,la){return["...",la("argument"),ea(Ra,Ba,la)]}function oa(Ra,Ba){let la=Ra.slice(1,-1);if(la.includes('"')||la.includes("'"))return Ra;let La=Ba.singleQuote?"'":'"';return La+la+La}di.exports={printOptionalToken:Nn,printDefiniteToken:ui,printFunctionTypeParameters:Mi,printBindExpressionCallee:zi,printTypeScriptModifiers:ta,printTypeAnnotation:ea,printRestSpread:ji,adjustClause:ki,printDirective:oa}}}),Kl=Io({"src/language-js/print/array.js"(Rn,di){kn();var{printDanglingComments:vn}=Ec(),{builders:{line:Vn,softline:Fn,hardline:En,group:xn,indent:Nn,ifBreak:ui,fill:Mi}}=yc(),{getLast:ea,hasNewline:zi}=Gc(),{shouldPrintComma:ta,hasComment:ki,CommentCheckFlags:ji,isNextLineEmpty:oa,isNumericLiteral:Ra,isSignedNumericLiteral:Ba}=Dd(),{locStart:la}=Np(),{printOptionalToken:La,printTypeAnnotation:Ea}=hl();function Xa(Ta,Fi,aa){let Un=Ta.getValue(),Gi=[],ra=Un.type==="TupleExpression"?"#[":"[",da="]";if(Un.elements.length===0)ki(Un,ji.Dangling)?Gi.push(xn([ra,vn(Ta,Fi),Fn,da])):Gi.push(ra,da);else{let va=ea(Un.elements),Aa=!(va&&va.type==="RestElement"),to=va===null,Bo=Symbol("array"),Jo=!Fi.__inJestEach&&Un.elements.length>1&&Un.elements.every((bo,Bs,Xo)=>{let Oo=bo&&bo.type;if(Oo!=="ArrayExpression"&&Oo!=="ObjectExpression")return!1;let ys=Xo[Bs+1];if(ys&&Oo!==ys.type)return!1;let tl=Oo==="ArrayExpression"?"elements":"properties";return bo[tl]&&bo[tl].length>1}),Mo=Fa(Un,Fi),_s=Aa?to?",":ta(Fi)?Mo?ui(",","",{groupId:Bo}):ui(","):"":"";Gi.push(xn([ra,Nn([Fn,Mo?Ui(Ta,Fi,aa,_s):[Zo(Ta,Fi,"elements",aa),_s],vn(Ta,Fi,!0)]),Fn,da],{shouldBreak:Jo,id:Bo}))}return Gi.push(La(Ta),Ea(Ta,Fi,aa)),Gi}function Fa(Ta,Fi){return Ta.elements.length>1&&Ta.elements.every(aa=>aa&&(Ra(aa)||Ba(aa)&&!ki(aa.argument))&&!ki(aa,ji.Trailing|ji.Line,Un=>!zi(Fi.originalText,la(Un),{backwards:!0})))}function Zo(Ta,Fi,aa,Un){let Gi=[],ra=[];return Ta.each(da=>{Gi.push(ra,xn(Un())),ra=[",",Vn],da.getValue()&&oa(da.getValue(),Fi)&&ra.push(Fn)},aa),Gi}function Ui(Ta,Fi,aa,Un){let Gi=[];return Ta.each((ra,da,va)=>{let Aa=da===va.length-1;Gi.push([aa(),A
` ):oa(Vo)}function tl(Vo,As,dl){return Zo(Vo)?(As=Mi(As),typeof As=="string"&&Vn(As)<dl.tabWidth+3):!1}function $ s(Vo,As){let dl=pl(Vo);if(vn(dl)){if(dl.length>1)return!0;if(dl.length===1){let Ou=dl[0];if(Ou.type==="TSUnionType"||Ou.type==="UnionTypeAnnotation"||Ou.type==="TSIntersectionType"||Ou.type==="IntersectionTypeAnnotation"||Ou.type==="TSTypeLiteral"||Ou.type==="ObjectTypeAnnotation")return!0}let al=Vo.typeParameters?"typeParameters":"typeArguments";if(ea(As(al)))return!0}return!1}function pl(Vo){return Vo.typeParameters&&Vo.typeParameters.params||Vo.typeArguments&&Vo.typeArguments.params}di.exports={printVariableDeclarator:Un,printAssignmentExpression:aa,printAssignment:Fi,isArrowFunctionVariableDeclarator:_s}}}),ec=Io({"src/language-js/print/function-parameters.js"(Rn,di){kn();var{getNextNonSpaceNonCommentCharacter:vn}=Gc(),{printDanglingComments:Vn}=Ec(),{builders:{line:Fn,hardline:En,softline:xn,group:Nn,indent:ui,ifBreak:Mi},utils:{removeLines:ea,willBreak:zi}}=yc(),{getFunctionParameters:ta,iterateFunctionParametersPath:ki,isSimpleType:ji,isTestCall:oa,isTypeAnnotationAFunction:Ra,isObjectType:Ba,isObjectTypePropertyAFunction:la,hasRestParameter:La,shouldPrintComma:Ea,hasComment:Xa,isNextLineEmpty:Fa}=Dd(),{locEnd:Zo}=Np(),{ArgExpansionBailout:Ui}=id(),{printFunctionTypeParameters:Ta}=hl();function Fi(ra,da,va,Aa,to){let Bo=ra.getValue(),Jo=ta(Bo),Mo=to?Ta(ra,va,da):"";if(Jo.length===0)return[Mo,"(",Vn(ra,va,!0,ys=>vn(va.originalText,ys,Zo)===")"),")"];let _s=ra.getParentNode(),bo=oa(_s),Bs=aa(Bo),Xo=[];if(ki(ra,(ys,tl)=>{let $ s=tl===Jo.length-1; $ s&&Bo.rest&&Xo.push("..."),Xo.push(da()),! $ s&&(Xo.push(","),bo||Bs?Xo.push(" "):Fa(Jo[tl],va)?Xo.push(En,En):Xo.push(Fn))}),Aa){if(zi(Mo)||zi(Xo))throw new Ui;return Nn([ea(Mo),"(",ea(Xo),")"])}let Oo=Jo.every(ys=>!ys.decorators);return Bs&&Oo?[Mo,"(",...Xo,")"]:bo?[Mo,"(",...Xo,")"]:(la(_s)||Ra(_s)||_s.type==="TypeAlias"||_s.type==="UnionTypeAnnotation"||_s.type==="TSUnionType"||_s.type==="IntersectionTypeAnnotation"||_s.type==="FunctionTypeAnnotation"&&_s.returnType===Bo)&&Jo.length===1&&Jo[0].name===null&&Bo.this!==Jo[0]&&Jo[0].typeAnnotation&&Bo.typeParameters===null&&ji(Jo[0].typeAnnotation)&&!Bo.rest?va.arrowParens==="always"?["(",...Xo,")"]:Xo:[Mo,"(",ui([xn,...Xo]),Mi(!La(Bo)&&Ea(va,"all")?",":""),xn,")"]}function aa(ra){if(!ra)return!1;let da=ta(ra);if(da.length!==1)return!1;let[va]=da;return!Xa(va)&&(va.type==="ObjectPattern"||va.type==="ArrayPattern"||va.type==="Identifier"&&va.typeAnnotation&&(va.typeAnnotation.type==="TypeAnnotation"||va.typeAnnotation.type==="TSTypeAnnotation")&&Ba(va.typeAnnotation.typeAnnotation)||va.type==="FunctionTypeParam"&&Ba(va.typeAnnotation)||va.type==="AssignmentPattern"&&(va.left.type==="ObjectPattern"||va.left.type==="ArrayPattern")&&(va.right.type==="Identifier"||va.right.type==="ObjectExpression"&&va.right.properties.length===0||va.right.type==="ArrayExpression"&&va.right.elements.length===0))}function Un(ra){let da;return ra.returnType?(da=ra.returnType,da.typeAnnotation&&(da=da.typeAnnotation)):ra.typeAnnotation&&(da=ra.typeAnnotation),da}function Gi(ra,da){let va=Un(ra);if(!va)return!1;let Aa=ra.typeParameters&&ra.typeParameters.params;if(Aa){if(Aa.length>1)return!1;if(Aa.length===1){let to=Aa[0];if(to.constraint||to.default)return!1}}return ta(ra).length===1&&(Ba(va)||zi(da))}di.exports={printFunctionParameters:Fi,shouldHugFunctionParameters:aa,shouldGroupFunctionParameters:Gi}}}),Ka=Io({"src/language-js/print/type-annotation.js"(Rn,di){kn();var{printComments:vn,printDanglingComments:Vn}=Ec(),{isNonEmptyArray:Fn}=Gc(),{builders:{group:En,join:xn,line:Nn,softline:ui,indent:Mi,align:ea,ifBreak:zi}}=yc(),ta=Ss(),{locStart:ki}=Np(),{isSimpleType:ji,isObjectType:oa,hasLeadingOwnLineComment:Ra,isObjectTypePropertyAFunction:Ba,shouldPrintComma:la}=Dd(),{printAssignment:La}=Qu(),{printFunctionParameters:Ea,shouldGroupFunctionParameters:Xa}=ec(),{printArrayItems:Fa}=Kl();function Zo(va){if(ji(va)||oa(va))return!0;if(va.type==="UnionTypeAnnotation"||va.type==="TSUnionType"){let Aa=va.types.filter(Bo=>Bo.type==="VoidTypeAnnot
2024-08-21 13:12:53 +08:00
` );return ji.length>1&&ji.every(oa=>oa.trim()[0]==="*")}function ta(ki){let ji=ki.value.split( `
2024-08-24 19:24:09 +08:00
` );return["/*",Vn(Fn,ji.map((oa,Ra)=>Ra===0?oa.trimEnd():" "+(Ra<ji.length-1?oa.trim():oa.trimStart()))),"*/"]}di.exports={printComment:ea}}}),Fp=Io({"src/language-js/print/literal.js"(Rn,di){kn();var{printString:vn,printNumber:Vn}=Gc(),{replaceTextEndOfLine:Fn}=Rp(),{printDirective:En}=hl();function xn(ea,zi){let ta=ea.getNode();switch(ta.type){case"RegExpLiteral":return Mi(ta);case"BigIntLiteral":return ui(ta.bigint||ta.extra.raw);case"NumericLiteral":return Vn(ta.extra.raw);case"StringLiteral":return Fn(vn(ta.extra.raw,zi));case"NullLiteral":return"null";case"BooleanLiteral":return String(ta.value);case"DecimalLiteral":return Vn(ta.value)+"m";case"Literal":{if(ta.regex)return Mi(ta.regex);if(ta.bigint)return ui(ta.raw);if(ta.decimal)return Vn(ta.decimal)+"m";let{value:ki}=ta;return typeof ki=="number"?Vn(ta.raw):typeof ki=="string"?Nn(ea)?En(ta.raw,zi):Fn(vn(ta.raw,zi)):String(ki)}}}function Nn(ea){if(ea.getName()!=="expression")return;let zi=ea.getParentNode();return zi.type==="ExpressionStatement"&&zi.directive}function ui(ea){return ea.toLowerCase()}function Mi(ea){let{pattern:zi,flags:ta}=ea;return ta=[...ta].sort().join(""), ` / $ { zi } / $ { ta } ` }di.exports={printLiteral:xn}}}),Ap=Io({"src/language-js/printer-estree.js"(Rn,di){kn();var{printDanglingComments:vn}=Ec(),{hasNewline:Vn}=Gc(),{builders:{join:Fn,line:En,hardline:xn,softline:Nn,group:ui,indent:Mi},utils:{replaceTextEndOfLine:ea}}=yc(),zi=jf(),ta=uh(),{insertPragma:ki}=ns(),ji=Es(),oa=Ss(),Ra=ws(),{hasFlowShorthandAnnotationComment:Ba,hasComment:la,CommentCheckFlags:La,isTheOnlyJsxElementInMarkdown:Ea,isLineComment:Xa,isNextLineEmpty:Fa,needsHardlineAfterDanglingComment:Zo,hasIgnoreComment:Ui,isCallExpression:Ta,isMemberExpression:Fi,markerForIfWithoutBlockAndSameLineComment:aa}=Dd(),{locStart:Un,locEnd:Gi}=Np(),ra=Nd(),{printHtmlBinding:da,isVueEventBindingExpression:va}=Ms(),{printAngular:Aa}=kl(),{printJsx:to,hasJsxIgnoreComment:Bo}=bu(),{printFlow:Jo}=wu(),{printTypescript:Mo}=Cc(),{printOptionalToken:_s,printBindExpressionCallee:bo,printTypeAnnotation:Bs,adjustClause:Xo,printRestSpread:Oo,printDefiniteToken:ys,printDirective:tl}=hl(),{printImportDeclaration: $ s,printExportDeclaration:pl,printExportAllDeclaration:Vo,printModuleSpecifier:As}=_l(),{printTernary:dl}=Rc(),{printTemplateLiteral:al}=Wp(),{printArray:Ou}=Kl(),{printObject:Rs}=Ml(),{printClass:fs,printClassMethod:Fs,printClassProperty:Ws}=Ru(),{printProperty:Hs}=bc(),{printFunction:du,printArrowFunction:jl,printMethod:rc,printReturnStatement:ed,printThrowStatement:Uc}=Tu(),{printCallExpression:fc}=Su(),{printVariableDeclarator:lc,printAssignmentExpression:ol}=Qu(),{printBinaryishExpression:Qo}=bl(),{printSwitchCaseConsequent:fl}=Lc(),{printMemberExpression:ks}=Cu(),{printBlock:ul,printBlockBody:Hu}=Od(),{printComment: $ e}=Zd(),{printLiteral:er}=Fp(),{printDecorators:ir}= $ l();function lr(Zr,Hn,mi,ma){let io=dr(Zr,Hn,mi,ma);if(!io)return"";let ms=Zr.getValue(),{type:gs}=ms;if(gs==="ClassMethod"||gs==="ClassPrivateMethod"||gs==="ClassProperty"||gs==="ClassAccessorProperty"||gs==="AccessorProperty"||gs==="TSAbstractAccessorProperty"||gs==="PropertyDefinition"||gs==="TSAbstractPropertyDefinition"||gs==="ClassPrivateProperty"||gs==="MethodDefinition"||gs==="TSAbstractMethodDefinition"||gs==="TSDeclareMethod")return io;let Cs=[io],Js=ir(Zr,Hn,mi),Hl=ms.type==="ClassExpression"&&Js;if(Js&&(Cs=[...Js,io],!Hl))return ui(Cs);if(!oa(Zr,Hn))return ma&&ma.needsSemi&&Cs.unshift(";"),Cs.length===1&&Cs[0]===io?io:Cs;if(Hl&&(Cs=[Mi([En,...Cs])]),Cs.unshift("("),ma&&ma.needsSemi&&Cs.unshift(";"),Ba(ms)){let[sl]=ms.trailingComments;Cs.push(" /*",sl.value.trimStart(),"*/"),sl.printed=!0}return Hl&&Cs.push(En),Cs.push(")"),Cs}function dr(Zr,Hn,mi,ma){let io=Zr.getValue(),ms=Hn.semi?";":"";if(!io)return"";if(typeof io=="string")return io;for(let Cs of[er,da,Aa,to,Jo,Mo]){let Js=Cs(Zr,Hn,mi);if(typeof Js<"u")return Js}let gs=[];switch(io.type){case"JsExpressionRoot":return mi("node");case"JsonRoot":return[mi("node"),xn];case"File":return io.program&&io.program.interpreter&&gs.push(mi(["program","interpreter"])),gs.push(mi("p
2024-08-21 13:12:53 +08:00
2024-08-24 19:24:09 +08:00
` :"")+vn.insertPragma(ui)}di.exports={hasPragma:Fn,insertPragma:En}}}),Wm=Io({"src/language-css/utils/index.js"(Rn,di){kn();var vn=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function Vn(Rs,fs){let Fs=Array.isArray(fs)?fs:[fs],Ws=-1,Hs;for(;Hs=Rs.getParentNode(++Ws);)if(Fs.includes(Hs.type))return Ws;return-1}function Fn(Rs,fs){let Fs=Vn(Rs,fs);return Fs===-1?null:Rs.getParentNode(Fs)}function En(Rs){var fs;let Fs=Fn(Rs,"css-decl");return Fs==null||(fs=Fs.prop)===null||fs===void 0?void 0:fs.toLowerCase()}var xn=new Set(["initial","inherit","unset","revert"]);function Nn(Rs){return xn.has(Rs.toLowerCase())}function ui(Rs,fs){let Fs=Fn(Rs,"css-atrule");return(Fs==null?void 0:Fs.name)&&Fs.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(fs.toLowerCase())}function Mi(Rs){return Rs.includes(" $ ")||Rs.includes("@")||Rs.includes("#")||Rs.startsWith("%")||Rs.startsWith("--")||Rs.startsWith(":--")||Rs.includes("(")&&Rs.includes(")")?Rs:Rs.toLowerCase()}function ea(Rs,fs){var Fs;let Ws=Fn(Rs,"value-func");return(Ws==null||(Fs=Ws.value)===null||Fs===void 0?void 0:Fs.toLowerCase())===fs}function zi(Rs){var fs;let Fs=Fn(Rs,"css-rule"),Ws=Fs==null||(fs=Fs.raws)===null||fs===void 0?void 0:fs.selector;return Ws&&(Ws.startsWith(":import")||Ws.startsWith(":export"))}function ta(Rs,fs){let Fs=Array.isArray(fs)?fs:[fs],Ws=Fn(Rs,"css-atrule");return Ws&&Fs.includes(Ws.name.toLowerCase())}function ki(Rs){let fs=Rs.getValue(),Fs=Fn(Rs,"css-atrule");return(Fs==null?void 0:Fs.name)==="import"&&fs.groups[0].value==="url"&&fs.groups.length===2}function ji(Rs){return Rs.type==="value-func"&&Rs.value.toLowerCase()==="url"}function oa(Rs,fs){var Fs;let Ws=(Fs=Rs.getParentNode())===null||Fs===void 0?void 0:Fs.nodes;return Ws&&Ws.indexOf(fs)===Ws.length-1}function Ra(Rs){let{selector:fs}=Rs;return fs?typeof fs=="string"&&/^@.+:.* $ /.test(fs)||fs.value&&/^@.+:.* $ /.test(fs.value):!1}function Ba(Rs){return Rs.type==="value-word"&&["from","through","end"].includes(Rs.value)}function la(Rs){return Rs.type==="value-word"&&["and","or","not"].includes(Rs.value)}function La(Rs){return Rs.type==="value-word"&&Rs.value==="in"}function Ea(Rs){return Rs.type==="value-operator"&&Rs.value==="*"}function Xa(Rs){return Rs.type==="value-operator"&&Rs.value==="/"}function Fa(Rs){return Rs.type==="value-operator"&&Rs.value==="+"}function Zo(Rs){return Rs.type==="value-operator"&&Rs.value==="-"}function Ui(Rs){return Rs.type==="value-operator"&&Rs.value==="%"}function Ta(Rs){return Ea(Rs)||Xa(Rs)||Fa(Rs)||Zo(Rs)||Ui(Rs)}function Fi(Rs){return Rs.type==="value-word"&&["==","!="].includes(Rs.value)}function aa(Rs){return Rs.type==="value-word"&&["<",">","<=",">="].includes(Rs.value)}function Un(Rs){return Rs.type==="css-atrule"&&["if","else","for","each","while"].includes(Rs.name)}function Gi(Rs){var fs;return((fs=Rs.raws)===null||fs===void 0?void 0:fs.params)&&/^ \( \s * \) $ /.test(Rs.raws.params)}function ra(Rs){return Rs.name.startsWith("prettier-placeholder")}function da(Rs){return Rs.prop.startsWith("@prettier-placeholder")}function va(Rs,fs){return Rs.value===" $ $ "&&Rs.type==="value-func"&&(fs==null?void 0:fs.type)==="value-word"&&!fs.raws.before}function Aa(Rs){var fs,Fs;return((fs=Rs.value)===null||fs===void 0?void 0:fs.type)==="value-root"&&((Fs=Rs.value.group)===null||Fs===void 0?void 0:Fs.type)==="value-value"&&Rs.prop.toLowerCase()==="composes"}function to(Rs){var fs,Fs,Ws;return((fs=Rs.value)===null||fs===void 0||(Fs=fs.group)===null||Fs===void 0||(Ws=Fs.group)===null||Ws===void 0?void 0:Ws.type)==="value-paren_group"&&Rs.value.group.group.open!==null&&Rs.value.group.group.close!==null}function Bo(Rs){var fs;return((fs=Rs.raws)===null||fs===void 0?void 0:fs.before)===""}function Jo(Rs){var fs,Fs;return Rs.type==="value-comma_group"&&((fs=Rs.groups)===null||fs===void 0||(Fs=fs[1])===null||Fs===void 0?void 0:Fs.type)==="value-colon"}function Mo(Rs){var fs;return Rs.type==="value-paren_group"&&((fs=Rs.groups)
` ,Fn)+1;return Fn+vn.column}}}),Em=Io({"src/language-css/loc.js"(Rn,di){kn();var{skipEverythingButNewLine:vn}=xm(),Vn=Ac(),Fn=tf();function En(ki,ji){return typeof ki.sourceIndex=="number"?ki.sourceIndex:ki.source?Fn(ki.source.start,ji)-1:null}function xn(ki,ji){if(ki.type==="css-comment"&&ki.inline)return vn(ji,ki.source.startOffset);let oa=ki.nodes&&Vn(ki.nodes);return oa&&ki.source&&!ki.source.end&&(ki=oa),ki.source&&ki.source.end?Fn(ki.source.end,ji):null}function Nn(ki,ji){ki.source&&(ki.source.startOffset=En(ki,ji),ki.source.endOffset=xn(ki,ji));for(let oa in ki){let Ra=ki[oa];oa==="source"||!Ra||typeof Ra!="object"||(Ra.type==="value-root"||Ra.type==="value-unknown"?ui(Ra,Mi(ki),Ra.text||Ra.value):Nn(Ra,ji))}}function ui(ki,ji,oa){ki.source&&(ki.source.startOffset=En(ki,oa)+ji,ki.source.endOffset=xn(ki,oa)+ji);for(let Ra in ki){let Ba=ki[Ra];Ra==="source"||!Ba||typeof Ba!="object"||ui(Ba,ji,oa)}}function Mi(ki){let ji=ki.source.startOffset;return typeof ki.prop=="string"&&(ji+=ki.prop.length),ki.type==="css-atrule"&&typeof ki.name=="string"&&(ji+=1+ki.name.length+ki.raws.afterName.match(/^ \s *:? \s */)[0].length),ki.type!=="css-atrule"&&ki.raws&&typeof ki.raws.between=="string"&&(ji+=ki.raws.between.length),ji}function ea(ki){let ji="initial",oa="initial",Ra,Ba=!1,la=[];for(let La=0;La<ki.length;La++){let Ea=ki[La];switch(ji){case"initial":if(Ea==="'"){ji="single-quotes";continue}if(Ea==='"'){ji="double-quotes";continue}if((Ea==="u"||Ea==="U")&&ki.slice(La,La+4).toLowerCase()==="url("){ji="url",La+=3;continue}if(Ea==="*"&&ki[La-1]==="/"){ji="comment-block";continue}if(Ea==="/"&&ki[La-1]==="/"){ji="comment-inline",Ra=La-1;continue}continue;case"single-quotes":if(Ea==="'"&&ki[La-1]!==" \\ "&&(ji=oa,oa="initial"),Ea=== `
2024-08-21 13:12:53 +08:00
` ||Ea===" \r ")return ki;continue;case"double-quotes":if(Ea==='"'&&ki[La-1]!==" \\ "&&(ji=oa,oa="initial"),Ea=== `
` ||Ea===" \r ")return ki;continue;case"url":if(Ea===")"&&(ji="initial"),Ea=== `
` ||Ea===" \r ")return ki;if(Ea==="'"){ji="single-quotes",oa="url";continue}if(Ea==='"'){ji="double-quotes",oa="url";continue}continue;case"comment-block":Ea==="/"&&ki[La-1]==="*"&&(ji="initial");continue;case"comment-inline":(Ea==='"'||Ea==="'"||Ea==="*")&&(Ba=!0),(Ea=== `
2024-08-24 19:24:09 +08:00
` ||Ea===" \r ")&&(Ba&&la.push([Ra,La]),ji="initial",Ba=!1);continue}}for(let[La,Ea]of la)ki=ki.slice(0,La)+ki.slice(La,Ea).replace(/["'*]/g," ")+ki.slice(Ea);return ki}function zi(ki){return ki.source.startOffset}function ta(ki){return ki.source.endOffset}di.exports={locStart:zi,locEnd:ta,calculateLoc:Nn,replaceQuotesInInlineComments:ea}}}),Sm=Io({"src/language-css/utils/is-less-parser.js"(Rn,di){kn();function vn(Vn){return Vn.parser==="css"||Vn.parser==="less"}di.exports=vn}}),Mp=Io({"src/language-css/utils/is-scss.js"(Rn,di){kn();function vn(Vn,Fn){return Vn==="less"||Vn==="scss"?Vn==="scss":/(?: \w \s *: \s *[^:}]+|#){|@import[^ \n ]+(?:url|,)/.test(Fn)}di.exports=vn}}),rf=Io({"src/language-css/utils/css-units.evaluate.js"(Rn,di){di.exports={em:"em",rem:"rem",ex:"ex",rex:"rex",cap:"cap",rcap:"rcap",ch:"ch",rch:"rch",ic:"ic",ric:"ric",lh:"lh",rlh:"rlh",vw:"vw",svw:"svw",lvw:"lvw",dvw:"dvw",vh:"vh",svh:"svh",lvh:"lvh",dvh:"dvh",vi:"vi",svi:"svi",lvi:"lvi",dvi:"dvi",vb:"vb",svb:"svb",lvb:"lvb",dvb:"dvb",vmin:"vmin",svmin:"svmin",lvmin:"lvmin",dvmin:"dvmin",vmax:"vmax",svmax:"svmax",lvmax:"lvmax",dvmax:"dvmax",cm:"cm",mm:"mm",q:"Q",in:"in",pt:"pt",pc:"pc",px:"px",deg:"deg",grad:"grad",rad:"rad",turn:"turn",s:"s",ms:"ms",hz:"Hz",khz:"kHz",dpi:"dpi",dpcm:"dpcm",dppx:"dppx",x:"x"}}}),Yf=Io({"src/language-css/utils/print-unit.js"(Rn,di){kn();var vn=rf();function Vn(Fn){let En=Fn.toLowerCase();return Object.prototype.hasOwnProperty.call(vn,En)?vn[En]:Fn}di.exports=Vn}}),im=Io({"src/language-css/printer-postcss.js"(Rn,di){kn();var vn=Ac(),{printNumber:Vn,printString:Fn,hasNewline:En,isFrontMatterNode:xn,isNextLineEmpty:Nn,isNonEmptyArray:ui}=Gc(),{builders:{join:Mi,line:ea,hardline:zi,softline:ta,group:ki,fill:ji,indent:oa,dedent:Ra,ifBreak:Ba,breakParent:la},utils:{removeLines:La,getDocParts:Ea}}=yc(),Xa=Fd(),Fa=Ud(),{insertPragma:Zo}=Ff(),{getAncestorNode:Ui,getPropOfDeclNode:Ta,maybeToLowerCase:Fi,insideValueFunctionNode:aa,insideICSSRuleNode:Un,insideAtRuleNode:Gi,insideURLFunctionInImportAtRuleNode:ra,isKeyframeAtRuleKeywords:da,isWideKeywords:va,isLastNode:Aa,isSCSSControlDirectiveNode:to,isDetachedRulesetDeclarationNode:Bo,isRelationalOperatorNode:Jo,isEqualityOperatorNode:Mo,isMultiplicationNode:_s,isDivisionNode:bo,isAdditionNode:Bs,isSubtractionNode:Xo,isMathOperatorNode:Oo,isEachKeywordNode:ys,isForKeywordNode:tl,isURLFunctionNode: $ s,isIfElseKeywordNode:pl,hasComposesNode:Vo,hasParensAroundNode:As,hasEmptyRawBefore:dl,isKeyValuePairNode:al,isKeyInValuePairNode:Ou,isDetachedRulesetCallNode:Rs,isTemplatePlaceholderNode:fs,isTemplatePropNode:Fs,isPostcssSimpleVarNode:Ws,isSCSSMapItemNode:Hs,isInlineValueCommentNode:du,isHashNode:jl,isLeftCurlyBraceNode:rc,isRightCurlyBraceNode:ed,isWordNode:Uc,isColonNode:fc,isMediaAndSupportsKeywords:lc,isColorAdjusterFuncNode:ol,lastLineHasInlineComment:Qo,isAtWordPlaceholderNode:fl,isConfigurationNode:ks,isParenGroupNode:ul}=Wm(),{locStart:Hu,locEnd: $ e}=Em(),er=Sm(),ir=Mp(),lr=Yf();function dr(sl){return sl.trailingComma==="es5"||sl.trailingComma==="all"}function $ r(sl,pu,gu){let vs=sl.getValue();if(!vs)return"";if(typeof vs=="string")return vs;switch(vs.type){case"front-matter":return[vs.raw,zi];case"css-root":{let $ u=Zr(sl,pu,gu),dc=vs.raws.after.trim();return dc.startsWith(";")&&(dc=dc.slice(1).trim()),[ $ u,dc? ` $ { dc } ` :"",Ea( $ u).length>0?zi:""]}case"css-comment":{let $ u=vs.inline||vs.raws.inline,dc=pu.originalText.slice(Hu(vs), $ e(vs));return $ u?dc.trimEnd():dc}case"css-rule":return[gu("selector"),vs.important?" !important":"",vs.nodes?[vs.selector&&vs.selector.type==="selector-unknown"&&Qo(vs.selector.value)?ea:" ","{",vs.nodes.length>0?oa([zi,Zr(sl,pu,gu)]):"",zi,"}",Bo(vs)?";":""]:";"];case"css-decl":{let $ u=sl.getParentNode(),{between:dc}=vs.raws,zc=dc.trim(),Vd=zc===":",co=Vo(vs)?La(gu("value")):gu("value");return!Vd&&Qo(zc)&&(co=oa([zi,Ra(co)])),[vs.raws.before.replace(/[ \s ;]/g,""), $ u.type==="css-atrule"&& $ u.variable||Un(sl)?vs.prop:Fi(vs.prop),zc.startsWith("//")?" ":"",zc,vs.extend?"":" ",er(pu)&&vs.extend&&vs.selector?["extend(",gu("selector"),")"]:"",co,vs.raws.important?vs.raws.i
` ).length-1}function Ws(Qo){Qo=typeof Qo=="string"?Qo:"";let fl=(Qo.match(/^([^ \S \n \r ]*[ \n \r ])+/g)||[])[0]||"";return Fs(fl)}function Hs(Qo){Qo=typeof Qo=="string"?Qo:"";let fl=(Qo.match(/([ \n \r ][^ \S \n \r ]*)+ $ /g)||[])[0]||"";return Fs(fl)}function du(){let Qo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return Array.from({length:Math.min(Qo,Un)}).fill(En)}function jl(Qo,fl){let{quote:ks,regex:ul}=ki(Qo,fl);return[ks,Qo.replace(ul, ` \ \ $ { ks } ` ),ks]}function rc(Qo){let fl=0,ks=Qo.getParentNode(fl);for(;ks&&Zo(ks,["SubExpression"]);)fl++,ks=Qo.getParentNode(fl);return!!(ks&&Zo(Qo.getParentNode(fl+1),["ConcatStatement"])&&Zo(Qo.getParentNode(fl+2),["AttrNode"]))}function ed(Qo,fl){let ks=fc(Qo,fl),ul=lc(Qo,fl);return ul?Nn([ks,Mi,Fn(ul)]):ks}function Uc(Qo,fl){let ks=fc(Qo,fl),ul=lc(Qo,fl);return ul?[Nn([ks,Mi,ul]),ea]:ks}function fc(Qo,fl){return fl("path")}function lc(Qo,fl){let ks=Qo.getValue(),ul=[];if(ks.params.length>0){let Hu=Qo.map(fl,"params");ul.push(...Hu)}if(ks.hash&&ks.hash.pairs.length>0){let Hu=fl("hash");ul.push(Hu)}return ul.length===0?"":ui(Mi,ul)}function ol(Qo){return["as |",Qo.blockParams.join(" "),"|"]}di.exports={print:Gi,massageAstNode:Ba}}}),_o=Io({"src/language-handlebars/parsers.js"(){kn()}}),ro=Io({"node_modules/linguist-languages/data/Handlebars.json"(Rn,di){di.exports={name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155}}}),vo=Io({"src/language-handlebars/index.js"(Rn,di){kn();var vn=Lf(),Vn=Ha(),Fn=_o(),En=[vn(ro(),()=>({since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}))],xn={glimmer:Vn};di.exports={languages:En,printers:xn,parsers:Fn}}}),za=Io({"src/language-graphql/pragma.js"(Rn,di){kn();function vn(Fn){return/^ \s *#[^ \S \n ]*@(?:format|prettier) \s *(?: \n | $ )/.test(Fn)}function Vn(Fn){return ` # @ format
2024-08-21 13:12:53 +08:00
2024-08-24 19:24:09 +08:00
` +Fn}di.exports={hasPragma:vn,insertPragma:Vn}}}),fo=Io({"src/language-graphql/loc.js"(Rn,di){kn();function vn(Fn){return typeof Fn.start=="number"?Fn.start:Fn.loc&&Fn.loc.start}function Vn(Fn){return typeof Fn.end=="number"?Fn.end:Fn.loc&&Fn.loc.end}di.exports={locStart:vn,locEnd:Vn}}}),zn=Io({"src/language-graphql/printer-graphql.js"(Rn,di){kn();var{builders:{join:vn,hardline:Vn,line:Fn,softline:En,group:xn,indent:Nn,ifBreak:ui}}=yc(),{isNextLineEmpty:Mi,isNonEmptyArray:ea}=Gc(),{insertPragma:zi}=za(),{locStart:ta,locEnd:ki}=fo();function ji(Fa,Zo,Ui){let Ta=Fa.getValue();if(!Ta)return"";if(typeof Ta=="string")return Ta;switch(Ta.kind){case"Document":{let Fi=[];return Fa.each((aa,Un,Gi)=>{Fi.push(Ui()),Un!==Gi.length-1&&(Fi.push(Vn),Mi(Zo.originalText,aa.getValue(),ki)&&Fi.push(Vn))},"definitions"),[...Fi,Vn]}case"OperationDefinition":{let Fi=Zo.originalText[ta(Ta)]!=="{",aa=!!Ta.name;return[Fi?Ta.operation:"",Fi&&aa?[" ",Ui("name")]:"",Fi&&!aa&&ea(Ta.variableDefinitions)?" ":"",ea(Ta.variableDefinitions)?xn(["(",Nn([En,vn([ui("",", "),En],Fa.map(Ui,"variableDefinitions"))]),En,")"]):"",oa(Fa,Ui,Ta),Ta.selectionSet?!Fi&&!aa?"":" ":"",Ui("selectionSet")]}case"FragmentDefinition":return["fragment ",Ui("name"),ea(Ta.variableDefinitions)?xn(["(",Nn([En,vn([ui("",", "),En],Fa.map(Ui,"variableDefinitions"))]),En,")"]):""," on ",Ui("typeCondition"),oa(Fa,Ui,Ta)," ",Ui("selectionSet")];case"SelectionSet":return["{",Nn([Vn,vn(Vn,Ra(Fa,Zo,Ui,"selections"))]),Vn,"}"];case"Field":return xn([Ta.alias?[Ui("alias"),": "]:"",Ui("name"),Ta.arguments.length>0?xn(["(",Nn([En,vn([ui("",", "),En],Ra(Fa,Zo,Ui,"arguments"))]),En,")"]):"",oa(Fa,Ui,Ta),Ta.selectionSet?" ":"",Ui("selectionSet")]);case"Name":return Ta.value;case"StringValue":{if(Ta.block){let Fi=Ta.value.replace(/"""/g," \\ $ &").split( `
2024-08-21 13:12:53 +08:00
` );return Fi.length===1&&(Fi[0]=Fi[0].trim()),Fi.every(aa=>aa==="")&&(Fi.length=0),vn(Vn,['"""',...Fi,'"""'])}return['"',Ta.value.replace(/[" \\ ]/g," \\ $ &").replace(/ \n /g," \\ n"),'"']}case"IntValue":case"FloatValue":case"EnumValue":return Ta.value;case"BooleanValue":return Ta.value?"true":"false";case"NullValue":return"null";case"Variable":return[" $ ",Ui("name")];case"ListValue":return xn(["[",Nn([En,vn([ui("",", "),En],Fa.map(Ui,"values"))]),En,"]"]);case"ObjectValue":return xn(["{",Zo.bracketSpacing&&Ta.fields.length>0?" ":"",Nn([En,vn([ui("",", "),En],Fa.map(Ui,"fields"))]),En,ui("",Zo.bracketSpacing&&Ta.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[Ui("name"),": ",Ui("value")];case"Directive":return["@",Ui("name"),Ta.arguments.length>0?xn(["(",Nn([En,vn([ui("",", "),En],Ra(Fa,Zo,Ui,"arguments"))]),En,")"]):""];case"NamedType":return Ui("name");case"VariableDefinition":return[Ui("variable"),": ",Ui("type"),Ta.defaultValue?[" = ",Ui("defaultValue")]:"",oa(Fa,Ui,Ta)];case"ObjectTypeExtension":case"ObjectTypeDefinition":return[Ui("description"),Ta.description?Vn:"",Ta.kind==="ObjectTypeExtension"?"extend ":"","type ",Ui("name"),Ta.interfaces.length>0?[" implements ",...La(Fa,Zo,Ui)]:"",oa(Fa,Ui,Ta),Ta.fields.length>0?[" {",Nn([Vn,vn(Vn,Ra(Fa,Zo,Ui,"fields"))]),Vn,"}"]:""];case"FieldDefinition":return[Ui("description"),Ta.description?Vn:"",Ui("name"),Ta.arguments.length>0?xn(["(",Nn([En,vn([ui("",", "),En],Ra(Fa,Zo,Ui,"arguments"))]),En,")"]):"",": ",Ui("type"),oa(Fa,Ui,Ta)];case"DirectiveDefinition":return[Ui("description"),Ta.description?Vn:"","directive ","@",Ui("name"),Ta.arguments.length>0?xn(["(",Nn([En,vn([ui("",", "),En],Ra(Fa,Zo,Ui,"arguments"))]),En,")"]):"",Ta.repeatable?" repeatable":""," on ",vn(" | ",Fa.map(Ui,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[Ui("description"),Ta.description?Vn:"",Ta.kind==="EnumTypeExtension"?"extend ":"","enum ",Ui("name"),oa(Fa,Ui,Ta),Ta.values.length>0?[" {",Nn([Vn,vn(Vn,Ra(Fa,Zo,Ui,"values"))]),Vn,"}"]:""];case"EnumValueDefinition":return[Ui("description"),Ta.description?Vn:"",Ui("name"),oa(Fa,Ui,Ta)];case"InputValueDefinition":return[Ui("description"),Ta.description?Ta.description.block?Vn:Fn:"",Ui("name"),": ",Ui("type"),Ta.defaultValue?[" = ",Ui("defaultValue")]:"",oa(Fa,Ui,Ta)];case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return[Ui("description"),Ta.description?Vn:"",Ta.kind==="InputObjectTypeExtension"?"extend ":"","input ",Ui("name"),oa(Fa,Ui,Ta),Ta.fields.length>0?[" {",Nn([Vn,vn(Vn,Ra(Fa,Zo,Ui,"fields"))]),Vn,"}"]:""];case"SchemaExtension":return["extend schema",oa(Fa,Ui,Ta),...Ta.operationTypes.length>0?[" {",Nn([Vn,vn(Vn,Ra(Fa,Zo,Ui,"operationTypes"))]),Vn,"}"]:[]];case"SchemaDefinition":return[Ui("description"),Ta.description?Vn:"","schema",oa(Fa,Ui,Ta)," {",Ta.operationTypes.length>0?Nn([Vn,vn(Vn,Ra(Fa,Zo,Ui,"operationTypes"))]):"",Vn,"}"];case"OperationTypeDefinition":return[Ui("operation"),": ",Ui("type")];case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return[Ui("description"),Ta.description?Vn:"",Ta.kind==="InterfaceTypeExtension"?"extend ":"","interface ",Ui("name"),Ta.interfaces.length>0?[" implements ",...La(Fa,Zo,Ui)]:"",oa(Fa,Ui,Ta),Ta.fields.length>0?[" {",Nn([Vn,vn(Vn,Ra(Fa,Zo,Ui,"fields"))]),Vn,"}"]:""];case"FragmentSpread":return["...",Ui("name"),oa(Fa,Ui,Ta)];case"InlineFragment":return["...",Ta.typeCondition?[" on ",Ui("typeCondition")]:"",oa(Fa,Ui,Ta)," ",Ui("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return xn([Ui("description"),Ta.description?Vn:"",xn([Ta.kind==="UnionTypeExtension"?"extend ":"","union ",Ui("name"),oa(Fa,Ui,Ta),Ta.types.length>0?[" =",ui(""," "),Nn([ui([Fn," "]),vn([Fn,"| "],Fa.map(Ui,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[Ui("description"),Ta.description?Vn:"",Ta.kind==="ScalarTypeExtension"?"extend ":"","scalar ",Ui("name"),oa(Fa,Ui,Ta)];case"NonNullType":return[Ui("type"),"!"];case"ListType":return["[",Ui("type"),"]"];default:throw new Error("unknown graphql type: "+JSON.stringify(Ta.ki
2024-08-24 19:24:09 +08:00
` )&&(Zo.value=Zo.value.trim())}Ea.ignoredProperties=new Set(["loc","comments"]);function Xa(Fa){var Zo;let Ui=Fa.getValue();return Ui==null||(Zo=Ui.comments)===null||Zo===void 0?void 0:Zo.some(Ta=>Ta.value.trim()==="prettier-ignore")}di.exports={print:ji,massageAstNode:Ea,hasPrettierIgnore:Xa,insertPragma:zi,printComment:la,canAttachComment:Ba}}}),Sn=Io({"src/language-graphql/options.js"(Rn,di){kn();var vn=Kc();di.exports={bracketSpacing:vn.bracketSpacing}}}),ka=Io({"src/language-graphql/parsers.js"(){kn()}}),fa=Io({"node_modules/linguist-languages/data/GraphQL.json"(Rn,di){di.exports={name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",languageId:139}}}),ko=Io({"src/language-graphql/index.js"(Rn,di){kn();var vn=Lf(),Vn=zn(),Fn=Sn(),En=ka(),xn=[vn(fa(),()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}))],Nn={graphql:Vn};di.exports={languages:xn,options:Fn,printers:Nn,parsers:En}}}),xo=Io({"node_modules/collapse-white-space/index.js"(Rn,di){kn(),di.exports=vn;function vn(Vn){return String(Vn).replace(/ \s +/g," ")}}}),ss=Io({"src/language-markdown/loc.js"(Rn,di){kn();function vn(Fn){return Fn.position.start.offset}function Vn(Fn){return Fn.position.end.offset}di.exports={locStart:vn,locEnd:Vn}}}),as=Io({"src/language-markdown/constants.evaluate.js"(Rn,di){di.exports={cjkPattern:"(?:[ \\ u02ea- \\ u02eb \\ u1100- \\ u11ff \\ u2e80- \\ u2e99 \\ u2e9b- \\ u2ef3 \\ u2f00- \\ u2fd5 \\ u2ff0- \\ u303f \\ u3041- \\ u3096 \\ u3099- \\ u309f \\ u30a1- \\ u30fa \\ u30fc- \\ u30ff \\ u3105- \\ u312f \\ u3131- \\ u318e \\ u3190- \\ u3191 \\ u3196- \\ u31ba \\ u31c0- \\ u31e3 \\ u31f0- \\ u321e \\ u322a- \\ u3247 \\ u3260- \\ u327e \\ u328a- \\ u32b0 \\ u32c0- \\ u32cb \\ u32d0- \\ u3370 \\ u337b- \\ u337f \\ u33e0- \\ u33fe \\ u3400- \\ u4db5 \\ u4e00- \\ u9fef \\ ua960- \\ ua97c \\ uac00- \\ ud7a3 \\ ud7b0- \\ ud7c6 \\ ud7cb- \\ ud7fb \\ uf900- \\ ufa6d \\ ufa70- \\ ufad9 \\ ufe10- \\ ufe1f \\ ufe30- \\ ufe6f \\ uff00- \\ uffef]|[ \\ ud840- \\ ud868 \\ ud86a- \\ ud86c \\ ud86f- \\ ud872 \\ ud874- \\ ud879][ \\ udc00- \\ udfff]| \\ ud82c[ \\ udc00- \\ udd1e \\ udd50- \\ udd52 \\ udd64- \\ udd67]| \\ ud83c[ \\ ude00 \\ ude50- \\ ude51]| \\ ud869[ \\ udc00- \\ uded6 \\ udf00- \\ udfff]| \\ ud86d[ \\ udc00- \\ udf34 \\ udf40- \\ udfff]| \\ ud86e[ \\ udc00- \\ udc1d \\ udc20- \\ udfff]| \\ ud873[ \\ udc00- \\ udea1 \\ udeb0- \\ udfff]| \\ ud87a[ \\ udc00- \\ udfe0]| \\ ud87e[ \\ udc00- \\ ude1d])(?:[ \\ ufe00- \\ ufe0f]| \\ udb40[ \\ udd00- \\ uddef])?",kPattern:"[ \\ u1100- \\ u11ff \\ u3001- \\ u3003 \\ u3008- \\ u3011 \\ u3013- \\ u301f \\ u302e- \\ u3030 \\ u3037 \\ u30fb \\ u3131- \\ u318e \\ u3200- \\ u321e \\ u3260- \\ u327e \\ ua960- \\ ua97c \\ uac00- \\ ud7a3 \\ ud7b0- \\ ud7c6 \\ ud7cb- \\ ud7fb \\ ufe45- \\ ufe46 \\ uff61- \\ uff65 \\ uffa0- \\ uffbe \\ uffc2- \\ uffc7 \\ uffca- \\ uffcf \\ uffd2- \\ uffd7 \\ uffda- \\ uffdc]",punctuationPattern:"[ \\ u0021- \\ u002f \\ u003a- \\ u0040 \\ u005b- \\ u0060 \\ u007b- \\ u007e \\ u00a1 \\ u00a7 \\ u00ab \\ u00b6- \\ u00b7 \\ u00bb \\ u00bf \\ u037e \\ u0387 \\ u055a- \\ u055f \\ u0589- \\ u058a \\ u05be \\ u05c0 \\ u05c3 \\ u05c6 \\ u05f3- \\ u05f4 \\ u0609- \\ u060a \\ u060c- \\ u060d \\ u061b \\ u061e- \\ u061f \\ u066a- \\ u066d \\ u06d4 \\ u0700- \\ u070d \\ u07f7- \\ u07f9 \\ u0830- \\ u083e \\ u085e \\ u0964- \\ u0965 \\ u0970 \\ u09fd \\ u0a76 \\ u0af0 \\ u0c77 \\ u0c84 \\ u0df4 \\ u0e4f \\ u0e5a- \\ u0e5b \\ u0f04- \\ u0f12 \\ u0f14 \\ u0f3a- \\ u0f3d \\ u0f85 \\ u0fd0- \\ u0fd4 \\ u0fd9- \\ u0fda \\ u104a- \\ u104f \\ u10fb \\ u1360- \\ u1368 \\ u1400 \\ u166e \\ u169b- \\ u169c \\ u16eb- \\ u16ed \\ u1735- \\ u1736 \\ u17d4- \\ u17d6 \\ u17d8- \\ u17da \\ u1800- \\ u180a \\ u1944- \\ u1945 \\ u1a1e- \\ u1a1f \\ u1aa0- \\ u1aa6 \\ u1aa8- \\ u1aad \\ u1b5a- \\ u1b60 \\ u1bfc- \\ u1bff \\ u1c3b- \\ u1c3f \\ u1c7e- \\ u1c7f \\ u1cc0- \\ u1cc7 \\ u1cd3 \\ u2010- \\ u2027 \\ u2030- \\ u2043 \\ u2045- \\ u2051 \\ u2053- \\ u205e \\ u207d- \\ u207e \\ u208d- \\ u208e \\ u2308- \\ u230b \\ u2329- \\ u232a \\ u2768- \\ u2775 \\ u27c5- \\ u27c6 \\ u27e6- \\ u27ef \\ u2983- \\ u2998 \\ u29d8- \\ u29db \\ u29fc- \\ u29fd \\ u2cf9- \\ u2cfc \\ u2cfe- \\ u2cff \\ u2d70 \\ u2e00- \\ u2e2e \\ u2e30- \\ u2e4f \\ u3001- \\ u3003 \\ u3008- \\ u3011 \\ u3014- \\ u301f \\ u3030 \\ u303d \\ u30a0 \\ u30fb \\ ua4fe- \\ ua4ff \\ ua60d- \\ ua60f \\ ua673 \\ ua67e \\ ua6f2- \\ ua6f7 \\ ua874- \\ ua877 \\ ua8ce- \\ ua8cf \\ ua8f8- \\ ua8fa \\ ua8fc \\ ua92e- \\ ua92f \\ ua95f \\ ua9c1- \\ ua9cd \\ ua9de- \\ ua9df \\ uaa5c- \\ uaa5f \\ uaade- \\ uaadf \\ uaaf0- \\ uaaf1 \\ uabeb \\ ufd3e- \\ ufd3f \\ ufe10- \\ ufe19 \\ ufe30- \\ ufe52 \\ ufe54- \\ ufe61 \\ ufe63 \\ ufe68 \\ ufe6a- \\ ufe6b \\ uff01
2024-08-21 13:12:53 +08:00
( $ { En } ) ` ,"g")," $ 1 $ 2")).split(/([ \t \n ]+)/);for(let[aa,Un]of Ta.entries()){if(aa%2===1){Ui.push({type:"whitespace",value:/ \n /.test(Un)? `
` :" "});continue}if((aa===0||aa===Ta.length-1)&&Un==="")continue;let Gi=Un.split(new RegExp( ` ( $ { En } ) ` ));for(let[ra,da]of Gi.entries())if(!((ra===0||ra===Gi.length-1)&&da==="")){if(ra%2===0){da!==""&&Fi({type:"word",value:da,kind:Ea,hasLeadingPunctuation:zi.test(da[0]),hasTrailingPunctuation:zi.test(vn(da))});continue}Fi(zi.test(da)?{type:"word",value:da,kind:Zo,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:da,kind:ea.test(da)?Fa:Xa,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return Ui;function Fi(aa){let Un=vn(Ui);Un&&Un.type==="word"&&(Un.kind===Ea&&aa.kind===Xa&&!Un.hasTrailingPunctuation||Un.kind===Xa&&aa.kind===Ea&&!aa.hasLeadingPunctuation?Ui.push({type:"whitespace",value:" "}):!Gi(Ea,Zo)&&![Un.value,aa.value].some(ra=>/ \u 3000/.test(ra))&&Ui.push({type:"whitespace",value:""})),Ui.push(aa);function Gi(ra,da){return Un.kind===ra&&aa.kind===da||Un.kind===da&&aa.kind===ra}}}function ki(la,La){let[,Ea,Xa,Fa]=La.slice(la.position.start.offset,la.position.end.offset).match(/^ \s *( \d +)( \. | \) )( \s *)/);return{numberText:Ea,marker:Xa,leadingSpaces:Fa}}function ji(la,La){if(!la.ordered||la.children.length<2)return!1;let Ea=Number(ki(la.children[0],La.originalText).numberText),Xa=Number(ki(la.children[1],La.originalText).numberText);if(Ea===0&&la.children.length>2){let Fa=Number(ki(la.children[2],La.originalText).numberText);return Xa===1&&Fa===1}return Xa===1}function oa(la,La){let{value:Ea}=la;return la.position.end.offset===La.length&&Ea.endsWith( `
` )&&La.endsWith( `
2024-08-24 19:24:09 +08:00
` )?Ea.slice(0,-1):Ea}function Ra(la,La){return function Ea(Xa,Fa,Zo){let Ui=Object.assign({},La(Xa,Fa,Zo));return Ui.children&&(Ui.children=Ui.children.map((Ta,Fi)=>Ea(Ta,Fi,[Ui,...Zo]))),Ui}(la,null,[])}function Ba(la){if((la==null?void 0:la.type)!=="link"||la.children.length!==1)return!1;let[La]=la.children;return Vn(la)===Vn(La)&&Fn(la)===Fn(La)}di.exports={mapAst:Ra,splitText:ta,punctuationPattern:Nn,getFencedCodeBlockValue:oa,getOrderedListItemInfo:ki,hasGitDiffFriendlyOrderedList:ji,INLINE_NODE_TYPES:ui,INLINE_NODE_WRAPPER_TYPES:Mi,isAutolink:Ba}}}),js=Io({"src/language-markdown/embed.js"(Rn,di){kn();var{inferParserByLanguage:vn,getMaxContinuousCount:Vn}=Gc(),{builders:{hardline:Fn,markAsRoot:En},utils:{replaceEndOfLine:xn}}=yc(),Nn=Jc(),{getFencedCodeBlockValue:ui}=No();function Mi(ea,zi,ta,ki){let ji=ea.getValue();if(ji.type==="code"&&ji.lang!==null){let oa=vn(ji.lang,ki);if(oa){let Ra=ki.__inJsTemplate?"~":" ` ",Ba=Ra.repeat(Math.max(3,Vn(ji.value,Ra)+1)),la={parser:oa};ji.lang===" tsx "&&(la.filepath=" dummy . tsx ");let La=ta(ui(ji,ki.originalText),la,{stripTrailingHardline:!0});return En([Ba,ji.lang,ji.meta?" "+ji.meta:" ",Fn,xn(La),Fn,Ba])}}switch(ji.type){case" front - matter ":return Nn(ji,ta);case" importExport ":return[ta(ji.value,{parser:" babel "},{stripTrailingHardline:!0}),Fn];case" jsx ":return ta(`<$>${ji.value}</$>`,{parser:" _ _js _expression ",rootMarker:" mdx "},{stripTrailingHardline:!0})}return null}di.exports=Mi}}),zs=Io({" src / language - markdown / pragma . js "(Rn,di){kn();var vn=Op(),Vn=[" format "," prettier "];function Fn(En){let xn=`@(${Vn.join(" | " ) } ) ` ,Nn=new RegExp([ ` <!-- \ \ s * $ { xn } \ \ s * -- > ` , ` { \ \ s * \ \ / \ \ * \ \ s * $ { xn } \ \ s * \ \ * \ \ / \ \ s * } ` , ` <!-- . * \ r ?
2024-08-21 13:12:53 +08:00
[ \ \ s \ \ S ] * ( ^ |
) [ ^ \ \ S
] * $ { xn } [ ^ \ \ S
] * ( $ |
) [ \ \ s \ \ S ] *
. * -- > ` ].join("|"),"m"),ui=En.match(Nn);return(ui==null?void 0:ui.index)===0}di.exports={startWithPragma:Fn,hasPragma:En=>Fn(vn(En).content.trimStart()),insertPragma:En=>{let xn=vn(En),Nn= ` <!-- @ $ { Vn [ 0 ] } -- > ` ;return xn.frontMatter? ` $ { xn . frontMatter . raw }
$ { Nn }
$ { xn . content } ` : ` $ { Nn }
2024-08-24 19:24:09 +08:00
$ { xn . content } ` }}}}),nl=Io({"src/language-markdown/print-preprocess.js"(Rn,di){kn();var vn=Ac(),{getOrderedListItemInfo:Vn,mapAst:Fn,splitText:En}=No(),xn=/^. $ /su;function Nn(Ba,la){return Ba=ea(Ba,la),Ba=ki(Ba),Ba=Mi(Ba,la),Ba=oa(Ba,la),Ba=Ra(Ba,la),Ba=ji(Ba,la),Ba=ui(Ba),Ba=zi(Ba),Ba}function ui(Ba){return Fn(Ba,la=>la.type!=="import"&&la.type!=="export"?la:Object.assign(Object.assign({},la),{},{type:"importExport"}))}function Mi(Ba,la){return Fn(Ba,La=>La.type!=="inlineCode"||la.proseWrap==="preserve"?La:Object.assign(Object.assign({},La),{},{value:La.value.replace(/ \s +/g," ")}))}function ea(Ba,la){return Fn(Ba,La=>La.type!=="text"||La.value==="*"||La.value==="_"||!xn.test(La.value)||La.position.end.offset-La.position.start.offset===La.value.length?La:Object.assign(Object.assign({},La),{},{value:la.originalText.slice(La.position.start.offset,La.position.end.offset)}))}function zi(Ba){return ta(Ba,(la,La)=>la.type==="importExport"&&La.type==="importExport",(la,La)=>({type:"importExport",value:la.value+ `
2024-08-21 13:12:53 +08:00
2024-08-24 19:24:09 +08:00
` +La.value,position:{start:la.position.start,end:La.position.end}}))}function ta(Ba,la,La){return Fn(Ba,Ea=>{if(!Ea.children)return Ea;let Xa=Ea.children.reduce((Fa,Zo)=>{let Ui=vn(Fa);return Ui&&la(Ui,Zo)?Fa.splice(-1,1,La(Ui,Zo)):Fa.push(Zo),Fa},[]);return Object.assign(Object.assign({},Ea),{},{children:Xa})})}function ki(Ba){return ta(Ba,(la,La)=>la.type==="text"&&La.type==="text",(la,La)=>({type:"text",value:la.value+La.value,position:{start:la.position.start,end:La.position.end}}))}function ji(Ba,la){return Fn(Ba,(La,Ea,Xa)=>{let[Fa]=Xa;if(La.type!=="text")return La;let{value:Zo}=La;return Fa.type==="paragraph"&&(Ea===0&&(Zo=Zo.trimStart()),Ea===Fa.children.length-1&&(Zo=Zo.trimEnd())),{type:"sentence",position:La.position,children:En(Zo,la)}})}function oa(Ba,la){return Fn(Ba,(La,Ea,Xa)=>{if(La.type==="code"){let Fa=/^ \n ?(?: {4,}| \t )/.test(la.originalText.slice(La.position.start.offset,La.position.end.offset));if(La.isIndented=Fa,Fa)for(let Zo=0;Zo<Xa.length;Zo++){let Ui=Xa[Zo];if(Ui.hasIndentedCodeblock)break;Ui.type==="list"&&(Ui.hasIndentedCodeblock=!0)}}return La})}function Ra(Ba,la){return Fn(Ba,(Xa,Fa,Zo)=>{if(Xa.type==="list"&&Xa.children.length>0){for(let Ui=0;Ui<Zo.length;Ui++){let Ta=Zo[Ui];if(Ta.type==="list"&&!Ta.isAligned)return Xa.isAligned=!1,Xa}Xa.isAligned=Ea(Xa)}return Xa});function La(Xa){return Xa.children.length===0?-1:Xa.children[0].position.start.column-1}function Ea(Xa){if(!Xa.ordered)return!0;let[Fa,Zo]=Xa.children;if(Vn(Fa,la.originalText).leadingSpaces.length>1)return!0;let Ui=La(Fa);if(Ui===-1)return!1;if(Xa.children.length===1)return Ui%la.tabWidth===0;let Ta=La(Zo);return Ui!==Ta?!1:Ui%la.tabWidth===0?!0:Vn(Zo,la.originalText).leadingSpaces.length>1}}di.exports=Nn}}),xu=Io({"src/language-markdown/clean.js"(Rn,di){kn();var vn=xo(),{isFrontMatterNode:Vn}=Gc(),{startWithPragma:Fn}=zs(),En=new Set(["position","raw"]);function xn(Nn,ui,Mi){if((Nn.type==="front-matter"||Nn.type==="code"||Nn.type==="yaml"||Nn.type==="import"||Nn.type==="export"||Nn.type==="jsx")&&delete ui.value,Nn.type==="list"&&delete ui.isAligned,(Nn.type==="list"||Nn.type==="listItem")&&(delete ui.spread,delete ui.loose),Nn.type==="text"||(Nn.type==="inlineCode"&&(ui.value=Nn.value.replace(/[ \t \n ]+/g," ")),Nn.type==="wikiLink"&&(ui.value=Nn.value.trim().replace(/[ \t \n ]+/g," ")),(Nn.type==="definition"||Nn.type==="linkReference"||Nn.type==="imageReference")&&(ui.label=vn(Nn.label)),(Nn.type==="definition"||Nn.type==="link"||Nn.type==="image")&&Nn.title&&(ui.title=Nn.title.replace(/ \\ (["')])/g," $ 1")),Mi&&Mi.type==="root"&&Mi.children.length>0&&(Mi.children[0]===Nn||Vn(Mi.children[0])&&Mi.children[1]===Nn)&&Nn.type==="html"&&Fn(Nn.value)))return null}xn.ignoredProperties=En,di.exports=xn}}),zu=Io({"src/language-markdown/printer-markdown.js"(Rn,di){kn();var vn=xo(),{getLast:Vn,getMinNotPresentContinuousCount:Fn,getMaxContinuousCount:En,getStringWidth:xn,isNonEmptyArray:Nn}=Gc(),{builders:{breakParent:ui,join:Mi,line:ea,literalline:zi,markAsRoot:ta,hardline:ki,softline:ji,ifBreak:oa,fill:Ra,align:Ba,indent:la,group:La,hardlineWithoutBreakParent:Ea},utils:{normalizeDoc:Xa,replaceTextEndOfLine:Fa},printer:{printDocToString:Zo}}=yc(),Ui=js(),{insertPragma:Ta}=zs(),{locStart:Fi,locEnd:aa}=ss(),Un=nl(),Gi=xu(),{getFencedCodeBlockValue:ra,hasGitDiffFriendlyOrderedList:da,splitText:va,punctuationPattern:Aa,INLINE_NODE_TYPES:to,INLINE_NODE_WRAPPER_TYPES:Bo,isAutolink:Jo}=No(),Mo=new Set(["importExport"]),_s=["heading","tableCell","link","wikiLink"],bo=new Set(["listItem","definition","footnoteDefinition"]);function Bs(ol,Qo,fl){let ks=ol.getValue();if(du(ol))return va(Qo.originalText.slice(ks.position.start.offset,ks.position.end.offset),Qo).map(ul=>ul.type==="word"?ul.value:ul.value===""?"":Vo(ol,ul.value,Qo));switch(ks.type){case"front-matter":return Qo.originalText.slice(ks.position.start.offset,ks.position.end.offset);case"root":return ks.children.length===0?"":[Xa(dl(ol,Qo,fl)),Mo.has(Rs(ks).type)?"":ki];case"paragraph":return al(ol,Qo,fl,{postprocessor:Ra});case"sentence":return al(ol,Qo,fl);case"word":{let ul=ks.value.replace(
` )return ki;let ks=fl.proseWrap==="always"&&!pl(ol,_s);return Qo!==""?ks?ea:" ":ks?ji:""}function As(ol,Qo,fl){let ks=ol.getValue(),ul=[],Hu=ol.map( $ r=> $ r.map((Zr,Hn)=>{let mi=Zo(fl(),Qo).formatted,ma=xn(mi);return ul[Hn]=Math.max(ul[Hn]||3,ma),{text:mi,width:ma}},"children"),"children"), $ e=ir(!1);if(Qo.proseWrap!=="never")return[ui, $ e];let er=ir(!0);return[ui,La(oa(er, $ e))];function ir( $ r){let Zr=[dr(Hu[0], $ r),lr( $ r)];return Hu.length>1&&Zr.push(Mi(Ea,Hu.slice(1).map(Hn=>dr(Hn, $ r)))),Mi(Ea,Zr)}function lr( $ r){return ` | $ { ul . map ( ( Zr , Hn ) => { let mi = ks . align [ Hn ] , ma = mi === "center" || mi === "left" ? ":" : "-" , io = mi === "center" || mi === "right" ? ":" : "-" , ms = $r ? "-" : "-" . repeat ( Zr - 2 ) ; return ` ${ ma } ${ ms } ${ io } ` } ) . join ( " | " ) } | ` }function dr( $ r,Zr){return ` | $ { $r . map ( ( Hn , mi ) => { let { text : ma , width : io } = Hn ; if ( Zr ) return ma ; let ms = ul [ mi ] - io , gs = ks . align [ mi ] , Cs = 0 ; gs === "right" ? Cs = ms : gs === "center" && ( Cs = Math . floor ( ms / 2 ) ) ; let Js = ms - Cs ; return ` ${ " " . repeat ( Cs ) } ${ ma } ${ " " . repeat ( Js ) } ` } ) . join ( " | " ) } | ` }}function dl(ol,Qo,fl){let ks=[],ul=null,{children:Hu}=ol.getValue();for(let[ $ e,er]of Hu.entries())switch(fs(er)){case"start":ul===null&&(ul={index: $ e,offset:er.position.end.offset});break;case"end":ul!==null&&(ks.push({start:ul,end:{index: $ e,offset:er.position.start.offset}}),ul=null);break}return al(ol,Qo,fl,{processor:( $ e,er)=>{if(ks.length>0){let ir=ks[0];if(er===ir.start.index)return[Ou(Hu[ir.start.index]),Qo.originalText.slice(ir.start.offset,ir.end.offset),Ou(Hu[ir.end.index])];if(ir.start.index<er&&er<ir.end.index)return!1;if(er===ir.end.index)return ks.shift(),!1}return fl()}})}function al(ol,Qo,fl){let ks=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},{postprocessor:ul}=ks,Hu=ks.processor||(()=>fl()), $ e=ol.getValue(),er=[],ir;return ol.each((lr,dr)=>{let $ r=lr.getValue(),Zr=Hu(lr,dr);if(Zr!==!1){let Hn={parts:er,prevNode:ir,parentNode: $ e,options:Qo};Fs( $ r,Hn)&&(er.push(ki),ir&&Mo.has(ir.type)||(Ws( $ r,Hn)||Hs( $ r,Hn))&&er.push(ki),Hs( $ r,Hn)&&er.push(ki)),er.push(Zr),ir= $ r}},"children"),ul?ul(er):er}function Ou(ol){if(ol.type==="html")return ol.value;if(ol.type==="paragraph"&&Array.isArray(ol.children)&&ol.children.length===1&&ol.children[0].type==="esComment")return["{/* ",ol.children[0].value," */}"]}function Rs(ol){let Qo=ol;for(;Nn(Qo.children);)Qo=Vn(Qo.children);return Qo}function fs(ol){let Qo;if(ol.type==="html")Qo=ol.value.match(/^<!-- \s *prettier-ignore(?:-(start|end))? \s *--> $ /);else{let fl;ol.type==="esComment"?fl=ol:ol.type==="paragraph"&&ol.children.length===1&&ol.children[0].type==="esComment"&&(fl=ol.children[0]),fl&&(Qo=fl.value.match(/^prettier-ignore(?:-(start|end))? $ /))}return Qo?Qo[1]||"next":!1}function Fs(ol,Qo){let fl=Qo.parts.length===0,ks=to.includes(ol.type),ul=ol.type==="html"&&Bo.includes(Qo.parentNode.type);return!fl&&!ks&&!ul}function Ws(ol,Qo){var fl,ks,ul;let Hu=(Qo.prevNode&&Qo.prevNode.type)===ol.type&&bo.has(ol.type), $ e=Qo.parentNode.type==="listItem"&&!Qo.parentNode.loose,er=((fl=Qo.prevNode)===null||fl===void 0?void 0:fl.type)==="listItem"&&Qo.prevNode.loose,ir=fs(Qo.prevNode)==="next",lr=ol.type==="html"&&((ks=Qo.prevNode)===null||ks===void 0?void 0:ks.type)==="html"&&Qo.prevNode.position.end.line+1===ol.position.start.line,dr=ol.type==="html"&&Qo.parentNode.type==="listItem"&&((ul=Qo.prevNode)===null||ul===void 0?void 0:ul.type)==="paragraph"&&Qo.prevNode.position.end.line+1===ol.position.start.line;return er||!(Hu|| $ e||ir||lr||dr)}function Hs(ol,Qo){let fl=Qo.prevNode&&Qo.prevNode.type==="list",ks=ol.type==="code"&&ol.isIndented;return fl&&ks}function du(ol){let Qo=pl(ol,["linkReference","imageReference"]);return Qo&&(Qo.type!=="linkReference"||Qo.referenceType!=="full")}function jl(ol){let Qo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],fl=[" ",...Array.isArray(Qo)?Qo:[Qo]];return new RegExp(fl.map(ks=> ` \ \ $ { ks } ` ).join("|")).test(ol)? ` < $ { ol } > ` :ol}function rc(ol,Qo){let fl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!ol)return"";if(fl)return" "+rc(ol,Qo,!1);if(ol=ol.replace(/ \\ (["')])/g," $ 1"),ol.includes('"')&&ol.includes("'")&&!ol.includes(")"))return ` ( $ { ol } ) ` ;let ks=ol.split("'").l
` ," \f "," \r "," "]),oa=ir=>ir.replace(/^[ \t \n \f \r ]+/,""),Ra=ir=>ir.replace(/[ \t \n \f \r ]+ $ /,""),Ba=ir=>oa(Ra(ir)),la=ir=>ir.replace(/^[ \t \f \r ]* \n /g,""),La=ir=>la(Ra(ir)),Ea=ir=>ir.split(/[ \t \n \f \r ]+/),Xa=ir=>ir.match(/^[ \t \n \f \r ]*/)[0],Fa=ir=>{let[,lr,dr, $ r]=ir.match(/^([ \t \n \f \r ]*)(.*?)([ \t \n \f \r ]*) $ /s);return{leadingWhitespace:lr,trailingWhitespace: $ r,text:dr}},Zo=ir=>/[ \t \n \f \r ]/.test(ir);function Ui(ir,lr){return!!(ir.type==="ieConditionalComment"&&ir.lastChild&&!ir.lastChild.isSelfClosing&&!ir.lastChild.endSourceSpan||ir.type==="ieConditionalComment"&&!ir.complete||Ws(ir)&&ir.children.some(dr=>dr.type!=="text"&&dr.type!=="interpolation")||ks(ir,lr)&&!Un(ir)&&ir.type!=="interpolation")}function Ta(ir){return ir.type==="attribute"||!ir.parent||!ir.prev?!1:Fi(ir.prev)}function Fi(ir){return ir.type==="comment"&&ir.value.trim()==="prettier-ignore"}function aa(ir){return ir.type==="text"||ir.type==="comment"}function Un(ir){return ir.type==="element"&&(ir.fullName==="script"||ir.fullName==="style"||ir.fullName==="svg:style"||ki(ir)&&(ir.name==="script"||ir.name==="style"))}function Gi(ir){return ir.children&&!Un(ir)}function ra(ir){return Un(ir)||ir.type==="interpolation"||da(ir)}function da(ir){return rc(ir).startsWith("pre")}function va(ir,lr){let dr= $ r();if(dr&&!ir.prev&&ir.parent&&ir.parent.tagDefinition&&ir.parent.tagDefinition.ignoreFirstLf)return ir.type==="interpolation";return dr;function $ r(){return Vn(ir)?!1:(ir.type==="text"||ir.type==="interpolation")&&ir.prev&&(ir.prev.type==="text"||ir.prev.type==="interpolation")?!0:!ir.parent||ir.parent.cssDisplay==="none"?!1:Ws(ir.parent)?!0:!(!ir.prev&&(ir.parent.type==="root"||Ws(ir)&&ir.parent||Un(ir.parent)||Qo(ir.parent,lr)||!al(ir.parent.cssDisplay))||ir.prev&&!fs(ir.prev.cssDisplay))}}function Aa(ir,lr){return Vn(ir)?!1:(ir.type==="text"||ir.type==="interpolation")&&ir.next&&(ir.next.type==="text"||ir.next.type==="interpolation")?!0:!ir.parent||ir.parent.cssDisplay==="none"?!1:Ws(ir.parent)?!0:!(!ir.next&&(ir.parent.type==="root"||Ws(ir)&&ir.parent||Un(ir.parent)||Qo(ir.parent,lr)||!Ou(ir.parent.cssDisplay))||ir.next&&!Rs(ir.next.cssDisplay))}function to(ir){return Fs(ir.cssDisplay)&&!Un(ir)}function Bo(ir){return Vn(ir)||ir.next&&ir.sourceSpan.end&&ir.sourceSpan.end.line+1<ir.next.sourceSpan.start.line}function Jo(ir){return Mo(ir)||ir.type==="element"&&ir.children.length>0&&(["body","script","style"].includes(ir.name)||ir.children.some(lr=> $ s(lr)))||ir.firstChild&&ir.firstChild===ir.lastChild&&ir.firstChild.type!=="text"&&Xo(ir.firstChild)&&(!ir.lastChild.isTrailingSpaceSensitive||Oo(ir.lastChild))}function Mo(ir){return ir.type==="element"&&ir.children.length>0&&(["html","head","ul","ol","select"].includes(ir.name)||ir.cssDisplay.startsWith("table")&&ir.cssDisplay!=="table-cell")}function _s(ir){return ys(ir)||ir.prev&&bo(ir.prev)||Bs(ir)}function bo(ir){return ys(ir)||ir.type==="element"&&ir.fullName==="br"||Bs(ir)}function Bs(ir){return Xo(ir)&&Oo(ir)}function Xo(ir){return ir.hasLeadingSpaces&&(ir.prev?ir.prev.sourceSpan.end.line<ir.sourceSpan.start.line:ir.parent.type==="root"||ir.parent.startSourceSpan.end.line<ir.sourceSpan.start.line)}function Oo(ir){return ir.hasTrailingSpaces&&(ir.next?ir.next.sourceSpan.start.line>ir.sourceSpan.end.line:ir.parent.type==="root"||ir.parent.endSourceSpan&&ir.parent.endSourceSpan.start.line>ir.sourceSpan.end.line)}function ys(ir){switch(ir.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(ir.name)}return!1}function tl(ir){return ir.lastChild?tl(ir.lastChild):ir}function $ s(ir){return ir.children&&ir.children.some(lr=>lr.type!=="text")}function pl(ir){let{type:lr,lang:dr}=ir.attrMap;if(lr==="module"||lr==="text/javascript"||lr==="text/babel"||lr==="application/javascript"||dr==="jsx")return"babel";if(lr==="application/x-typescript"||dr==="ts"||dr==="tsx")return"typescript";if(lr==="text/markdown")return"markdown";if(lr==="text/html")return"html";if(lr&&(lr.endsWith("json")||lr.endsWith("importmap"))||lr==="speculationrules")return"json";if(lr==="t
2024-08-21 13:12:53 +08:00
` )){if(dr.length===0)continue;if(!ji.has(dr[0]))return 0;let $ r=Xa(dr).length;dr.length!== $ r&& $ r<lr&&(lr= $ r)}return lr===Number.POSITIVE_INFINITY?0:lr}function Uc(ir){let lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ed(ir);return lr===0?ir:ir.split( `
` ).map(dr=>dr.slice(lr)).join( `
2024-08-24 19:24:09 +08:00
` )}function fc(ir,lr){let dr=0;for(let $ r=0; $ r<ir.length; $ r++)ir[ $ r]===lr&&dr++;return dr}function lc(ir){return ir.replace(/'/g,"'").replace(/"/g,'"')}var ol=new Set(["template","style","script"]);function Qo(ir,lr){return fl(ir,lr)&&!ol.has(ir.fullName)}function fl(ir,lr){return lr.parser==="vue"&&ir.type==="element"&&ir.parent.type==="root"&&ir.fullName.toLowerCase()!=="html"}function ks(ir,lr){return fl(ir,lr)&&(Qo(ir,lr)||ir.attrMap.lang&&ir.attrMap.lang!=="html")}function ul(ir){let lr=ir.fullName;return lr.charAt(0)==="#"||lr==="slot-scope"||lr==="v-slot"||lr.startsWith("v-slot:")}function Hu(ir,lr){let dr=ir.parent;if(!fl(dr,lr))return!1;let $ r=dr.fullName,Zr=ir.fullName;return $ r==="script"&&Zr==="setup"|| $ r==="style"&&Zr==="vars"}function $ e(ir){let lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ir.value;return ir.parent.isWhitespaceSensitive?ir.parent.isIndentationSensitive?ui(lr):ui(Uc(La(lr)),En):Nn(xn(Fn,Ea(lr)))}function er(ir,lr){return fl(ir,lr)&&ir.name==="script"}di.exports={htmlTrim:Ba,htmlTrimPreserveIndentation:La,hasHtmlWhitespace:Zo,getLeadingAndTrailingHtmlWhitespace:Fa,canHaveInterpolation:Gi,countChars:fc,countParents:Hs,dedentString:Uc,forceBreakChildren:Mo,forceBreakContent:Jo,forceNextEmptyLine:Bo,getLastDescendant:tl,getNodeCssStyleDisplay:jl,getNodeCssStyleWhiteSpace:rc,hasPrettierIgnore:Ta,inferScriptParser:As,isVueCustomBlock:Qo,isVueNonHtmlBlock:ks,isVueScriptTag:er,isVueSlotAttribute:ul,isVueSfcBindingsAttribute:Hu,isVueSfcBlock:fl,isDanglingSpaceSensitiveNode:to,isIndentationSensitiveNode:da,isLeadingSpaceSensitiveNode:va,isPreLikeNode:Ws,isScriptLikeTag:Un,isTextLikeNode:aa,isTrailingSpaceSensitiveNode:Aa,isWhitespaceSensitiveNode:ra,isUnknownNamespace:ki,preferHardlineAsLeadingSpaces:_s,preferHardlineAsTrailingSpaces:bo,shouldPreserveContent:Ui,unescapeQuoteEntities:lc,getTextValueParts: $ e}}}),Pu=Io({"node_modules/angular-html-parser/lib/compiler/src/chars.js"(Rn){kn(),Object.defineProperty(Rn,"__esModule",{value:!0}),Rn. $ EOF=0,Rn. $ BSPACE=8,Rn. $ TAB=9,Rn. $ LF=10,Rn. $ VTAB=11,Rn. $ FF=12,Rn. $ CR=13,Rn. $ SPACE=32,Rn. $ BANG=33,Rn. $ DQ=34,Rn. $ HASH=35,Rn. $ $ =36,Rn. $ PERCENT=37,Rn. $ AMPERSAND=38,Rn. $ SQ=39,Rn. $ LPAREN=40,Rn. $ RPAREN=41,Rn. $ STAR=42,Rn. $ PLUS=43,Rn. $ COMMA=44,Rn. $ MINUS=45,Rn. $ PERIOD=46,Rn. $ SLASH=47,Rn. $ COLON=58,Rn. $ SEMICOLON=59,Rn. $ LT=60,Rn. $ EQ=61,Rn. $ GT=62,Rn. $ QUESTION=63,Rn. $ 0=48,Rn. $ 7=55,Rn. $ 9=57,Rn. $ A=65,Rn. $ E=69,Rn. $ F=70,Rn. $ X=88,Rn. $ Z=90,Rn. $ LBRACKET=91,Rn. $ BACKSLASH=92,Rn. $ RBRACKET=93,Rn. $ CARET=94,Rn. $ _=95,Rn. $ a=97,Rn. $ b=98,Rn. $ e=101,Rn. $ f=102,Rn. $ n=110,Rn. $ r=114,Rn. $ t=116,Rn. $ u=117,Rn. $ v=118,Rn. $ x=120,Rn. $ z=122,Rn. $ LBRACE=123,Rn. $ BAR=124,Rn. $ RBRACE=125,Rn. $ NBSP=160,Rn. $ PIPE=124,Rn. $ TILDA=126,Rn. $ AT=64,Rn. $ BT=96;function di(Nn){return Nn>=Rn. $ TAB&&Nn<=Rn. $ SPACE||Nn==Rn. $ NBSP}Rn.isWhitespace=di;function vn(Nn){return Rn. $ 0<=Nn&&Nn<=Rn. $ 9}Rn.isDigit=vn;function Vn(Nn){return Nn>=Rn. $ a&&Nn<=Rn. $ z||Nn>=Rn. $ A&&Nn<=Rn. $ Z}Rn.isAsciiLetter=Vn;function Fn(Nn){return Nn>=Rn. $ a&&Nn<=Rn. $ f||Nn>=Rn. $ A&&Nn<=Rn. $ F||vn(Nn)}Rn.isAsciiHexDigit=Fn;function En(Nn){return Nn===Rn. $ LF||Nn===Rn. $ CR}Rn.isNewLine=En;function xn(Nn){return Rn. $ 0<=Nn&&Nn<=Rn. $ 7}Rn.isOctalDigit=xn}}),fu=Io({"node_modules/angular-html-parser/lib/compiler/src/aot/static_symbol.js"(Rn){kn(),Object.defineProperty(Rn,"__esModule",{value:!0});var di=class{constructor(Vn,Fn,En){this.filePath=Vn,this.name=Fn,this.members=En}assertNoMembers(){if(this.members.length)throw new Error( ` Illegal state : symbol without members expected , but got $ { JSON . stringify ( this ) } . ` )}};Rn.StaticSymbol=di;var vn=class{constructor(){this.cache=new Map}get(Vn,Fn,En){En=En||[];let xn=En.length? ` . $ { En . join ( "." ) } ` :"",Nn= ` "${Vn}" . $ { Fn } $ { xn } ` ,ui=this.cache.get(Nn);return ui||(ui=new di(Vn,Fn,En),this.cache.set(Nn,ui)),ui}};Rn.StaticSymbolCache=vn}}),fp=Io({"node_modules/angular-html-parser/lib/compiler/src/util.js"(Rn){kn(),Object.defineProperty(Rn,"__esModule",{value:!0});var di=/-+([a-z0-9])/g;function vn(Un){return Un.replace(di,function(){for(var Gi=arguments.length,ra=new Array(Gi),da=0;da<Gi;da++)ra[da]=arguments[da];return ra[1].toUpper
` );return ra===-1?Gi:Gi.substring(0,ra)}Rn.stringify=Ea;function Xa(Un){return typeof Un=="function"&&Un.hasOwnProperty("__forward_ref__")?Un():Un}Rn.resolveForwardRef=Xa;function Fa(Un){return!!Un&&typeof Un.then=="function"}Rn.isPromise=Fa;var Zo=class{constructor(Un){this.full=Un;let Gi=Un.split(".");this.major=Gi[0],this.minor=Gi[1],this.patch=Gi.slice(2).join(".")}};Rn.Version=Zo;var Ui=typeof window<"u"&&window,Ta=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,Fi=typeof globalThis<"u"&&globalThis,aa=Fi||Ui||Ta;Rn.global=aa}}),Rd=Io({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(Rn){kn(),Object.defineProperty(Rn,"__esModule",{value:!0});var di=fu(),vn=fp(),Vn=/^(?:(?: \[ ([^ \] ]+) \] )|(?: \( ([^ \) ]+) \) ))|( \@ [- \w ]+) $ /;function Fn(ra){return ra.replace(/ \W /g,"_")}Rn.sanitizeIdentifier=Fn;var En=0;function xn(ra){if(!ra||!ra.reference)return null;let da=ra.reference;if(da instanceof di.StaticSymbol)return da.name;if(da.__anonymousType)return da.__anonymousType;let va=vn.stringify(da);return va.indexOf("(")>=0?(va= ` anonymous _$ { En ++ } ` ,da.__anonymousType=va):va=Fn(va),va}Rn.identifierName=xn;function Nn(ra){let da=ra.reference;return da instanceof di.StaticSymbol?da.filePath: ` . / $ { vn . stringify ( da ) } ` }Rn.identifierModuleUrl=Nn;function ui(ra,da){return ` View _$ { xn ( { reference : ra } ) } _$ { da } ` }Rn.viewClassName=ui;function Mi(ra){return ` RenderType _$ { xn ( { reference : ra } ) } ` }Rn.rendererTypeName=Mi;function ea(ra){return ` HostView _$ { xn ( { reference : ra } ) } ` }Rn.hostViewClassName=ea;function zi(ra){return ` $ { xn ( { reference : ra } ) } NgFactory ` }Rn.componentFactoryName=zi;var ta;(function(ra){ra[ra.Pipe=0]="Pipe",ra[ra.Directive=1]="Directive",ra[ra.NgModule=2]="NgModule",ra[ra.Injectable=3]="Injectable"})(ta=Rn.CompileSummaryKind||(Rn.CompileSummaryKind={}));function ki(ra){return ra.value!=null?Fn(ra.value):xn(ra.identifier)}Rn.tokenName=ki;function ji(ra){return ra.identifier!=null?ra.identifier.reference:ra.value}Rn.tokenReference=ji;var oa=class{constructor(){let{moduleUrl:ra,styles:da,styleUrls:va}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.moduleUrl=ra||null,this.styles=Fa(da),this.styleUrls=Fa(va)}};Rn.CompileStylesheetMetadata=oa;var Ra=class{constructor(ra){let{encapsulation:da,template:va,templateUrl:Aa,htmlAst:to,styles:Bo,styleUrls:Jo,externalStylesheets:Mo,animations:_s,ngContentSelectors:bo,interpolation:Bs,isInline:Xo,preserveWhitespaces:Oo}=ra;if(this.encapsulation=da,this.template=va,this.templateUrl=Aa,this.htmlAst=to,this.styles=Fa(Bo),this.styleUrls=Fa(Jo),this.externalStylesheets=Fa(Mo),this.animations=_s?Ui(_s):[],this.ngContentSelectors=bo||[],Bs&&Bs.length!=2)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=Bs,this.isInline=Xo,this.preserveWhitespaces=Oo}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};Rn.CompileTemplateMetadata=Ra;var Ba=class{static create(ra){let{isHost:da,type:va,isComponent:Aa,selector:to,exportAs:Bo,changeDetection:Jo,inputs:Mo,outputs:_s,host:bo,providers:Bs,viewProviders:Xo,queries:Oo,guards:ys,viewQueries:tl,entryComponents: $ s,template:pl,componentViewType:Vo,rendererType:As,componentFactory:dl}=ra,al={},Ou={},Rs={};bo!=null&&Object.keys(bo).forEach(Ws=>{let Hs=bo[Ws],du=Ws.match(Vn);du===null?Rs[Ws]=Hs:du[1]!=null?Ou[du[1]]=Hs:du[2]!=null&&(al[du[2]]=Hs)});let fs={};Mo!=null&&Mo.forEach(Ws=>{let Hs=vn.splitAtColon(Ws,[Ws,Ws]);fs[Hs[0]]=Hs[1]});let Fs={};return _s!=null&&_s.forEach(Ws=>{let Hs=vn.splitAtColon(Ws,[Ws,Ws]);Fs[Hs[0]]=Hs[1]}),new Ba({isHost:da,type:va,isComponent:!!Aa,selector:to,exportAs:Bo,changeDetection:Jo,inputs:fs,outputs:Fs,hostListeners:al,hostProperties:Ou,hostAttributes:Rs,providers:Bs,viewProviders:Xo,queries:Oo,guards:ys,viewQueries:tl,entryComponents: $ s,template:pl,componentViewType:Vo,rendererType:As,componentFactory:dl})}constructor(ra){let{isHost:da,type:va,isComponent:Aa,selector:to,exportAs:Bo,changeDetection:Jo,inputs:Mo,outputs:_s,hostListeners:bo,hostPrope
2024-08-21 13:12:53 +08:00
` &&++Ra==zi)););for(oa=0,Ra=0;oa<ea&&ji<ta.length-1&&(ji++,oa++,!(ta[ji]== `
2024-08-24 19:24:09 +08:00
` &&++Ra==zi)););return{before:ta.substring(ki,this.offset),after:ta.substring(this.offset,ji+1)}}return null}};Rn.ParseLocation=Vn;var Fn=class{constructor(ea,zi){this.content=ea,this.url=zi}};Rn.ParseSourceFile=Fn;var En=class{constructor(ea,zi){let ta=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this.start=ea,this.end=zi,this.details=ta}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};Rn.ParseSourceSpan=En,Rn.EMPTY_PARSE_LOCATION=new Vn(new Fn("",""),0,0,0),Rn.EMPTY_SOURCE_SPAN=new En(Rn.EMPTY_PARSE_LOCATION,Rn.EMPTY_PARSE_LOCATION);var xn;(function(ea){ea[ea.WARNING=0]="WARNING",ea[ea.ERROR=1]="ERROR"})(xn=Rn.ParseErrorLevel||(Rn.ParseErrorLevel={}));var Nn=class{constructor(ea,zi){let ta=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xn.ERROR;this.span=ea,this.msg=zi,this.level=ta}contextualMessage(){let ea=this.span.start.getContext(100,3);return ea? ` $ { this . msg } ( "${ea.before}[${xn[this.level]} ->]${ea.after}" ) ` :this.msg}toString(){let ea=this.span.details? ` , $ { this . span . details } ` :"";return ` $ { this . contextualMessage ( ) } : $ { this . span . start } $ { ea } ` }};Rn.ParseError=Nn;function ui(ea,zi){let ta=vn.identifierModuleUrl(zi),ki=ta!=null? ` in $ { ea } $ { vn . identifierName ( zi ) } in $ { ta } ` : ` in $ { ea } $ { vn . identifierName ( zi ) } ` ,ji=new Fn("",ki);return new En(new Vn(ji,-1,-1,-1),new Vn(ji,-1,-1,-1))}Rn.typeSourceSpan=ui;function Mi(ea,zi,ta){let ki= ` in $ { ea } $ { zi } in $ { ta } ` ,ji=new Fn("",ki);return new En(new Vn(ji,-1,-1,-1),new Vn(ji,-1,-1,-1))}Rn.r3JitTypeSourceSpan=Mi}}),Ed=Io({"src/language-html/print-preprocess.js"(Rn,di){kn();var{ParseSourceSpan:vn}=Gd(),{htmlTrim:Vn,getLeadingAndTrailingHtmlWhitespace:Fn,hasHtmlWhitespace:En,canHaveInterpolation:xn,getNodeCssStyleDisplay:Nn,isDanglingSpaceSensitiveNode:ui,isIndentationSensitiveNode:Mi,isLeadingSpaceSensitiveNode:ea,isTrailingSpaceSensitiveNode:zi,isWhitespaceSensitiveNode:ta,isVueScriptTag:ki}=hu(),ji=[Ra,Ba,La,Xa,Fa,Ta,Zo,Ui,Fi,Ea,aa];function oa(Un,Gi){for(let ra of ji)ra(Un,Gi);return Un}function Ra(Un){Un.walk(Gi=>{if(Gi.type==="element"&&Gi.tagDefinition.ignoreFirstLf&&Gi.children.length>0&&Gi.children[0].type==="text"&&Gi.children[0].value[0]=== `
` ){let ra=Gi.children[0];ra.value.length===1?Gi.removeChild(ra):ra.value=ra.value.slice(1)}})}function Ba(Un){let Gi=ra=>ra.type==="element"&&ra.prev&&ra.prev.type==="ieConditionalStartComment"&&ra.prev.sourceSpan.end.offset===ra.startSourceSpan.start.offset&&ra.firstChild&&ra.firstChild.type==="ieConditionalEndComment"&&ra.firstChild.sourceSpan.start.offset===ra.startSourceSpan.end.offset;Un.walk(ra=>{if(ra.children)for(let da=0;da<ra.children.length;da++){let va=ra.children[da];if(!Gi(va))continue;let Aa=va.prev,to=va.firstChild;ra.removeChild(Aa),da--;let Bo=new vn(Aa.sourceSpan.start,to.sourceSpan.end),Jo=new vn(Bo.start,va.sourceSpan.end);va.condition=Aa.condition,va.sourceSpan=Jo,va.startSourceSpan=Bo,va.removeChild(to)}})}function la(Un,Gi,ra){Un.walk(da=>{if(da.children)for(let va=0;va<da.children.length;va++){let Aa=da.children[va];if(Aa.type!=="text"&&!Gi(Aa))continue;Aa.type!=="text"&&(Aa.type="text",Aa.value=ra(Aa));let to=Aa.prev;!to||to.type!=="text"||(to.value+=Aa.value,to.sourceSpan=new vn(to.sourceSpan.start,Aa.sourceSpan.end),da.removeChild(Aa),va--)}})}function La(Un){return la(Un,Gi=>Gi.type==="cdata",Gi=> ` < ! [ CDATA [ $ { Gi . value } ] ] > ` )}function Ea(Un){let Gi=ra=>ra.type==="element"&&ra.attrs.length===0&&ra.children.length===1&&ra.firstChild.type==="text"&&!En(ra.children[0].value)&&!ra.firstChild.hasLeadingSpaces&&!ra.firstChild.hasTrailingSpaces&&ra.isLeadingSpaceSensitive&&!ra.hasLeadingSpaces&&ra.isTrailingSpaceSensitive&&!ra.hasTrailingSpaces&&ra.prev&&ra.prev.type==="text"&&ra.next&&ra.next.type==="text";Un.walk(ra=>{if(ra.children)for(let da=0;da<ra.children.length;da++){let va=ra.children[da];if(!Gi(va))continue;let Aa=va.prev,to=va.next;Aa.value+= ` < $ { va . rawName } > ` +va.firstChild.value+ ` < /${va.rawName}>`+to.value,Aa.sourceSpan=new vn(Aa.sourceSpan.start,to.sourceSpan.end),Aa.isTrailingSpaceSensitive=to.isTrailingSpaceSensitive,Aa.hasTrailingSpaces=to.hasTrailingSpaces,ra.removeChild(va),da--,ra.removeChild(to)}})}function Xa(Un,Gi){if(Gi.parser==="html")return;let ra=/ { { ( . + ? ) } } / s ; Un . walk ( da => { if ( xn ( da ) ) for ( let va of da . children ) { if ( va . type !== "text" ) continue ; let Aa = va . sourceSpan . start , to = null , Bo = va . value . split ( ra ) ; for ( let Jo = 0 ; Jo < Bo . length ; Jo ++ , Aa = to ) { let Mo = Bo [ Jo ] ; if ( Jo % 2 === 0 ) { to = Aa . moveBy ( Mo . length ) , Mo . length > 0 && da . insertChildBefore ( va , { type : "text" , value : Mo , sourceSpan : new vn ( Aa , to ) } ) ; continue } to = Aa . moveBy ( Mo . length + 4 ) , da . insertChildBefore ( va , { type : "interpolation" , sourceSpan : new vn ( Aa , to ) , children : Mo . length === 0 ? [ ] : [ { type : "text" , value : Mo , sourceSpan : new vn ( Aa . moveBy ( 2 ) , to . moveBy ( - 2 ) ) } ] } ) } da . removeChild ( va ) } } ) } function Fa ( Un ) { Un . walk ( Gi => { if ( ! Gi . children ) return ; if ( Gi . children . length === 0 || Gi . children . length === 1 && Gi . children [ 0 ] . type === "text" && Vn ( Gi . children [ 0 ] . value ) . length === 0 ) { Gi . hasDanglingSpaces = Gi . children . length > 0 , Gi . children = [ ] ; return } let ra = ta ( Gi ) , da = Mi ( Gi ) ; if ( ! ra ) for ( let va = 0 ; va < Gi . children . length ; va ++ ) { let Aa = Gi . children [ va ] ; if ( Aa . type !== "text" ) continue ; let { leadingWhitespace : to , text : Bo , trailingWhitespace : Jo } = Fn ( Aa . value ) , Mo = Aa . prev , _s = Aa . next ; Bo ? ( Aa . value = Bo , Aa . sourceSpan = new vn ( Aa . sourceSpan . start . moveBy ( to . length ) , Aa . sourceSpan . end . moveBy ( - Jo . length ) ) , to && ( Mo && ( Mo . hasTrailingSpaces = ! 0 ) , Aa . hasLeadingSpaces = ! 0 ) , Jo && ( Aa . hasTrailingSpaces = ! 0 , _s && ( _s . hasLeadingSpaces = ! 0 ) ) ) : ( Gi . removeChild ( Aa ) , va -- , ( to || Jo ) && ( Mo && ( Mo . hasTrailingSpaces = ! 0 ) , _s && ( _s . hasLeadingSpaces = ! 0 ) ) ) } Gi . isWhitespaceSensitive = ra , Gi . isIndentationSensitive = da } ) } function Zo ( Un ) { Un . walk ( Gi => { Gi . isSelfClosing = ! Gi . children || Gi . type === "element" && ( Gi . tagDefinition . isVoid || Gi . startSourceSpan === Gi . endSourceSpan ) } ) } function Ui ( Un , Gi ) { Un . walk ( ra => { ra . type === "element" && ( ra . hasHtmComponentClosingTag = ra . endSourceSpan && /^<\s*\/\s*\/\s*>$/ . test ( Gi . originalText . slice ( ra . endSourceSpan . start . offset , ra . endSourceSpan . end . offset ) ) ) } ) } function Ta ( Un , Gi ) { Un . walk ( ra => { ra . cssDisplay = Nn ( ra , Gi ) } ) } function Fi ( Un , Gi ) { Un . walk ( ra => { let { children : da } = ra ; if ( da ) { if ( da . length === 0 ) { ra . isDanglingSpaceSensitive = ui ( ra ) ; return } for ( let va of da ) va . isLeadingSpaceSensitive = ea ( va , Gi ) , va . isTrailingSpaceSensitive = zi ( va , Gi ) ; for ( let va = 0 ; va < da . length ; va ++ ) { let Aa = da [ va ] ; Aa . isLead
2024-08-21 13:12:53 +08:00
2024-08-24 19:24:09 +08:00
` +Fn.replace(/^ \s * \n /,"")}di.exports={hasPragma:vn,insertPragma:Vn}}}),hc=Io({"src/language-html/loc.js"(Rn,di){kn();function vn(Fn){return Fn.sourceSpan.start.offset}function Vn(Fn){return Fn.sourceSpan.end.offset}di.exports={locStart:vn,locEnd:Vn}}}),Vc=Io({"src/language-html/print/tag.js"(Rn,di){kn();var vn=_c(),{isNonEmptyArray:Vn}=Gc(),{builders:{indent:Fn,join:En,line:xn,softline:Nn,hardline:ui},utils:{replaceTextEndOfLine:Mi}}=yc(),{locStart:ea,locEnd:zi}=hc(),{isTextLikeNode:ta,getLastDescendant:ki,isPreLikeNode:ji,hasPrettierIgnore:oa,shouldPreserveContent:Ra,isVueSfcBlock:Ba}=hu();function la(bo,Bs){return[bo.isSelfClosing?"":La(bo,Bs),Ea(bo,Bs)]}function La(bo,Bs){return bo.lastChild&&Un(bo.lastChild)?"":[Xa(bo,Bs),Zo(bo,Bs)]}function Ea(bo,Bs){return(bo.next?Fi(bo.next):aa(bo.parent))?"":[Ui(bo,Bs),Fa(bo,Bs)]}function Xa(bo,Bs){return aa(bo)?Ui(bo.lastChild,Bs):""}function Fa(bo,Bs){return Un(bo)?Zo(bo.parent,Bs):Gi(bo)?Mo(bo.next):""}function Zo(bo,Bs){if(vn(!bo.isSelfClosing),Ta(bo,Bs))return"";switch(bo.type){case"ieConditionalComment":return"<!";case"element":if(bo.hasHtmComponentClosingTag)return"<//";default:return ` < /${bo.rawName}`}}function Ui(bo,Bs){if(Ta(bo,Bs))return"";switch(bo.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"element":if(bo.isSelfClosing)return"/ > ";default:return" > "}}function Ta(bo,Bs){return!bo.isSelfClosing&&!bo.endSourceSpan&&(oa(bo)||Ra(bo.parent,Bs))}function Fi(bo){return bo.prev&&bo.prev.type!==" docType "&&!ta(bo.prev)&&bo.isLeadingSpaceSensitive&&!bo.hasLeadingSpaces}function aa(bo){return bo.lastChild&&bo.lastChild.isTrailingSpaceSensitive&&!bo.lastChild.hasTrailingSpaces&&!ta(ki(bo.lastChild))&&!ji(bo)}function Un(bo){return!bo.next&&!bo.hasTrailingSpaces&&bo.isTrailingSpaceSensitive&&ta(ki(bo))}function Gi(bo){return bo.next&&!ta(bo.next)&&ta(bo)&&bo.isTrailingSpaceSensitive&&!bo.hasTrailingSpaces}function ra(bo){let Bs=bo.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return Bs?Bs[1]?Bs[1].split(/\s+/):!0:!1}function da(bo){return!bo.prev&&bo.isLeadingSpaceSensitive&&!bo.hasLeadingSpaces}function va(bo,Bs,Xo){let Oo=bo.getValue();if(!Vn(Oo.attrs))return Oo.isSelfClosing?" ":" ";let ys=Oo.prev&&Oo.prev.type===" comment "&&ra(Oo.prev.value),tl=typeof ys==" boolean "?()=>ys:Array.isArray(ys)?dl=>ys.includes(dl.rawName):()=>!1,$s=bo.map(dl=>{let al=dl.getValue();return tl(al)?Mi(Bs.originalText.slice(ea(al),zi(al))):Xo()}," attrs "),pl=Oo.type===" element "&&Oo.fullName===" script "&&Oo.attrs.length===1&&Oo.attrs[0].fullName===" src "&&Oo.children.length===0,Vo=Bs.singleAttributePerLine&&Oo.attrs.length>1&&!Ba(Oo,Bs)?ui:xn,As=[Fn([pl?" ":xn,En(Vo,$s)])];return Oo.firstChild&&da(Oo.firstChild)||Oo.isSelfClosing&&aa(Oo.parent)||pl?As.push(Oo.isSelfClosing?" ":" "):As.push(Bs.bracketSameLine?Oo.isSelfClosing?" ":" ":Oo.isSelfClosing?xn:Nn),As}function Aa(bo){return bo.firstChild&&da(bo.firstChild)?" ":_s(bo)}function to(bo,Bs,Xo){let Oo=bo.getValue();return[Bo(Oo,Bs),va(bo,Bs,Xo),Oo.isSelfClosing?" ":Aa(Oo)]}function Bo(bo,Bs){return bo.prev&&Gi(bo.prev)?" ":[Jo(bo,Bs),Mo(bo)]}function Jo(bo,Bs){return da(bo)?_s(bo.parent):Fi(bo)?Ui(bo.prev,Bs):" "}function Mo(bo){switch(bo.type){case" ieConditionalComment ":case" ieConditionalStartComment ":return`<!--[if ${bo.condition}`;case" ieConditionalEndComment ":return" <!-- < ! ";case" interpolation ":return" { { ";case" docType ":return" < ! DOCTYPE ";case" element ":if(bo.condition)return`<!--[if ${bo.condition}]><!--><${bo.rawName}`;default:return`<${bo.rawName}`}}function _s(bo){switch(vn(!bo.isSelfClosing),bo.type){case" ieConditionalComment ":return" ] > ";case" element ":if(bo.condition)return" > <!-- < ! [ endif ] -- > ";default:return" > " } } di . exports = { printClosingTag : la , printClosingTagStart : La , printClosingTagStartMarker : Zo , printClosingTagEndMarker : Ui , printClosingTagSuffix : Fa , printClosingTagEnd : Ea , needsToBorrowLastChildClosingTagEndMarker : aa , needsToBorrowParentClosingTagStartMarker : Un , needsToBorrowPrevClosingTagEndMarker : Fi , printOpeningTag : to , printOpeningTagSt
` ||Zo===" \f "||Zo===" \r "}function xn(Zo){var Ui,Ta=Zo.exec(vn.substring(La));if(Ta)return Ui=Ta[0],La+=Ui.length,Ui}for(var Nn=vn.length,ui=/^[ \t \n \r \u 000c]+/,Mi=/^[, \t \n \r \u 000c]+/,ea=/^[^ \t \n \r \u 000c]+/,zi=/[,]+ $ /,ta=/^ \d + $ /,ki=/^-?(?:[0-9]+|[0-9]* \. [0-9]+)(?:[eE][+-]?[0-9]+)? $ /,ji,oa,Ra,Ba,la,La=0,Ea=[];;){if(xn(Mi),La>=Nn)return Ea;ji=xn(ea),oa=[],ji.slice(-1)===","?(ji=ji.replace(zi,""),Fa()):Xa()}function Xa(){for(xn(ui),Ra="",Ba="in descriptor";;){if(la=vn.charAt(La),Ba==="in descriptor")if(En(la))Ra&&(oa.push(Ra),Ra="",Ba="after descriptor");else if(la===","){La+=1,Ra&&oa.push(Ra),Fa();return}else if(la==="(")Ra=Ra+la,Ba="in parens";else if(la===""){Ra&&oa.push(Ra),Fa();return}else Ra=Ra+la;else if(Ba==="in parens")if(la===")")Ra=Ra+la,Ba="in descriptor";else if(la===""){oa.push(Ra),Fa();return}else Ra=Ra+la;else if(Ba==="after descriptor"&&!En(la))if(la===""){Fa();return}else Ba="in descriptor",La-=1;La+=1}}function Fa(){var Zo=!1,Ui,Ta,Fi,aa,Un={},Gi,ra,da,va,Aa;for(aa=0;aa<oa.length;aa++)Gi=oa[aa],ra=Gi[Gi.length-1],da=Gi.substring(0,Gi.length-1),va=parseInt(da,10),Aa=parseFloat(da),ta.test(da)&&ra==="w"?((Ui||Ta)&&(Zo=!0),va===0?Zo=!0:Ui=va):ki.test(da)&&ra==="x"?((Ui||Ta||Fi)&&(Zo=!0),Aa<0?Zo=!0:Ta=Aa):ta.test(da)&&ra==="h"?((Fi||Ta)&&(Zo=!0),va===0?Zo=!0:Fi=va):Zo=!0;Zo?Fn&&Fn.error&&Fn.error("Invalid srcset descriptor found in '"+vn+"' at '"+Gi+"'."):(Un.url=ji,Ui&&(Un.w=Ui),Ta&&(Un.d=Ta),Fi&&(Un.h=Fi),Ea.push(Un))}}})}}),Yc=Io({"src/language-html/syntax-attribute.js"(Rn,di){kn();var vn=Hc(),{builders:{ifBreak:Vn,join:Fn,line:En}}=yc();function xn(ui){let Mi=vn(ui,{logger:{error(Xa){throw new Error(Xa)}}}),ea=Mi.some(Xa=>{let{w:Fa}=Xa;return Fa}),zi=Mi.some(Xa=>{let{h:Fa}=Xa;return Fa}),ta=Mi.some(Xa=>{let{d:Fa}=Xa;return Fa});if(ea+zi+ta>1)throw new Error("Mixed descriptor in srcset is not supported");let ki=ea?"w":zi?"h":"d",ji=ea?"w":zi?"h":"x",oa=Xa=>Math.max(...Xa),Ra=Mi.map(Xa=>Xa.url),Ba=oa(Ra.map(Xa=>Xa.length)),la=Mi.map(Xa=>Xa[ki]).map(Xa=>Xa?Xa.toString():""),La=la.map(Xa=>{let Fa=Xa.indexOf(".");return Fa===-1?Xa.length:Fa}),Ea=oa(La);return Fn([",",En],Ra.map((Xa,Fa)=>{let Zo=[Xa],Ui=la[Fa];if(Ui){let Ta=Ba-Xa.length+1,Fi=Ea-La[Fa],aa=" ".repeat(Ta+Fi);Zo.push(Vn(aa," "),Ui+ji)}return Zo}))}function Nn(ui){return ui.trim().split(/ \s +/).join(" ")}di.exports={printImgSrcset:xn,printClassNames:Nn}}}),Zs=Io({"src/language-html/syntax-vue.js"(Rn,di){kn();var{builders:{group:vn}}=yc();function Vn(Nn,ui){let{left:Mi,operator:ea,right:zi}=Fn(Nn);return[vn(ui( ` function _ ( $ { Mi } ) { } ` ,{parser:"babel",__isVueForBindingLeft:!0}))," ",ea," ",ui(zi,{parser:"__js_expression"},{stripTrailingHardline:!0})]}function Fn(Nn){let ui=/(.*?) \s +(in|of) \s +(.*)/s,Mi=/,([^, \] }]*)(?:,([^, \] }]*))? $ /,ea=/^ \( | \) $ /g,zi=Nn.match(ui);if(!zi)return;let ta={};if(ta.for=zi[3].trim(),!ta.for)return;let ki=zi[1].trim().replace(ea,""),ji=ki.match(Mi);ji?(ta.alias=ki.replace(Mi,""),ta.iterator1=ji[1].trim(),ji[2]&&(ta.iterator2=ji[2].trim())):ta.alias=ki;let oa=[ta.alias,ta.iterator1,ta.iterator2];if(!oa.some((Ra,Ba)=>!Ra&&(Ba===0||oa.slice(Ba+1).some(Boolean))))return{left:oa.filter(Boolean).join(","),operator:zi[2],right:ta.for}}function En(Nn,ui){return ui( ` function _ ( $ { Nn } ) { } ` ,{parser:"babel",__isVueBindings:!0})}function xn(Nn){let ui=/^(?:[ \w $ ]+| \( [^)]* \) ) \s *=>|^function \s * \( /,Mi=/^[ $ A-Z_a-z][ \w $ ]*(?: \. [ $ A-Z_a-z][ \w $ ]*| \[ '[^']*']| \[ "[^"]*"]| \[ \d +]| \[ [ $ A-Z_a-z][ \w $ ]*])* $ /,ea=Nn.trim();return ui.test(ea)||Mi.test(ea)}di.exports={isVueEventBindingExpression:xn,printVueFor:Vn,printVueBindings:En}}}),Dl=Io({"src/language-html/get-node-content.js"(Rn,di){kn();var{needsToBorrowParentClosingTagStartMarker:vn,printClosingTagStartMarker:Vn,needsToBorrowLastChildClosingTagEndMarker:Fn,printClosingTagEndMarker:En,needsToBorrowParentOpeningTagEndMarker:xn,printOpeningTagEndMarker:Nn}=Vc();function ui(Mi,ea){let zi=Mi.startSourceSpan.end.offset;Mi.firstChild&&xn(Mi.firstChild)&&(zi-=Nn(Mi).length);let ta=Mi.endSourceSpan.start.offset;return Mi.lastChild&&vn(Mi.lastChild)?ta+=Vn(Mi,ea).length:Fn(Mi)&&(ta-=En(Mi.lastChild,ea).length),ea.orig
2024-08-21 13:12:53 +08:00
2024-08-24 19:24:09 +08:00
$ { En } ` }di.exports={isPragma:vn,hasPragma:Vn,insertPragma:Fn}}}),yp=Io({"src/language-yaml/loc.js"(Rn,di){kn();function vn(Fn){return Fn.position.start.offset}function Vn(Fn){return Fn.position.end.offset}di.exports={locStart:vn,locEnd:Vn}}}),Zc=Io({"src/language-yaml/embed.js"(Rn,di){kn();function vn(Vn,Fn,En,xn){if(Vn.getValue().type==="root"&&xn.filepath&&/(?:[/ \\ ]|^) \. (?:prettier|stylelint|lintstaged)rc $ /.test(xn.filepath))return En(xn.originalText,Object.assign(Object.assign({},xn),{},{parser:"json"}))}di.exports=vn}}),hp=Io({"src/language-yaml/utils.js"(Rn,di){kn();var{getLast:vn,isNonEmptyArray:Vn}=Gc();function Fn(Ui,Ta){let Fi=0,aa=Ui.stack.length-1;for(let Un=0;Un<aa;Un++){let Gi=Ui.stack[Un];En(Gi)&&Ta(Gi)&&Fi++}return Fi}function En(Ui,Ta){return Ui&&typeof Ui.type=="string"&&(!Ta||Ta.includes(Ui.type))}function xn(Ui,Ta,Fi){return Ta("children"in Ui?Object.assign(Object.assign({},Ui),{},{children:Ui.children.map(aa=>xn(aa,Ta,Ui))}):Ui,Fi)}function Nn(Ui,Ta,Fi){Object.defineProperty(Ui,Ta,{get:Fi,enumerable:!1})}function ui(Ui,Ta){let Fi=0,aa=Ta.length;for(let Un=Ui.position.end.offset-1;Un<aa;Un++){let Gi=Ta[Un];if(Gi=== `
2024-08-21 13:12:53 +08:00
` &&Fi++,Fi===1&&/ \S /.test(Gi))return!1;if(Fi===2)return!0}return!1}function Mi(Ui){switch(Ui.getValue().type){case"tag":case"anchor":case"comment":return!1}let Ta=Ui.stack.length;for(let Fi=1;Fi<Ta;Fi++){let aa=Ui.stack[Fi],Un=Ui.stack[Fi-1];if(Array.isArray(Un)&&typeof aa=="number"&&aa!==Un.length-1)return!1}return!0}function ea(Ui){return Vn(Ui.children)?ea(vn(Ui.children)):Ui}function zi(Ui){return Ui.value.trim()==="prettier-ignore"}function ta(Ui){let Ta=Ui.getValue();if(Ta.type==="documentBody"){let Fi=Ui.getParentNode();return La(Fi.head)&&zi(vn(Fi.head.endComments))}return oa(Ta)&&zi(vn(Ta.leadingComments))}function ki(Ui){return!Vn(Ui.children)&&!ji(Ui)}function ji(Ui){return oa(Ui)||Ra(Ui)||Ba(Ui)||la(Ui)||La(Ui)}function oa(Ui){return Vn(Ui==null?void 0:Ui.leadingComments)}function Ra(Ui){return Vn(Ui==null?void 0:Ui.middleComments)}function Ba(Ui){return Ui==null?void 0:Ui.indicatorComment}function la(Ui){return Ui==null?void 0:Ui.trailingComment}function La(Ui){return Vn(Ui==null?void 0:Ui.endComments)}function Ea(Ui){let Ta=[],Fi;for(let aa of Ui.split(/( +)/))aa!==" "?Fi===" "?Ta.push(aa):Ta.push((Ta.pop()||"")+aa):Fi===void 0&&Ta.unshift(""),Fi=aa;return Fi===" "&&Ta.push((Ta.pop()||"")+" "),Ta[0]===""&&(Ta.shift(),Ta.unshift(" "+(Ta.shift()||""))),Ta}function Xa(Ui,Ta,Fi){let aa=Ta.split( `
` ).map((Un,Gi,ra)=>Gi===0&&Gi===ra.length-1?Un:Gi!==0&&Gi!==ra.length-1?Un.trim():Gi===0?Un.trimEnd():Un.trimStart());return Fi.proseWrap==="preserve"?aa.map(Un=>Un.length===0?[]:[Un]):aa.map(Un=>Un.length===0?[]:Ea(Un)).reduce((Un,Gi,ra)=>ra!==0&&aa[ra-1].length>0&&Gi.length>0&&!(Ui==="quoteDouble"&&vn(vn(Un)).endsWith(" \\ "))?[...Un.slice(0,-1),[...vn(Un),...Gi]]:[...Un,Gi],[]).map(Un=>Fi.proseWrap==="never"?[Un.join(" ")]:Un)}function Fa(Ui,Ta){let{parentIndent:Fi,isLastDescendant:aa,options:Un}=Ta,Gi=Ui.position.start.line===Ui.position.end.line?"":Un.originalText.slice(Ui.position.start.offset,Ui.position.end.offset).match(/^[^ \n ]* \n (.*) $ /s)[1],ra;if(Ui.indent===null){let Aa=Gi.match(/^(?<leadingSpace> *)[^ \n \r ]/m);ra=Aa?Aa.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else ra=Ui.indent-1+Fi;let da=Gi.split( `
2024-08-24 19:24:09 +08:00
` ).map(Aa=>Aa.slice(ra));if(Un.proseWrap==="preserve"||Ui.type==="blockLiteral")return va(da.map(Aa=>Aa.length===0?[]:[Aa]));return va(da.map(Aa=>Aa.length===0?[]:Ea(Aa)).reduce((Aa,to,Bo)=>Bo!==0&&da[Bo-1].length>0&&to.length>0&&!/^ \s /.test(to[0])&&!/^ \s | \s $ /.test(vn(Aa))?[...Aa.slice(0,-1),[...vn(Aa),...to]]:[...Aa,to],[]).map(Aa=>Aa.reduce((to,Bo)=>to.length>0&&/ \s $ /.test(vn(to))?[...to.slice(0,-1),vn(to)+" "+Bo]:[...to,Bo],[])).map(Aa=>Un.proseWrap==="never"?[Aa.join(" ")]:Aa));function va(Aa){if(Ui.chomping==="keep")return vn(Aa).length===0?Aa.slice(0,-1):Aa;let to=0;for(let Bo=Aa.length-1;Bo>=0&&Aa[Bo].length===0;Bo--)to++;return to===0?Aa:to>=2&&!aa?Aa.slice(0,-(to-1)):Aa.slice(0,-to)}}function Zo(Ui){if(!Ui)return!0;switch(Ui.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}di.exports={getLast:vn,getAncestorCount:Fn,isNode:En,isEmptyNode:ki,isInlineNode:Zo,mapNode:xn,defineShortcut:Nn,isNextLineEmpty:ui,isLastDescendantNode:Mi,getBlockValueLineContents:Fa,getFlowScalarLineContents:Xa,getLastDescendantNode:ea,hasPrettierIgnore:ta,hasLeadingComments:oa,hasMiddleComments:Ra,hasIndicatorComment:Ba,hasTrailingComment:la,hasEndComments:La}}}),Tp=Io({"src/language-yaml/print-preprocess.js"(Rn,di){kn();var{defineShortcut:vn,mapNode:Vn}=hp();function Fn(xn){return Vn(xn,En)}function En(xn){switch(xn.type){case"document":vn(xn,"head",()=>xn.children[0]),vn(xn,"body",()=>xn.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":vn(xn,"content",()=>xn.children[0]);break;case"mappingItem":case"flowMappingItem":vn(xn,"key",()=>xn.children[0]),vn(xn,"value",()=>xn.children[1]);break}return xn}di.exports=Fn}}),Ep=Io({"src/language-yaml/print/misc.js"(Rn,di){kn();var{builders:{softline:vn,align:Vn}}=yc(),{hasEndComments:Fn,isNextLineEmpty:En,isNode:xn}=hp(),Nn=new WeakMap;function ui(zi,ta){let ki=zi.getValue(),ji=zi.stack[0],oa;return Nn.has(ji)?oa=Nn.get(ji):(oa=new Set,Nn.set(ji,oa)),!oa.has(ki.position.end.line)&&(oa.add(ki.position.end.line),En(ki,ta)&&!Mi(zi.getParentNode()))?vn:""}function Mi(zi){return Fn(zi)&&!xn(zi,["documentHead","documentBody","flowMapping","flowSequence"])}function ea(zi,ta){return Vn(" ".repeat(zi),ta)}di.exports={alignWithSpaces:ea,shouldPrintEndComments:Mi,printNextEmptyLine:ui}}}),Qh=Io({"src/language-yaml/print/flow-mapping-sequence.js"(Rn,di){kn();var{builders:{ifBreak:vn,line:Vn,softline:Fn,hardline:En,join:xn}}=yc(),{isEmptyNode:Nn,getLast:ui,hasEndComments:Mi}=hp(),{printNextEmptyLine:ea,alignWithSpaces:zi}=Ep();function ta(ji,oa,Ra){let Ba=ji.getValue(),la=Ba.type==="flowMapping",La=la?"{":"[",Ea=la?"}":"]",Xa=Fn;la&&Ba.children.length>0&&Ra.bracketSpacing&&(Xa=Vn);let Fa=ui(Ba.children),Zo=Fa&&Fa.type==="flowMappingItem"&&Nn(Fa.key)&&Nn(Fa.value);return[La,zi(Ra.tabWidth,[Xa,ki(ji,oa,Ra),Ra.trailingComma==="none"?"":vn(","),Mi(Ba)?[En,xn(En,ji.map(oa,"endComments"))]:""]),Zo?"":Xa,Ea]}function ki(ji,oa,Ra){let Ba=ji.getValue();return ji.map((la,La)=>[oa(),La===Ba.children.length-1?"":[",",Vn,Ba.children[La].position.start.line!==Ba.children[La+1].position.start.line?ea(la,Ra.originalText):""]],"children")}di.exports={printFlowMapping:ta,printFlowSequence:ta}}}),i0=Io({"src/language-yaml/print/mapping-item.js"(Rn,di){kn();var{builders:{conditionalGroup:vn,group:Vn,hardline:Fn,ifBreak:En,join:xn,line:Nn}}=yc(),{hasLeadingComments:ui,hasMiddleComments:Mi,hasTrailingComment:ea,hasEndComments:zi,isNode:ta,isEmptyNode:ki,isInlineNode:ji}=hp(),{alignWithSpaces:oa}=Ep();function Ra(Ea,Xa,Fa,Zo,Ui){let{key:Ta,value:Fi}=Ea,aa=ki(Ta),Un=ki(Fi);if(aa&&Un)return": ";let Gi=Zo("key"),ra=la(Ea)?" ":"";if(Un)return Ea.type==="flowMappingItem"&&Xa.type==="flowMapping"?Gi:Ea.type==="mappingItem"&&Ba(Ta.content,Ui)&&!ea(Ta.content)&&(!Xa.tag||Xa.tag.value!=="tag:yaml.org,2002:set")?[Gi,ra,":"]:["? ",oa(2,Gi)];let da=Zo("value");if(aa)return[": ",oa(2,da)];if(ui(Fi)||!ji(Ta.content))return["? ",oa(2,Gi),Fn,xn("",Fa.map(Zo,"value","leadingComments").map(Mo=>[Mo,Fn])),":
` );case"always":return!/[ \n ]/.test(Ea.value);default:return!1}}function la(Ea){return Ea.key.content&&Ea.key.content.type==="alias"}function La(Ea){if(!Ea)return!0;switch(Ea.type){case"plain":case"quoteDouble":case"quoteSingle":return Ea.position.start.line===Ea.position.end.line;case"alias":return!0;default:return!1}}di.exports=Ra}}),m0=Io({"src/language-yaml/print/block.js"(Rn,di){kn();var{builders:{dedent:vn,dedentToRoot:Vn,fill:Fn,hardline:En,join:xn,line:Nn,literalline:ui,markAsRoot:Mi},utils:{getDocParts:ea}}=yc(),{getAncestorCount:zi,getBlockValueLineContents:ta,hasIndicatorComment:ki,isLastDescendantNode:ji,isNode:oa}=hp(),{alignWithSpaces:Ra}=Ep();function Ba(la,La,Ea){let Xa=la.getValue(),Fa=zi(la,aa=>oa(aa,["sequence","mapping"])),Zo=ji(la),Ui=[Xa.type==="blockFolded"?">":"|"];Xa.indent!==null&&Ui.push(Xa.indent.toString()),Xa.chomping!=="clip"&&Ui.push(Xa.chomping==="keep"?"+":"-"),ki(Xa)&&Ui.push(" ",La("indicatorComment"));let Ta=ta(Xa,{parentIndent:Fa,isLastDescendant:Zo,options:Ea}),Fi=[];for(let[aa,Un]of Ta.entries())aa===0&&Fi.push(En),Fi.push(Fn(ea(xn(Nn,Un)))),aa!==Ta.length-1?Fi.push(Un.length===0?En:Mi(ui)):Xa.chomping==="keep"&&Zo&&Fi.push(Vn(Un.length===0?En:ui));return Xa.indent===null?Ui.push(vn(Ra(Ea.tabWidth,Fi))):Ui.push(Vn(Ra(Xa.indent-1+Fa,Fi))),Ui}di.exports=Ba}}),Yp=Io({"src/language-yaml/printer-yaml.js"(Rn,di){kn();var{builders:{breakParent:vn,fill:Vn,group:Fn,hardline:En,join:xn,line:Nn,lineSuffix:ui,literalline:Mi},utils:{getDocParts:ea,replaceTextEndOfLine:zi}}=yc(),{isPreviousLineEmpty:ta}=Gc(),{insertPragma:ki,isPragma:ji}=nf(),{locStart:oa}=yp(),Ra=Zc(),{getFlowScalarLineContents:Ba,getLastDescendantNode:la,hasLeadingComments:La,hasMiddleComments:Ea,hasTrailingComment:Xa,hasEndComments:Fa,hasPrettierIgnore:Zo,isLastDescendantNode:Ui,isNode:Ta,isInlineNode:Fi}=hp(),aa=Tp(),{alignWithSpaces:Un,printNextEmptyLine:Gi,shouldPrintEndComments:ra}=Ep(),{printFlowMapping:da,printFlowSequence:va}=Qh(),Aa=i0(),to=m0();function Bo(Oo,ys,tl){let $ s=Oo.getValue(),pl=[]; $ s.type!=="mappingValue"&&La( $ s)&&pl.push([xn(En,Oo.map(tl,"leadingComments")),En]);let{tag:Vo,anchor:As}= $ s;Vo&&pl.push(tl("tag")),Vo&&As&&pl.push(" "),As&&pl.push(tl("anchor"));let dl="";Ta( $ s,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!Ui(Oo)&&(dl=Gi(Oo,ys.originalText)),(Vo||As)&&(Ta( $ s,["sequence","mapping"])&&!Ea( $ s)?pl.push(En):pl.push(" ")),Ea( $ s)&&pl.push([ $ s.middleComments.length===1?"":En,xn(En,Oo.map(tl,"middleComments")),En]);let al=Oo.getParentNode();return Zo(Oo)?pl.push(zi(ys.originalText.slice( $ s.position.start.offset, $ s.position.end.offset).trimEnd(),Mi)):pl.push(Fn(Jo( $ s,al,Oo,ys,tl))),Xa( $ s)&&!Ta( $ s,["document","documentHead"])&&pl.push(ui([ $ s.type==="mappingValue"&&! $ s.content?"":" ",al.type==="mappingKey"&&Oo.getParentNode(2).type==="mapping"&&Fi( $ s)?"":vn,tl("trailingComment")])),ra( $ s)&&pl.push(Un( $ s.type==="sequenceItem"?2:0,[En,xn(En,Oo.map(Ou=>[ta(ys.originalText,Ou.getValue(),oa)?En:"",tl()],"endComments"))])),pl.push(dl),pl}function Jo(Oo,ys,tl, $ s,pl){switch(Oo.type){case"root":{let{children:Vo}=Oo,As=[];tl.each((al,Ou)=>{let Rs=Vo[Ou],fs=Vo[Ou+1];Ou!==0&&As.push(En),As.push(pl()),_s(Rs,fs)?(As.push(En,"..."),Xa(Rs)&&As.push(" ",pl("trailingComment"))):fs&&!Xa(fs.head)&&As.push(En,"---")},"children");let dl=la(Oo);return(!Ta(dl,["blockLiteral","blockFolded"])||dl.chomping!=="keep")&&As.push(En),As}case"document":{let Vo=ys.children[tl.getName()+1],As=[];return bo(Oo,Vo,ys, $ s)==="head"&&((Oo.head.children.length>0||Oo.head.endComments.length>0)&&As.push(pl("head")),Xa(Oo.head)?As.push(["---"," ",pl(["head","trailingComment"])]):As.push("---")),Mo(Oo)&&As.push(pl("body")),xn(En,As)}case"documentHead":return xn(En,[...tl.map(pl,"children"),...tl.map(pl,"endComments")]);case"documentBody":{let{children:Vo,endComments:As}=Oo,dl="";if(Vo.length>0&&As.length>0){let al=la(Oo);Ta(al,["blockFolded","blockLiteral"])?al.chomping!=="keep"&&(dl=[En,En]):dl=En}return[xn(En,tl.map(pl,"children")),dl,xn(En,tl.map(pl,"endComments"))]}case"directive":return["%",xn(" ",[Oo.name,...Oo.pa
` ,hs={EOL:Fo,tmpdir:Eo,tmpDir:Ki,networkInterfaces:Ln,getNetworkInterfaces:Vi,release:hn,type:Zn,cpus:Lr,totalmem:Vs,freemem:Us,uptime:Ds,loadavg:ps,hostname:Wl,endianness:gc}}}),Uo=cs({"node-modules-polyfills-commonjs:os"(Mn,Ia){xs();var xa=(An(),Au(Nc));if(xa&&xa.default){Ia.exports=xa.default;for(let Na in xa)Ia.exports[Na]=xa[Na]}else xa&&(Ia.exports=xa)}}),cu=cs({"node_modules/detect-newline/index.js"(Mn,Ia){xs();var xa=Na=>{if(typeof Na!="string")throw new TypeError("Expected a string");let Ha=Na.match(/(?: \r ? \n )/g)||[];if(Ha.length===0)return;let _o=Ha.filter(vo=>vo=== ` \ r
2024-08-21 13:12:53 +08:00
` ).length,ro=Ha.length-_o;return _o>ro? ` \ r
` : `
2024-08-24 19:24:09 +08:00
` };Ia.exports=xa,Ia.exports.graceful=Na=>typeof Na=="string"&&xa(Na)|| `
` }}),Io=cs({"node_modules/jest-docblock/build/index.js"(Mn){xs(),Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.extract=fa,Mn.parse=xo,Mn.parseWithComments=ss,Mn.print=as,Mn.strip=ko;function Ia(){let js=Uo();return Ia=function(){return js},js}function xa(){let js=Na(cu());return xa=function(){return js},js}function Na(js){return js&&js.__esModule?js:{default:js}}var Ha=/ \* \/ $ /,_o=/^ \/ \* \* ?/,ro=/^ \s *( \/ \* \* ?(.| \r ? \n )*? \* \/ )/,vo=/(^| \s +) \/ \/ ([^ \r \n ]*)/g,za=/^( \r ? \n )+/,fo=/(?:^| \r ? \n ) *(@[^ \r \n ]*?) * \r ? \n *(?![^@ \r \n ]* \/ \/ [^]*)([^@ \r \n \s ][^@ \r \n ]+?) * \r ? \n /g,zn=/(?:^| \r ? \n ) *@( \S +) *([^ \r \n ]*)/g,Sn=/( \r ? \n |^) * \* ?/g,ka=[];function fa(js){let zs=js.match(ro);return zs?zs[0].trimLeft():""}function ko(js){let zs=js.match(ro);return zs&&zs[0]?js.substring(zs[0].length):js}function xo(js){return ss(js).pragmas}function ss(js){let zs=(0,xa().default)(js)||Ia().EOL;js=js.replace(_o,"").replace(Ha,"").replace(Sn," $ 1");let nl="";for(;nl!==js;)nl=js,js=js.replace(fo, ` $ { zs } $1 $2$ { zs } ` );js=js.replace(za,"").trimRight();let xu=Object.create(null),zu=js.replace(zn,"").replace(za,"").trimRight(),cc;for(;cc=zn.exec(js);){let Mc=cc[2].replace(vo,"");typeof xu[cc[1]]=="string"||Array.isArray(xu[cc[1]])?xu[cc[1]]=ka.concat(xu[cc[1]],Mc):xu[cc[1]]=Mc}return{comments:zu,pragmas:xu}}function as(js){let{comments:zs="",pragmas:nl={}}=js,xu=(0,xa().default)(zs)||Ia().EOL,zu="/**",cc=" *",Mc=" */",Ic=Object.keys(nl),Fc=Ic.map(kc=>No(kc,nl[kc])).reduce((kc,Bu)=>kc.concat(Bu),[]).map(kc=> ` $ { cc } $ { kc } $ { xu } ` ).join("");if(!zs){if(Ic.length===0)return"";if(Ic.length===1&&!Array.isArray(nl[Ic[0]])){let kc=nl[Ic[0]];return ` $ { zu } $ { No ( Ic [ 0 ] , kc ) [ 0 ] } $ { Mc } ` }}let Bc=zs.split(xu).map(kc=> ` $ { cc } $ { kc } ` ).join(xu)+xu;return zu+xu+(zs?Bc:"")+(zs&&Ic.length?cc+xu:"")+Fc+Mc}function No(js,zs){return ka.concat(zs).map(nl=> ` @ $ { js } $ { nl } ` .trim())}}}),vu=cs({"src/common/end-of-line.js"(Mn,Ia){xs();function xa(ro){let vo=ro.indexOf(" \r ");return vo>=0?ro.charAt(vo+1)=== `
2024-08-21 13:12:53 +08:00
` ?"crlf":"cr":"lf"}function Na(ro){switch(ro){case"cr":return" \r ";case"crlf":return ` \ r
` ;default:return `
` }}function Ha(ro,vo){let za;switch(vo){case `
` :za=/ \n /g;break;case" \r ":za=/ \r /g;break;case ` \ r
` :za=/ \r \n /g;break;default:throw new Error( ` Unexpected "eol" $ { JSON . stringify ( vo ) } . ` )}let fo=ro.match(za);return fo?fo.length:0}function _o(ro){return ro.replace(/ \r \n ?/g, `
2024-08-24 19:24:09 +08:00
` )}Ia.exports={guessEndOfLine:xa,convertEndOfLineToChars:Na,countEndOfLineChars:Ha,normalizeEndOfLine:_o}}}),Ul=cs({"src/language-js/utils/get-shebang.js"(Mn,Ia){xs();function xa(Na){if(!Na.startsWith("#!"))return"";let Ha=Na.indexOf( `
` );return Ha===-1?Na:Na.slice(0,Ha)}Ia.exports=xa}}),tc=cs({"src/language-js/pragma.js"(Mn,Ia){xs();var{parseWithComments:xa,strip:Na,extract:Ha,print:_o}=Io(),{normalizeEndOfLine:ro}=vu(),vo=Ul();function za(Sn){let ka=vo(Sn);ka&&(Sn=Sn.slice(ka.length+1));let fa=Ha(Sn),{pragmas:ko,comments:xo}=xa(fa);return{shebang:ka,text:Sn,pragmas:ko,comments:xo}}function fo(Sn){let ka=Object.keys(za(Sn).pragmas);return ka.includes("prettier")||ka.includes("format")}function zn(Sn){let{shebang:ka,text:fa,pragmas:ko,comments:xo}=za(Sn),ss=Na(fa),as=_o({pragmas:Object.assign({format:""},ko),comments:xo.trimStart()});return(ka? ` $ { ka }
2024-08-21 13:12:53 +08:00
` :"")+ro(as)+(ss.startsWith( `
` )? `
` : `
2024-08-24 19:24:09 +08:00
` )+ss}Ia.exports={hasPragma:fo,insertPragma:zn}}}),Fu=cs({"src/language-css/pragma.js"(Mn,Ia){xs();var xa=tc(),Na=Pc();function Ha(ro){return xa.hasPragma(Na(ro).content)}function _o(ro){let{frontMatter:vo,content:za}=Na(ro);return(vo?vo.raw+ `
2024-08-21 13:12:53 +08:00
2024-08-24 19:24:09 +08:00
` :"")+xa.insertPragma(za)}Ia.exports={hasPragma:Ha,insertPragma:_o}}}),Ku=cs({"src/utils/text/skip.js"(Mn,Ia){xs();function xa(vo){return(za,fo,zn)=>{let Sn=zn&&zn.backwards;if(fo===!1)return!1;let{length:ka}=za,fa=fo;for(;fa>=0&&fa<ka;){let ko=za.charAt(fa);if(vo instanceof RegExp){if(!vo.test(ko))return fa}else if(!vo.includes(ko))return fa;Sn?fa--:fa++}return fa===-1||fa===ka?fa:!1}}var Na=xa(/ \s /),Ha=xa(" "),_o=xa(",; "),ro=xa(/[^ \n \r ]/);Ia.exports={skipWhitespace:Na,skipSpaces:Ha,skipToLineEnd:_o,skipEverythingButNewLine:ro}}}),kn=cs({"src/utils/line-column-to-index.js"(Mn,Ia){xs(),Ia.exports=function(xa,Na){let Ha=0;for(let _o=0;_o<xa.line-1;++_o)Ha=Na.indexOf( `
` ,Ha)+1;return Ha+xa.column}}}),rs=cs({"src/language-css/loc.js"(Mn,Ia){xs();var{skipEverythingButNewLine:xa}=Ku(),Na=Lu(),Ha=kn();function _o(fa,ko){return typeof fa.sourceIndex=="number"?fa.sourceIndex:fa.source?Ha(fa.source.start,ko)-1:null}function ro(fa,ko){if(fa.type==="css-comment"&&fa.inline)return xa(ko,fa.source.startOffset);let xo=fa.nodes&&Na(fa.nodes);return xo&&fa.source&&!fa.source.end&&(fa=xo),fa.source&&fa.source.end?Ha(fa.source.end,ko):null}function vo(fa,ko){fa.source&&(fa.source.startOffset=_o(fa,ko),fa.source.endOffset=ro(fa,ko));for(let xo in fa){let ss=fa[xo];xo==="source"||!ss||typeof ss!="object"||(ss.type==="value-root"||ss.type==="value-unknown"?za(ss,fo(fa),ss.text||ss.value):vo(ss,ko))}}function za(fa,ko,xo){fa.source&&(fa.source.startOffset=_o(fa,xo)+ko,fa.source.endOffset=ro(fa,xo)+ko);for(let ss in fa){let as=fa[ss];ss==="source"||!as||typeof as!="object"||za(as,ko,xo)}}function fo(fa){let ko=fa.source.startOffset;return typeof fa.prop=="string"&&(ko+=fa.prop.length),fa.type==="css-atrule"&&typeof fa.name=="string"&&(ko+=1+fa.name.length+fa.raws.afterName.match(/^ \s *:? \s */)[0].length),fa.type!=="css-atrule"&&fa.raws&&typeof fa.raws.between=="string"&&(ko+=fa.raws.between.length),ko}function zn(fa){let ko="initial",xo="initial",ss,as=!1,No=[];for(let js=0;js<fa.length;js++){let zs=fa[js];switch(ko){case"initial":if(zs==="'"){ko="single-quotes";continue}if(zs==='"'){ko="double-quotes";continue}if((zs==="u"||zs==="U")&&fa.slice(js,js+4).toLowerCase()==="url("){ko="url",js+=3;continue}if(zs==="*"&&fa[js-1]==="/"){ko="comment-block";continue}if(zs==="/"&&fa[js-1]==="/"){ko="comment-inline",ss=js-1;continue}continue;case"single-quotes":if(zs==="'"&&fa[js-1]!==" \\ "&&(ko=xo,xo="initial"),zs=== `
` ||zs===" \r ")return fa;continue;case"double-quotes":if(zs==='"'&&fa[js-1]!==" \\ "&&(ko=xo,xo="initial"),zs=== `
` ||zs===" \r ")return fa;continue;case"url":if(zs===")"&&(ko="initial"),zs=== `
` ||zs===" \r ")return fa;if(zs==="'"){ko="single-quotes",xo="url";continue}if(zs==='"'){ko="double-quotes",xo="url";continue}continue;case"comment-block":zs==="/"&&fa[js-1]==="*"&&(ko="initial");continue;case"comment-inline":(zs==='"'||zs==="'"||zs==="*")&&(as=!0),(zs=== `
` ||zs===" \r ")&&(as&&No.push([ss,js]),ko="initial",as=!1);continue}}for(let[js,zs]of No)fa=fa.slice(0,js)+fa.slice(js,zs).replace(/["'*]/g," ")+fa.slice(zs);return fa}function Sn(fa){return fa.source.startOffset}function ka(fa){return fa.source.endOffset}Ia.exports={locStart:Sn,locEnd:ka,calculateLoc:vo,replaceQuotesInInlineComments:zn}}}),Vl=cs({"src/utils/is-non-empty-array.js"(Mn,Ia){xs();function xa(Na){return Array.isArray(Na)&&Na.length>0}Ia.exports=xa}}),Eu=cs({"src/language-css/utils/has-scss-interpolation.js"(Mn,Ia){xs();var xa=Vl();function Na(Ha){if(xa(Ha)){for(let _o=Ha.length-1;_o>0;_o--)if(Ha[_o].type==="word"&&Ha[_o].value==="{"&&Ha[_o-1].type==="word"&&Ha[_o-1].value.endsWith("#"))return!0}return!1}Ia.exports=Na}}),ml=cs({"src/language-css/utils/has-string-or-function.js"(Mn,Ia){xs();function xa(Na){return Na.some(Ha=>Ha.type==="string"||Ha.type==="func")}Ia.exports=xa}}),Uu=cs({"src/language-css/utils/is-less-parser.js"(Mn,Ia){xs();function xa(Na){return Na.parser==="css"||Na.parser==="less"}Ia.exports=xa}}),Ac=cs({"src/language-css/utils/is-scss.js"(Mn,Ia){xs();function xa(Na,Ha){return Na==="less"||Na==="scss"?Na==="scss":/(?: \w \s *: \s *[^:}]+|#){|@import[^ \n ]+(?:url|,)/.test(Ha)}Ia.exports=xa}}),od=cs({"src/language-css/utils/is-scss-nested-property-node.js"(Mn,Ia){xs();function xa(Na){return Na.selector?Na.selector.replace(/ \/ \* .*? \* \/ /,"").replace(/ \/ \/ .* \n /,"").trim().endsWith(":"):!1}Ia.exports=xa}}),ld=cs({"src/language-css/utils/is-scss-variable.js"(Mn,Ia){xs();function xa(Na){return!!((Na==null?void 0:Na.type)==="word"&&Na.value.startsWith(" $ "))}Ia.exports=xa}}),_p=cs({"src/language-css/utils/stringify-node.js"(Mn,Ia){xs();function xa(Na){var Ha,_o,ro;if(Na.groups){var vo,za,fo;let as=((vo=Na.open)===null||vo===void 0?void 0:vo.value)||"",No=Na.groups.map(zs=>xa(zs)).join(((za=Na.groups[0])===null||za===void 0?void 0:za.type)==="comma_group"?",":""),js=((fo=Na.close)===null||fo===void 0?void 0:fo.value)||"";return as+No+js}let zn=((Ha=Na.raws)===null||Ha===void 0?void 0:Ha.before)||"",Sn=((_o=Na.raws)===null||_o===void 0?void 0:_o.quote)||"",ka=Na.type==="atword"?"@":"",fa=Na.value||"",ko=Na.unit||"",xo=Na.group?xa(Na.group):"",ss=((ro=Na.raws)===null||ro===void 0?void 0:ro.after)||"";return zn+Sn+ka+fa+Sn+ko+xo+ss}Ia.exports=xa}}),cp=cs({"src/language-css/utils/is-module-rule-name.js"(Mn,Ia){xs();var xa=new Set(["import","use","forward"]);function Na(Ha){return xa.has(Ha)}Ia.exports=Na}}),Oc=cs({"node_modules/postcss-values-parser/lib/node.js"(Mn,Ia){xs();var xa=function(Na,Ha){let _o=new Na.constructor;for(let ro in Na){if(!Na.hasOwnProperty(ro))continue;let vo=Na[ro],za=typeof vo;ro==="parent"&&za==="object"?Ha&&(_o[ro]=Ha):ro==="source"?_o[ro]=vo:vo instanceof Array?_o[ro]=vo.map(fo=>xa(fo,_o)):ro!=="before"&&ro!=="after"&&ro!=="between"&&ro!=="semicolon"&&(za==="object"&&vo!==null&&(vo=xa(vo)),_o[ro]=vo)}return _o};Ia.exports=class{constructor(Na){Na=Na||{},this.raws={before:"",after:""};for(let Ha in Na)this[Ha]=Na[Ha]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(Na){Na=Na||{};let Ha=xa(this);for(let _o in Na)Ha[_o]=Na[_o];return Ha}cloneBefore(Na){Na=Na||{};let Ha=this.clone(Na);return this.parent.insertBefore(this,Ha),Ha}cloneAfter(Na){Na=Na||{};let Ha=this.clone(Na);return this.parent.insertAfter(this,Ha),Ha}replaceWith(){let Na=Array.prototype.slice.call(arguments);if(this.parent){for(let Ha of Na)this.parent.insertBefore(this,Ha);this.remove()}return this}moveTo(Na){return this.cleanRaws(this.root()===Na.root()),this.remove(),Na.append(this),this}moveBefore(Na){return this.cleanRaws(this.root()===Na.root()),this.remove(),Na.parent.insertBefore(Na,this),this}moveAfter(Na){return this.cleanRaws(this.root()===Na.root()),this.remove(),Na.parent.insertAfter(Na,this),this}next(){let Na=this.parent.index(this);return this.parent.nodes[Na+1]}prev(){let Na=this.parent.index(this);return this.parent.nodes[Na-1]}toJSON(){let Na={};for(let Ha in this){if(!this.hasOwnProperty(
` ?(_o=1,ro+=1):_o+=1;return{line:ro,column:_o}}positionBy(Na){let Ha=this.source.start;if(Object(Na).index)Ha=this.positionInside(Na.index);else if(Object(Na).word){let _o=this.toString().indexOf(Na.word);_o!==-1&&(Ha=this.positionInside(_o))}return Ha}}}}),Hd=cs({"node_modules/postcss-values-parser/lib/container.js"(Mn,Ia){xs();var xa=Oc(),Na=class extends xa{constructor(Ha){super(Ha),this.nodes||(this.nodes=[])}push(Ha){return Ha.parent=this,this.nodes.push(Ha),this}each(Ha){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let _o=this.lastEach,ro,vo;if(this.indexes[_o]=0,!!this.nodes){for(;this.indexes[_o]<this.nodes.length&&(ro=this.indexes[_o],vo=Ha(this.nodes[ro],ro),vo!==!1);)this.indexes[_o]+=1;return delete this.indexes[_o],vo}}walk(Ha){return this.each((_o,ro)=>{let vo=Ha(_o,ro);return vo!==!1&&_o.walk&&(vo=_o.walk(Ha)),vo})}walkType(Ha,_o){if(!Ha||!_o)throw new Error("Parameters {type} and {callback} are required.");let ro=typeof Ha=="function";return this.walk((vo,za)=>{if(ro&&vo instanceof Ha||!ro&&vo.type===Ha)return _o.call(this,vo,za)})}append(Ha){return Ha.parent=this,this.nodes.push(Ha),this}prepend(Ha){return Ha.parent=this,this.nodes.unshift(Ha),this}cleanRaws(Ha){if(super.cleanRaws(Ha),this.nodes)for(let _o of this.nodes)_o.cleanRaws(Ha)}insertAfter(Ha,_o){let ro=this.index(Ha),vo;this.nodes.splice(ro+1,0,_o);for(let za in this.indexes)vo=this.indexes[za],ro<=vo&&(this.indexes[za]=vo+this.nodes.length);return this}insertBefore(Ha,_o){let ro=this.index(Ha),vo;this.nodes.splice(ro,0,_o);for(let za in this.indexes)vo=this.indexes[za],ro<=vo&&(this.indexes[za]=vo+this.nodes.length);return this}removeChild(Ha){Ha=this.index(Ha),this.nodes[Ha].parent=void 0,this.nodes.splice(Ha,1);let _o;for(let ro in this.indexes)_o=this.indexes[ro],_o>=Ha&&(this.indexes[ro]=_o-1);return this}removeAll(){for(let Ha of this.nodes)Ha.parent=void 0;return this.nodes=[],this}every(Ha){return this.nodes.every(Ha)}some(Ha){return this.nodes.some(Ha)}index(Ha){return typeof Ha=="number"?Ha:this.nodes.indexOf(Ha)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let Ha=this.nodes.map(String).join("");return this.value&&(Ha=this.value+Ha),this.raws.before&&(Ha=this.raws.before+Ha),this.raws.after&&(Ha+=this.raws.after),Ha}};Na.registerWalker=Ha=>{let _o="walk"+Ha.name;_o.lastIndexOf("s")!==_o.length-1&&(_o+="s"),!Na.prototype[_o]&&(Na.prototype[_o]=function(ro){return this.walkType(Ha,ro)})},Ia.exports=Na}}),nd=cs({"node_modules/postcss-values-parser/lib/root.js"(Mn,Ia){xs();var xa=Hd();Ia.exports=class extends xa{constructor(Na){super(Na),this.type="root"}}}}),Dp=cs({"node_modules/postcss-values-parser/lib/value.js"(Mn,Ia){xs();var xa=Hd();Ia.exports=class extends xa{constructor(Na){super(Na),this.type="value",this.unbalanced=0}}}}),Cp=cs({"node_modules/postcss-values-parser/lib/atword.js"(Mn,Ia){xs();var xa=Hd(),Na=class extends xa{constructor(Ha){super(Ha),this.type="atword"}toString(){return this.quoted&&this.raws.quote,[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};xa.registerWalker(Na),Ia.exports=Na}}),Tf=cs({"node_modules/postcss-values-parser/lib/colon.js"(Mn,Ia){xs();var xa=Hd(),Na=Oc(),Ha=class extends Na{constructor(_o){super(_o),this.type="colon"}};xa.registerWalker(Ha),Ia.exports=Ha}}),Df=cs({"node_modules/postcss-values-parser/lib/comma.js"(Mn,Ia){xs();var xa=Hd(),Na=Oc(),Ha=class extends Na{constructor(_o){super(_o),this.type="comma"}};xa.registerWalker(Ha),Ia.exports=Ha}}),uf=cs({"node_modules/postcss-values-parser/lib/comment.js"(Mn,Ia){xs();var xa=Hd(),Na=Oc(),Ha=class extends Na{constructor(_o){super(_o),this.type="comment",this.inline=Object(_o).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};xa.registerWalker(Ha),Ia.exports=Ha}}),Rp=cs({"node_modules/postcss-values-parser/lib/function.js"(Mn,Ia){xs();var xa=Hd(),Na=class extends xa{constructor(Ha){super(Ha),this.type="func",th
2024-08-21 13:12:53 +08:00
` )>-1&&(_o?vo=vo.split( `
` ).map(function(fo){return" "+fo}).join( `
` ).substr(2):vo= `
` +vo.split( `
` ).map(function(fo){return" "+fo}).join( `
2024-08-24 19:24:09 +08:00
` ))):vo=Mn.stylize("[Circular]","special")),ip(ro)){if(_o&&Ha.match(/^ \d + $ /))return vo;ro=JSON.stringify(""+Ha),ro.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)" $ /)?(ro=ro.substr(1,ro.length-2),ro=Mn.stylize(ro,"name")):(ro=ro.replace(/'/g," \\ '").replace(/ \\ "/g,'"').replace(/(^"|" $ )/g,"'"),ro=Mn.stylize(ro,"string"))}return ro+": "+vo}function kh(Mn,Ia,xa){var Na=0,Ha=Mn.reduce(function(_o,ro){return Na++,ro.indexOf( `
` )>=0&&Na++,_o+ro.replace(/ \u 001b \[ \d \d ?m/g,"").length+1},0);return Ha>60?xa[0]+(Ia===""?"":Ia+ `
2024-08-21 13:12:53 +08:00
` )+" "+Mn.join( ` ,
2024-08-24 19:24:09 +08:00
` )+" "+xa[1]:xa[0]+Ia+" "+Mn.join(", ")+" "+xa[1]}function Vm(Mn){return Array.isArray(Mn)}function nh(Mn){return typeof Mn=="boolean"}function gm(Mn){return Mn===null}function _m(Mn){return Mn==null}function em(Mn){return typeof Mn=="number"}function hf(Mn){return typeof Mn=="string"}function Hm(Mn){return typeof Mn=="symbol"}function ip(Mn){return Mn===void 0}function Gf(Mn){return jp(Mn)&&tm(Mn)==="[object RegExp]"}function jp(Mn){return typeof Mn=="object"&&Mn!==null}function Jp(Mn){return jp(Mn)&&tm(Mn)==="[object Date]"}function qf(Mn){return jp(Mn)&&(tm(Mn)==="[object Error]"||Mn instanceof Error)}function vm(Mn){return typeof Mn=="function"}function Ih(Mn){return Mn===null||typeof Mn=="boolean"||typeof Mn=="number"||typeof Mn=="string"||typeof Mn=="symbol"||typeof Mn>"u"}function xf(Mn){return Buffer $ 2.isBuffer(Mn)}function tm(Mn){return Object.prototype.toString.call(Mn)}function Rm(Mn){return Mn<10?"0"+Mn.toString(10):Mn.toString(10)}function gf(){var Mn=new Date,Ia=[Rm(Mn.getHours()),Rm(Mn.getMinutes()),Rm(Mn.getSeconds())].join(":");return[Mn.getDate(),Ch[Mn.getMonth()],Ia].join(" ")}function Mh(){console.log("%s - %s",gf(),Um.apply(null,arguments))}function Bh(Mn,Ia){if(!Ia||!jp(Ia))return Mn;for(var xa=Object.keys(Ia),Na=xa.length;Na--;)Mn[xa[Na]]=Ia[xa[Na]];return Mn}function ih(Mn,Ia){return Object.prototype.hasOwnProperty.call(Mn,Ia)}var lh,xp,qp,Ch,Ph,Xh=Ns({"node-modules-polyfills:util"(){xs(),Bf(),rp(),lh=/%[sdj%]/g,xp={},kp.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},kp.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},Ch=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ph={inherits:Fm,_extend:Bh,log:Mh,isBuffer:xf,isPrimitive:Ih,isFunction:vm,isError:qf,isDate:Jp,isObject:jp,isRegExp:Gf,isUndefined:ip,isSymbol:Hm,isString:hf,isNumber:em,isNullOrUndefined:_m,isNull:gm,isBoolean:nh,isArray:Vm,inspect:kp,deprecate:yh,format:Um,debuglog:Om}}}),zm=cs({"node-modules-polyfills-commonjs:util"(Mn,Ia){xs();var xa=(Xh(),Au(zf));if(xa&&xa.default){Ia.exports=xa.default;for(let Na in xa)Ia.exports[Na]=xa[Na]}else xa&&(Ia.exports=xa)}}),Pf=cs({"node_modules/postcss-values-parser/lib/errors/TokenizeError.js"(Mn,Ia){xs();var xa=class extends Error{constructor(Na){super(Na),this.name=this.constructor.name,this.message=Na||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(Na).stack}};Ia.exports=xa}}),Lh=cs({"node_modules/postcss-values-parser/lib/tokenize.js"(Mn,Ia){xs();var xa=123,Na=125,Ha=40,_o=41,ro=39,vo=34,za=92,fo=47,zn=46,Sn=44,ka=58,fa=42,ko=45,xo=43,ss=35,as=10,No=32,js=12,zs=9,nl=13,xu=64,zu=101,cc=69,Mc=48,Ic=57,Fc=117,Bc=85,kc=/[ \n \t \r \{ \( \) '" \\ ;,/]/g,Bu=/[ \n \t \r \( \) \{ \} \* :;@!&'" \+ \| ~>, \[ \] \\ ]| \/ (?= \* )/g,hu=/[ \n \t \r \( \) \{ \} \* :;@!&'" \- \+ \| ~>, \[ \] \\ ]| \/ /g,Pu=/^[a-z0-9]/i,fu=/^[a-f0-9? \- ]/i,fp=zm(),Rd=Pf();Ia.exports=function(Gd,Ed){Ed=Ed||{};let rd=[],hc=Gd.valueOf(),Vc=hc.length,Hc=-1,Yc=1,Zs=0,Dl=0,Zl=null,Wu,Ys,wc,mc,Pp,lp,Yd,Af,nf,yp,Zc;function hp(Tp){let Ep=fp.format("Unclosed %s at line: %d, column: %d, token: %d",Tp,Yc,Zs-Hc,Zs);throw new Rd(Ep)}for(;Zs<Vc;){switch(Wu=hc.charCodeAt(Zs),Wu===as&&(Hc=Zs,Yc+=1),Wu){case as:case No:case zs:case nl:case js:Ys=Zs;do Ys+=1,Wu=hc.charCodeAt(Ys),Wu===as&&(Hc=Ys,Yc+=1);while(Wu===No||Wu===as||Wu===zs||Wu===nl||Wu===js);rd.push(["space",hc.slice(Zs,Ys),Yc,Zs-Hc,Yc,Ys-Hc,Zs]),Zs=Ys-1;break;case ka:Ys=Zs+1,rd.push(["colon",hc.slice(Zs,Ys),Yc,Zs-Hc,Yc,Ys-Hc,Zs]),Zs=Ys-1;break;case Sn:Ys=Zs+1,rd.push(["comma",hc.slice(Zs,Ys),Yc,Zs-Hc,Yc,Ys-Hc,Zs]),Zs=Ys-1;break;case xa:rd.push(["{","{",Yc,Zs-Hc,Yc,Ys-Hc,Zs]);break;case Na:rd.push(["}","}",Yc,Zs-Hc,Yc,Ys-Hc,Zs]);break;case Ha:Dl++,Zl=!Zl&&Dl===1&&rd.length>0&&rd[rd.length-1][0]==="word"&&rd[rd.length-1][1]==="url",rd.push(["(","(",Yc,Zs-Hc,Yc,Ys-Hc,Zs]);break;case
2024-08-22 19:23:55 +08:00
` ,Zs+2);Ys=Tp!==-1?Tp-1:Vc}lp=hc.slice(Zs,Ys+1),mc=lp.split( `
2024-08-24 19:24:09 +08:00
` ),Pp=mc.length-1,Pp>0?(Yd=Yc+Pp,Af=Ys-mc[Pp].length):(Yd=Yc,Af=Hc),rd.push(["comment",lp,Yc,Zs-Hc,Yd,Ys-Af,Zs]),Hc=Af,Yc=Yd,Zs=Ys}else if(Wu===ss&&!Pu.test(hc.slice(Zs+1,Zs+2)))Ys=Zs+1,rd.push(["#",hc.slice(Zs,Ys),Yc,Zs-Hc,Yc,Ys-Hc,Zs]),Zs=Ys-1;else if((Wu===Fc||Wu===Bc)&&hc.charCodeAt(Zs+1)===xo){Ys=Zs+2;do Ys+=1,Wu=hc.charCodeAt(Ys);while(Ys<Vc&&fu.test(hc.slice(Ys,Ys+1)));rd.push(["unicoderange",hc.slice(Zs,Ys),Yc,Zs-Hc,Yc,Ys-Hc,Zs]),Zs=Ys-1}else if(Wu===fo)Ys=Zs+1,rd.push(["operator",hc.slice(Zs,Ys),Yc,Zs-Hc,Yc,Ys-Hc,Zs]),Zs=Ys-1;else{let Tp=Bu;if(Wu>=Mc&&Wu<=Ic&&(Tp=hu),Tp.lastIndex=Zs+1,Tp.test(hc),Tp.lastIndex===0?Ys=hc.length-1:Ys=Tp.lastIndex-2,Tp===hu||Wu===zn){let Ep=hc.charCodeAt(Ys),Qh=hc.charCodeAt(Ys+1),i0=hc.charCodeAt(Ys+2);(Ep===zu||Ep===cc)&&(Qh===ko||Qh===xo)&&i0>=Mc&&i0<=Ic&&(hu.lastIndex=Ys+2,hu.test(hc),hu.lastIndex===0?Ys=hc.length-1:Ys=hu.lastIndex-2)}rd.push(["word",hc.slice(Zs,Ys+1),Yc,Zs-Hc,Yc,Ys-Hc,Zs]),Zs=Ys}break}Zs++}return rd}}}), $ h=cs({"node_modules/flatten/index.js"(Mn,Ia){xs(),Ia.exports=function(xa,Na){if(Na=typeof Na=="number"?Na:1/0,!Na)return Array.isArray(xa)?xa.map(function(_o){return _o}):xa;return Ha(xa,1);function Ha(_o,ro){return _o.reduce(function(vo,za){return Array.isArray(za)&&ro<Na?vo.concat(Ha(za,ro+1)):vo.concat(za)},[])}}}}),Gm=cs({"node_modules/indexes-of/index.js"(Mn,Ia){xs(),Ia.exports=function(xa,Na){for(var Ha=-1,_o=[];(Ha=xa.indexOf(Na,Ha+1))!==-1;)_o.push(Ha);return _o}}}),Np=cs({"node_modules/uniq/uniq.js"(Mn,Ia){xs();function xa(_o,ro){for(var vo=1,za=_o.length,fo=_o[0],zn=_o[0],Sn=1;Sn<za;++Sn)if(zn=fo,fo=_o[Sn],ro(fo,zn)){if(Sn===vo){vo++;continue}_o[vo++]=fo}return _o.length=vo,_o}function Na(_o){for(var ro=1,vo=_o.length,za=_o[0],fo=_o[0],zn=1;zn<vo;++zn,fo=za)if(fo=za,za=_o[zn],za!==fo){if(zn===ro){ro++;continue}_o[ro++]=za}return _o.length=ro,_o}function Ha(_o,ro,vo){return _o.length===0?_o:ro?(vo||_o.sort(ro),xa(_o,ro)):(vo||_o.sort(),Na(_o))}Ia.exports=Ha}}),Gh=cs({"node_modules/postcss-values-parser/lib/errors/ParserError.js"(Mn,Ia){xs();var xa=class extends Error{constructor(Na){super(Na),this.name=this.constructor.name,this.message=Na||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(Na).stack}};Ia.exports=xa}}),wh=cs({"node_modules/postcss-values-parser/lib/parser.js"(Mn,Ia){xs();var xa=nd(),Na=Dp(),Ha=Cp(),_o=Tf(),ro=Df(),vo=uf(),za=Rp(),fo=lm(),zn=Of(),Sn=yc(),ka=Cf(),fa=Sp(),ko=cf(),xo=Lh(),ss= $ h(),as=Gm(),No=Np(),js=Gh();function zs(nl){return nl.sort((xu,zu)=>xu-zu)}Ia.exports=class{constructor(nl,xu){let zu={loose:!1};this.cache=[],this.input=nl,this.options=Object.assign({},zu,xu),this.position=0,this.unbalanced=0,this.root=new xa;let cc=new Na;this.root.append(cc),this.current=cc,this.tokens=xo(nl,this.options)}parse(){return this.loop()}colon(){let nl=this.currToken;this.newNode(new _o({value:nl[1],source:{start:{line:nl[2],column:nl[3]},end:{line:nl[4],column:nl[5]}},sourceIndex:nl[6]})),this.position++}comma(){let nl=this.currToken;this.newNode(new ro({value:nl[1],source:{start:{line:nl[2],column:nl[3]},end:{line:nl[4],column:nl[5]}},sourceIndex:nl[6]})),this.position++}comment(){let nl=!1,xu=this.currToken[1].replace(/ \/ \* | \* \/ /g,""),zu;this.options.loose&&xu.startsWith("//")&&(xu=xu.substring(2),nl=!0),zu=new vo({value:xu,inline:nl,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(zu),this.position++}error(nl,xu){throw new js(nl+ ` at line : $ { xu [ 2 ] } , column $ { xu [ 3 ] } ` )}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let nl=this.currToken[1],xu;if(nl==="+"||nl==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.cu
` ),Rd=fp.length-1,Rd>0?(rd=Dl+Rd,hc=Pu-fp[Rd].length):(rd=Dl,hc=Zs),kc.push(["comment",Gd,Dl,Zl-Zs,rd,Pu-hc,Zl]),Zs=hc,Dl=rd,Zl=Pu):(Ic.lastIndex=Zl+1,Ic.test(Bu),Ic.lastIndex===0?Pu=Bu.length-1:Pu=Ic.lastIndex-2,kc.push(["word",Bu.slice(Zl,Pu+1),Dl,Zl-Zs,Dl,Pu-Zs,Zl]),Zl=Pu);break}Zl++}return kc}Ia.exports=Mn.default}}),Dd=cs({"node_modules/postcss-selector-parser/dist/parser.js"(Mn,Ia){xs(),Mn.__esModule=!0;var xa=function(){function Zs(Dl,Zl){for(var Wu=0;Wu<Zl.length;Wu++){var Ys=Zl[Wu];Ys.enumerable=Ys.enumerable||!1,Ys.configurable=!0,"value"in Ys&&(Ys.writable=!0),Object.defineProperty(Dl,Ys.key,Ys)}}return function(Dl,Zl,Wu){return Zl&&Zs(Dl.prototype,Zl),Wu&&Zs(Dl,Wu),Dl}}(),Na= $ h(),Ha=Vc(Na),_o=Gm(),ro=Vc(_o),vo=Np(),za=Vc(vo),fo=_c(),zn=Vc(fo),Sn=Ec(),ka=Vc(Sn),fa=vp(),ko=Vc(fa),xo=zd(),ss=Vc(xo),as=qm(),No=Vc(as),js=qh(),zs=Vc(js),nl=_f(),xu=Vc(nl),zu=Lf(),cc=Vc(zu),Mc=bm(),Ic=Vc(Mc),Fc=vf(),Bc=Vc(Fc),kc=Wf(),Bu=Vc(kc),hu=km(),Pu=Vc(hu),fu=Nd(),fp=Vc(fu),Rd=Wh(),Gd=Vc(Rd),Ed=Yl(),rd=hc(Ed);function hc(Zs){if(Zs&&Zs.__esModule)return Zs;var Dl={};if(Zs!=null)for(var Zl in Zs)Object.prototype.hasOwnProperty.call(Zs,Zl)&&(Dl[Zl]=Zs[Zl]);return Dl.default=Zs,Dl}function Vc(Zs){return Zs&&Zs.__esModule?Zs:{default:Zs}}function Hc(Zs,Dl){if(!(Zs instanceof Dl))throw new TypeError("Cannot call a class as a function")}var Yc=function(){function Zs(Dl){Hc(this,Zs),this.input=Dl,this.lossy=Dl.options.lossless===!1,this.position=0,this.root=new zn.default;var Zl=new ka.default;return this.root.append(Zl),this.current=Zl,this.lossy?this.tokens=(0,Gd.default)({safe:Dl.safe,css:Dl.css.trim()}):this.tokens=(0,Gd.default)(Dl),this.loop()}return Zs.prototype.attribute=function(){var Dl="",Zl=void 0,Wu=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)Dl+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~Dl.indexOf("]")&&this.error("Expected a closing square bracket.");var Ys=Dl.split(/((?:[*~^ $ |]?=))([^]*)/),wc=Ys[0].split(/( \| )/g),mc={operator:Ys[1],value:Ys[2],source:{start:{line:Wu[2],column:Wu[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:Wu[4]};if(wc.length>1?(wc[0]===""&&(wc[0]=!0),mc.attribute=this.parseValue(wc[2]),mc.namespace=this.parseNamespace(wc[0])):mc.attribute=this.parseValue(Ys[0]),Zl=new Ic.default(mc),Ys[2]){var Pp=Ys[2].split(/( \s +i \s *?) $ /),lp=Pp[0].trim();Zl.value=this.lossy?lp:Pp[0],Pp[1]&&(Zl.insensitive=!0,this.lossy||(Zl.raws.insensitive=Pp[1])),Zl.quoted=lp[0]==="'"||lp[0]==='"',Zl.raws.unquoted=Zl.quoted?lp.slice(1,-1):lp}this.newNode(Zl),this.position++},Zs.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var Dl=new Bu.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]==="space"||this.currToken[0]==="combinator");)this.nextToken&&this.nextToken[0]==="combinator"?(Dl.spaces.before=this.parseSpace(this.currToken[1]),Dl.source.start.line=this.nextToken[2],Dl.source.start.column=this.nextToken[3],Dl.source.end.column=this.nextToken[3],Dl.source.end.line=this.nextToken[2],Dl.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?Dl.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?Dl.value=this.currToken[1]:this.currToken[0]==="space"&&(Dl.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(Dl)},Zs.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var Dl=new ka.default;this.current.parent.append(Dl),this.current=Dl,this.position++},Zs.prototype.comment=function(){var Dl=new ss.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(Dl),this.position++},Zs.prototype.error=function(Dl){throw n
` +hu+Mc("^")}return" "+Ic(Bu)+Fc}).join( `
2024-08-21 13:12:53 +08:00
` )},as.toString=function(){var No=this.showSourceCode();return No&&(No= `
` +No+ `
2024-08-24 19:24:09 +08:00
` ),this.name+": "+this.message+No},ss}(vo(Error)),ko=fa;Mn.default=ko,Ia.exports=Mn.default}}),Gs=cs({"node_modules/postcss/lib/previous-map.js"(Mn,Ia){xs(),Ia.exports=class{}}}),Ls=cs({"node_modules/postcss/lib/input.js"(Mn,Ia){xs(),Mn.__esModule=!0,Mn.default=void 0;var xa=_o( $ o()),Na=_o(Is()),Ha=_o(Gs());function _o(Sn){return Sn&&Sn.__esModule?Sn:{default:Sn}}function ro(Sn,ka){for(var fa=0;fa<ka.length;fa++){var ko=ka[fa];ko.enumerable=ko.enumerable||!1,ko.configurable=!0,"value"in ko&&(ko.writable=!0),Object.defineProperty(Sn,ko.key,ko)}}function vo(Sn,ka,fa){return ka&&ro(Sn.prototype,ka),Sn}var za=0,fo=function(){function Sn(fa,ko){if(ko===void 0&&(ko={}),fa===null||typeof fa>"u"||typeof fa=="object"&&!fa.toString)throw new Error("PostCSS received "+fa+" instead of CSS string");this.css=fa.toString(),this.css[0]===" \u FEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,ko.from&&(/^ \w +: \/ \/ /.test(ko.from)||xa.default.isAbsolute(ko.from)?this.file=ko.from:this.file=xa.default.resolve(ko.from));var xo=new Ha.default(this.css,ko);if(xo.text){this.map=xo;var ss=xo.consumer().file;!this.file&&ss&&(this.file=this.mapResolve(ss))}this.file||(za+=1,this.id="<input css "+za+">"),this.map&&(this.map.file=this.from)}var ka=Sn.prototype;return ka.error=function(fa,ko,xo,ss){ss===void 0&&(ss={});var as,No=this.origin(ko,xo);return No?as=new Na.default(fa,No.line,No.column,No.source,No.file,ss.plugin):as=new Na.default(fa,ko,xo,this.css,this.file,ss.plugin),as.input={line:ko,column:xo,source:this.css},this.file&&(as.input.file=this.file),as},ka.origin=function(fa,ko){if(!this.map)return!1;var xo=this.map.consumer(),ss=xo.originalPositionFor({line:fa,column:ko});if(!ss.source)return!1;var as={file:this.mapResolve(ss.source),line:ss.line,column:ss.column},No=xo.sourceContentFor(ss.source);return No&&(as.source=No),as},ka.mapResolve=function(fa){return/^ \w +: \/ \/ /.test(fa)?fa:xa.default.resolve(this.map.consumer().sourceRoot||".",fa)},vo(Sn,[{key:"from",get:function(){return this.file||this.id}}]),Sn}(),zn=fo;Mn.default=zn,Ia.exports=Mn.default}}),cl=cs({"node_modules/postcss/lib/stringifier.js"(Mn,Ia){xs(),Mn.__esModule=!0,Mn.default=void 0;var xa={colon:": ",indent:" ",beforeDecl: `
2024-08-21 13:12:53 +08:00
` ,beforeRule: `
` ,beforeOpen:" ",beforeClose: `
` ,beforeComment: `
` ,after: `
2024-08-24 19:24:09 +08:00
` ,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};function Na(ro){return ro[0].toUpperCase()+ro.slice(1)}var Ha=function(){function ro(za){this.builder=za}var vo=ro.prototype;return vo.stringify=function(za,fo){this[za.type](za,fo)},vo.root=function(za){this.body(za),za.raws.after&&this.builder(za.raws.after)},vo.comment=function(za){var fo=this.raw(za,"left","commentLeft"),zn=this.raw(za,"right","commentRight");this.builder("/*"+fo+za.text+zn+"*/",za)},vo.decl=function(za,fo){var zn=this.raw(za,"between","colon"),Sn=za.prop+zn+this.rawValue(za,"value");za.important&&(Sn+=za.raws.important||" !important"),fo&&(Sn+=";"),this.builder(Sn,za)},vo.rule=function(za){this.block(za,this.rawValue(za,"selector")),za.raws.ownSemicolon&&this.builder(za.raws.ownSemicolon,za,"end")},vo.atrule=function(za,fo){var zn="@"+za.name,Sn=za.params?this.rawValue(za,"params"):"";if(typeof za.raws.afterName<"u"?zn+=za.raws.afterName:Sn&&(zn+=" "),za.nodes)this.block(za,zn+Sn);else{var ka=(za.raws.between||"")+(fo?";":"");this.builder(zn+Sn+ka,za)}},vo.body=function(za){for(var fo=za.nodes.length-1;fo>0&&za.nodes[fo].type==="comment";)fo-=1;for(var zn=this.raw(za,"semicolon"),Sn=0;Sn<za.nodes.length;Sn++){var ka=za.nodes[Sn],fa=this.raw(ka,"before");fa&&this.builder(fa),this.stringify(ka,fo!==Sn||zn)}},vo.block=function(za,fo){var zn=this.raw(za,"between","beforeOpen");this.builder(fo+zn+"{",za,"start");var Sn;za.nodes&&za.nodes.length?(this.body(za),Sn=this.raw(za,"after")):Sn=this.raw(za,"after","emptyBody"),Sn&&this.builder(Sn),this.builder("}",za,"end")},vo.raw=function(za,fo,zn){var Sn;if(zn||(zn=fo),fo&&(Sn=za.raws[fo],typeof Sn<"u"))return Sn;var ka=za.parent;if(zn==="before"&&(!ka||ka.type==="root"&&ka.first===za))return"";if(!ka)return xa[zn];var fa=za.root();if(fa.rawCache||(fa.rawCache={}),typeof fa.rawCache[zn]<"u")return fa.rawCache[zn];if(zn==="before"||zn==="after")return this.beforeAfter(za,zn);var ko="raw"+Na(zn);return this[ko]?Sn=this[ko](fa,za):fa.walk(function(xo){if(Sn=xo.raws[fo],typeof Sn<"u")return!1}),typeof Sn>"u"&&(Sn=xa[zn]),fa.rawCache[zn]=Sn,Sn},vo.rawSemicolon=function(za){var fo;return za.walk(function(zn){if(zn.nodes&&zn.nodes.length&&zn.last.type==="decl"&&(fo=zn.raws.semicolon,typeof fo<"u"))return!1}),fo},vo.rawEmptyBody=function(za){var fo;return za.walk(function(zn){if(zn.nodes&&zn.nodes.length===0&&(fo=zn.raws.after,typeof fo<"u"))return!1}),fo},vo.rawIndent=function(za){if(za.raws.indent)return za.raws.indent;var fo;return za.walk(function(zn){var Sn=zn.parent;if(Sn&&Sn!==za&&Sn.parent&&Sn.parent===za&&typeof zn.raws.before<"u"){var ka=zn.raws.before.split( `
` );return fo=ka[ka.length-1],fo=fo.replace(/[^ \s ]/g,""),!1}}),fo},vo.rawBeforeComment=function(za,fo){var zn;return za.walkComments(function(Sn){if(typeof Sn.raws.before<"u")return zn=Sn.raws.before,zn.indexOf( `
2024-08-21 13:12:53 +08:00
` )!==-1&&(zn=zn.replace(/[^ \n ]+ $ /,"")),!1}),typeof zn>"u"?zn=this.raw(fo,null,"beforeDecl"):zn&&(zn=zn.replace(/[^ \s ]/g,"")),zn},vo.rawBeforeDecl=function(za,fo){var zn;return za.walkDecls(function(Sn){if(typeof Sn.raws.before<"u")return zn=Sn.raws.before,zn.indexOf( `
` )!==-1&&(zn=zn.replace(/[^ \n ]+ $ /,"")),!1}),typeof zn>"u"?zn=this.raw(fo,null,"beforeRule"):zn&&(zn=zn.replace(/[^ \s ]/g,"")),zn},vo.rawBeforeRule=function(za){var fo;return za.walk(function(zn){if(zn.nodes&&(zn.parent!==za||za.first!==zn)&&typeof zn.raws.before<"u")return fo=zn.raws.before,fo.indexOf( `
` )!==-1&&(fo=fo.replace(/[^ \n ]+ $ /,"")),!1}),fo&&(fo=fo.replace(/[^ \s ]/g,"")),fo},vo.rawBeforeClose=function(za){var fo;return za.walk(function(zn){if(zn.nodes&&zn.nodes.length>0&&typeof zn.raws.after<"u")return fo=zn.raws.after,fo.indexOf( `
2024-08-24 19:24:09 +08:00
` )!==-1&&(fo=fo.replace(/[^ \n ]+ $ /,"")),!1}),fo&&(fo=fo.replace(/[^ \s ]/g,"")),fo},vo.rawBeforeOpen=function(za){var fo;return za.walk(function(zn){if(zn.type!=="decl"&&(fo=zn.raws.between,typeof fo<"u"))return!1}),fo},vo.rawColon=function(za){var fo;return za.walkDecls(function(zn){if(typeof zn.raws.between<"u")return fo=zn.raws.between.replace(/[^ \s :]/g,""),!1}),fo},vo.beforeAfter=function(za,fo){var zn;za.type==="decl"?zn=this.raw(za,null,"beforeDecl"):za.type==="comment"?zn=this.raw(za,null,"beforeComment"):fo==="before"?zn=this.raw(za,null,"beforeRule"):zn=this.raw(za,null,"beforeClose");for(var Sn=za.parent,ka=0;Sn&&Sn.type!=="root";)ka+=1,Sn=Sn.parent;if(zn.indexOf( `
` )!==-1){var fa=this.raw(za,null,"indent");if(fa.length)for(var ko=0;ko<ka;ko++)zn+=fa}return zn},vo.rawValue=function(za,fo){var zn=za[fo],Sn=za.raws[fo];return Sn&&Sn.value===zn?Sn.raw:zn},ro}(),_o=Ha;Mn.default=_o,Ia.exports=Mn.default}}),ns=cs({"node_modules/postcss/lib/stringify.js"(Mn,Ia){xs(),Mn.__esModule=!0,Mn.default=void 0;var xa=Na(cl());function Na(ro){return ro&&ro.__esModule?ro:{default:ro}}function Ha(ro,vo){var za=new xa.default(vo);za.stringify(ro)}var _o=Ha;Mn.default=_o,Ia.exports=Mn.default}}),il=cs({"node_modules/postcss/lib/node.js"(Mn,Ia){xs(),Mn.__esModule=!0,Mn.default=void 0;var xa=_o(Is()),Na=_o(cl()),Ha=_o(ns());function _o(fo){return fo&&fo.__esModule?fo:{default:fo}}function ro(fo,zn){var Sn=new fo.constructor;for(var ka in fo)if(fo.hasOwnProperty(ka)){var fa=fo[ka],ko=typeof fa;ka==="parent"&&ko==="object"?zn&&(Sn[ka]=zn):ka==="source"?Sn[ka]=fa:fa instanceof Array?Sn[ka]=fa.map(function(xo){return ro(xo,Sn)}):(ko==="object"&&fa!==null&&(fa=ro(fa)),Sn[ka]=fa)}return Sn}var vo=function(){function fo(Sn){Sn===void 0&&(Sn={}),this.raws={};for(var ka in Sn)this[ka]=Sn[ka]}var zn=fo.prototype;return zn.error=function(Sn,ka){if(ka===void 0&&(ka={}),this.source){var fa=this.positionBy(ka);return this.source.input.error(Sn,fa.line,fa.column,ka)}return new xa.default(Sn)},zn.warn=function(Sn,ka,fa){var ko={node:this};for(var xo in fa)ko[xo]=fa[xo];return Sn.warn(ka,ko)},zn.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},zn.toString=function(Sn){Sn===void 0&&(Sn=Ha.default),Sn.stringify&&(Sn=Sn.stringify);var ka="";return Sn(this,function(fa){ka+=fa}),ka},zn.clone=function(Sn){Sn===void 0&&(Sn={});var ka=ro(this);for(var fa in Sn)ka[fa]=Sn[fa];return ka},zn.cloneBefore=function(Sn){Sn===void 0&&(Sn={});var ka=this.clone(Sn);return this.parent.insertBefore(this,ka),ka},zn.cloneAfter=function(Sn){Sn===void 0&&(Sn={});var ka=this.clone(Sn);return this.parent.insertAfter(this,ka),ka},zn.replaceWith=function(){if(this.parent){for(var Sn=arguments.length,ka=new Array(Sn),fa=0;fa<Sn;fa++)ka[fa]=arguments[fa];for(var ko=0,xo=ka;ko<xo.length;ko++){var ss=xo[ko];this.parent.insertBefore(this,ss)}this.remove()}return this},zn.next=function(){if(this.parent){var Sn=this.parent.index(this);return this.parent.nodes[Sn+1]}},zn.prev=function(){if(this.parent){var Sn=this.parent.index(this);return this.parent.nodes[Sn-1]}},zn.before=function(Sn){return this.parent.insertBefore(this,Sn),this},zn.after=function(Sn){return this.parent.insertAfter(this,Sn),this},zn.toJSON=function(){var Sn={};for(var ka in this)if(this.hasOwnProperty(ka)&&ka!=="parent"){var fa=this[ka];fa instanceof Array?Sn[ka]=fa.map(function(ko){return typeof ko=="object"&&ko.toJSON?ko.toJSON():ko}):typeof fa=="object"&&fa.toJSON?Sn[ka]=fa.toJSON():Sn[ka]=fa}return Sn},zn.raw=function(Sn,ka){var fa=new Na.default;return fa.raw(this,Sn,ka)},zn.root=function(){for(var Sn=this;Sn.parent;)Sn=Sn.parent;return Sn},zn.cleanRaws=function(Sn){delete this.raws.before,delete this.raws.after,Sn||delete this.raws.between},zn.positionInside=function(Sn){for(var ka=this.toString(),fa=this.source.start.column,ko=this.source.start.line,xo=0;xo<Sn;xo++)ka[xo]=== `
` ?(fa=1,ko+=1):fa+=1;return{line:ko,column:fa}},zn.positionBy=function(Sn){var ka=this.source.start;if(Sn.index)ka=this.positionInside(Sn.index);else if(Sn.word){var fa=this.toString().indexOf(Sn.word);fa!==-1&&(ka=this.positionInside(fa))}return ka},fo}(),za=vo;Mn.default=za,Ia.exports=Mn.default}}),Es=cs({"node_modules/postcss/lib/comment.js"(Mn,Ia){xs(),Mn.__esModule=!0,Mn.default=void 0;var xa=Na(il());function Na(vo){return vo&&vo.__esModule?vo:{default:vo}}function Ha(vo,za){vo.prototype=Object.create(za.prototype),vo.prototype.constructor=vo,vo.__proto__=za}var _o=function(vo){Ha(za,vo);function za(fo){var zn;return zn=vo.call(this,fo)||this,zn.type="comment",zn}return za}(xa.default),ro=_o;Mn.default=ro,Ia.exports=Mn.default}}),Ss=cs({"node_modules/postcss/lib/declaration.js"(Mn,Ia){xs(),Mn.__esModule=!0,Mn.default=void 0;var xa=Na(il());function Na(vo){return vo&&vo.__esModule?vo:{default:vo}}function Ha(vo,za){vo.prototype=Object.create(za.prototype),vo.prototype.constructor=vo,vo.__proto__=za}var _o=function(vo){Ha(za,vo);function za(fo){var zn;return zn=vo.call(this,fo)||this,zn.type="decl",zn}return za}(xa.default),ro=_o;Mn.default=ro,Ia.exports=Mn.default}}),ws=cs({"node_modules/postcss/lib/tokenize.js"(Mn,Ia){xs(),Mn.__esModule=!0,Mn.default=Mc;var xa=39,Na=34,Ha=92,_o=47,ro=10,vo=32,za=12,fo=9,zn=13,Sn=91,ka=93,fa=40,ko=41,xo=123,ss=125,as=59,No=42,js=58,zs=64,nl=/[ \n \t \r \f {}()'" \\ ;/[ \] #]/g,xu=/[ \n \t \r \f (){}:;@!'" \\ \] [#]| \/ (?= \* )/g,zu=/.[ \\ /("' \n ]/,cc=/[a-f0-9]/i;function Mc(Ic,Fc){Fc===void 0&&(Fc={});var Bc=Ic.css.valueOf(),kc=Fc.ignoreErrors,Bu,hu,Pu,fu,fp,Rd,Gd,Ed,rd,hc,Vc,Hc,Yc,Zs,Dl=Bc.length,Zl=-1,Wu=1,Ys=0,wc=[],mc=[];function Pp(){return Ys}function lp(yp){throw Ic.error("Unclosed "+yp,Wu,Ys-Zl)}function Yd(){return mc.length===0&&Ys>=Dl}function Af(yp){if(mc.length)return mc.pop();if(!(Ys>=Dl)){var Zc=yp?yp.ignoreUnclosed:!1;switch(Bu=Bc.charCodeAt(Ys),(Bu===ro||Bu===za||Bu===zn&&Bc.charCodeAt(Ys+1)!==ro)&&(Zl=Ys,Wu+=1),Bu){case ro:case vo:case fo:case zn:case za:hu=Ys;do hu+=1,Bu=Bc.charCodeAt(hu),Bu===ro&&(Zl=hu,Wu+=1);while(Bu===vo||Bu===ro||Bu===fo||Bu===zn||Bu===za);Zs=["space",Bc.slice(Ys,hu)],Ys=hu-1;break;case Sn:case ka:case xo:case ss:case js:case as:case ko:var hp=String.fromCharCode(Bu);Zs=[hp,hp,Wu,Ys-Zl];break;case fa:if(Hc=wc.length?wc.pop()[1]:"",Yc=Bc.charCodeAt(Ys+1),Hc==="url"&&Yc!==xa&&Yc!==Na&&Yc!==vo&&Yc!==ro&&Yc!==fo&&Yc!==za&&Yc!==zn){hu=Ys;do{if(hc=!1,hu=Bc.indexOf(")",hu+1),hu===-1)if(kc||Zc){hu=Ys;break}else lp("bracket");for(Vc=hu;Bc.charCodeAt(Vc-1)===Ha;)Vc-=1,hc=!hc}while(hc);Zs=["brackets",Bc.slice(Ys,hu+1),Wu,Ys-Zl,Wu,hu-Zl],Ys=hu}else hu=Bc.indexOf(")",Ys+1),Rd=Bc.slice(Ys,hu+1),hu===-1||zu.test(Rd)?Zs=["(","(",Wu,Ys-Zl]:(Zs=["brackets",Rd,Wu,Ys-Zl,Wu,hu-Zl],Ys=hu);break;case xa:case Na:Pu=Bu===xa?"'":'"',hu=Ys;do{if(hc=!1,hu=Bc.indexOf(Pu,hu+1),hu===-1)if(kc||Zc){hu=Ys+1;break}else lp("string");for(Vc=hu;Bc.charCodeAt(Vc-1)===Ha;)Vc-=1,hc=!hc}while(hc);Rd=Bc.slice(Ys,hu+1),fu=Rd.split( `
` ),fp=fu.length-1,fp>0?(Ed=Wu+fp,rd=hu-fu[fp].length):(Ed=Wu,rd=Zl),Zs=["string",Bc.slice(Ys,hu+1),Wu,Ys-Zl,Ed,hu-rd],Zl=rd,Wu=Ed,Ys=hu;break;case zs:nl.lastIndex=Ys+1,nl.test(Bc),nl.lastIndex===0?hu=Bc.length-1:hu=nl.lastIndex-2,Zs=["at-word",Bc.slice(Ys,hu+1),Wu,Ys-Zl,Wu,hu-Zl],Ys=hu;break;case Ha:for(hu=Ys,Gd=!0;Bc.charCodeAt(hu+1)===Ha;)hu+=1,Gd=!Gd;if(Bu=Bc.charCodeAt(hu+1),Gd&&Bu!==_o&&Bu!==vo&&Bu!==ro&&Bu!==fo&&Bu!==zn&&Bu!==za&&(hu+=1,cc.test(Bc.charAt(hu)))){for(;cc.test(Bc.charAt(hu+1));)hu+=1;Bc.charCodeAt(hu+1)===vo&&(hu+=1)}Zs=["word",Bc.slice(Ys,hu+1),Wu,Ys-Zl,Wu,hu-Zl],Ys=hu;break;default:Bu===_o&&Bc.charCodeAt(Ys+1)===No?(hu=Bc.indexOf("*/",Ys+2)+1,hu===0&&(kc||Zc?hu=Bc.length:lp("comment")),Rd=Bc.slice(Ys,hu+1),fu=Rd.split( `
` ),fp=fu.length-1,fp>0?(Ed=Wu+fp,rd=hu-fu[fp].length):(Ed=Wu,rd=Zl),Zs=["comment",Rd,Wu,Ys-Zl,Ed,hu-rd],Zl=rd,Wu=Ed,Ys=hu):(xu.lastIndex=Ys+1,xu.test(Bc),xu.lastIndex===0?hu=Bc.length-1:hu=xu.lastIndex-2,Zs=["word",Bc.slice(Ys,hu+1),Wu,Ys-Zl,Wu,hu-Zl],wc.push(Zs),Ys=hu);break}return Ys++,Zs}}function nf(yp){mc.push(yp)}return{back:nf,nextToken:Af,endOfFile:Yd,position:Pp}}Ia.exports=Mn.default}}),Ms=cs({"node_modules/postcss/lib/parse.js"(Mn,Ia){xs(),Mn.__esModule=!0,Mn.default=void 0;var xa=Ha(Ka()),Na=Ha(Ls());function Ha(vo){return vo&&vo.__esModule?vo:{default:vo}}function _o(vo,za){var fo=new Na.default(vo,za),zn=new xa.default(fo);try{zn.parse()}catch(Sn){throw Sn}return zn.root}var ro=_o;Mn.default=ro,Ia.exports=Mn.default}}),bl=cs({"node_modules/postcss/lib/list.js"(Mn,Ia){xs(),Mn.__esModule=!0,Mn.default=void 0;var xa={split:function(Ha,_o,ro){for(var vo=[],za="",fo=!1,zn=0,Sn=!1,ka=!1,fa=0;fa<Ha.length;fa++){var ko=Ha[fa];Sn?ka?ka=!1:ko===" \\ "?ka=!0:ko===Sn&&(Sn=!1):ko==='"'||ko==="'"?Sn=ko:ko==="("?zn+=1:ko===")"?zn>0&&(zn-=1):zn===0&&_o.indexOf(ko)!==-1&&(fo=!0),fo?(za!==""&&vo.push(za.trim()),za="",fo=!1):za+=ko}return(ro||za!=="")&&vo.push(za.trim()),vo},space:function(Ha){var _o=[" ", `
` ," "];return xa.split(Ha,_o)},comma:function(Ha){return xa.split(Ha,[","],!0)}},Na=xa;Mn.default=Na,Ia.exports=Mn.default}}),kl=cs({"node_modules/postcss/lib/rule.js"(Mn,Ia){xs(),Mn.__esModule=!0,Mn.default=void 0;var xa=Ha(bu()),Na=Ha(bl());function Ha(zn){return zn&&zn.__esModule?zn:{default:zn}}function _o(zn,Sn){for(var ka=0;ka<Sn.length;ka++){var fa=Sn[ka];fa.enumerable=fa.enumerable||!1,fa.configurable=!0,"value"in fa&&(fa.writable=!0),Object.defineProperty(zn,fa.key,fa)}}function ro(zn,Sn,ka){return Sn&&_o(zn.prototype,Sn),zn}function vo(zn,Sn){zn.prototype=Object.create(Sn.prototype),zn.prototype.constructor=zn,zn.__proto__=Sn}var za=function(zn){vo(Sn,zn);function Sn(ka){var fa;return fa=zn.call(this,ka)||this,fa.type="rule",fa.nodes||(fa.nodes=[]),fa}return ro(Sn,[{key:"selectors",get:function(){return Na.default.comma(this.selector)},set:function(ka){var fa=this.selector?this.selector.match(/, \s */):null,ko=fa?fa[0]:","+this.raw("between","beforeOpen");this.selector=ka.join(ko)}}]),Sn}(xa.default),fo=za;Mn.default=fo,Ia.exports=Mn.default}}),bu=cs({"node_modules/postcss/lib/container.js"(Mn,Ia){xs(),Mn.__esModule=!0,Mn.default=void 0;var xa=_o(Ss()),Na=_o(Es()),Ha=_o(il());function _o(xo){return xo&&xo.__esModule?xo:{default:xo}}function ro(xo,ss){var as;if(typeof Symbol>"u"||xo[Symbol.iterator]==null){if(Array.isArray(xo)||(as=vo(xo))||ss){as&&(xo=as);var No=0;return function(){return No>=xo.length?{done:!0}:{done:!1,value:xo[No++]}}}throw new TypeError( ` Invalid attempt to iterate non - iterable instance .
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}return as=xo[Symbol.iterator](),as.next.bind(as)}function vo(xo,ss){if(xo){if(typeof xo=="string")return za(xo,ss);var as=Object.prototype.toString.call(xo).slice(8,-1);if(as==="Object"&&xo.constructor&&(as=xo.constructor.name),as==="Map"||as==="Set")return Array.from(xo);if(as==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(as))return za(xo,ss)}}function za(xo,ss){(ss==null||ss>xo.length)&&(ss=xo.length);for(var as=0,No=new Array(ss);as<ss;as++)No[as]=xo[as];return No}function fo(xo,ss){for(var as=0;as<ss.length;as++){var No=ss[as];No.enumerable=No.enumerable||!1,No.configurable=!0,"value"in No&&(No.writable=!0),Object.defineProperty(xo,No.key,No)}}function zn(xo,ss,as){return ss&&fo(xo.prototype,ss),xo}function Sn(xo,ss){xo.prototype=Object.create(ss.prototype),xo.prototype.constructor=xo,xo.__proto__=ss}function ka(xo){return xo.map(function(ss){return ss.nodes&&(ss.nodes=ka(ss.nodes)),delete ss.source,ss})}var fa=function(xo){Sn(ss,xo);function ss(){return xo.apply(this,arguments)||this}var as=ss.prototype;return as.push=function(No){return No.parent=this,this.nodes.push(No),this},as.each=function(No){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var js=this.lastEach;if(this.indexes[js]=0,!!this.nodes){for(var zs,nl;this.indexes[js]<this.nodes.length&&(zs=this.indexes[js],nl=No(this.nodes[zs],zs),nl!==!1);)this.indexes[js]+=1;return delete this.indexes[js],nl}},as.walk=function(No){return this.each(function(js,zs){var nl;try{nl=No(js,zs)}catch(zu){if(zu.postcssNode=js,zu.stack&&js.source&&/ \n \s {4}at /.test(zu.stack)){var xu=js.source;zu.stack=zu.stack.replace(/ \n \s {4}at /," $ &"+xu.input.from+":"+xu.start.line+":"+xu.start.column+" $ &")}throw zu}return nl!==!1&&js.walk&&(nl=js.walk(No)),nl})},as.walkDecls=function(No,js){return js?No instanceof RegExp?this.walk(function(zs,nl){if(zs.type==="decl"&&No.test(zs.prop))return js(zs,nl)}):this.walk(function(zs,nl){if(zs.type==="decl"&&zs.prop===No)return js(zs,nl)}):(js=No,this.walk(function(zs,nl){if(zs.type==="decl")return js(zs,nl)}))},as.walkRules=function(No,js){return js?No instanceof RegExp?this.walk(function(zs,nl){if(zs.type==="rule"&&No.test(zs.selector))return js(zs,nl)}):this.walk(function(zs,nl){if(zs.type==="rule"&&zs.selector===No)return js(zs,nl)}):(js=No,this.walk(function(zs,nl){if(zs.type==="rule")return js(zs,nl)}))},as.walkAtRules=function(No,js){return js?No instanceof RegExp?this.walk(function(zs,nl){if(zs.type==="atrule"&&No.test(zs.name))return js(zs,nl)}):this.walk(function(zs,nl){if(zs.type==="atrule"&&zs.name===No)return js(zs,nl)}):(js=No,this.walk(function(zs,nl){if(zs.type==="atrule")return js(zs,nl)}))},as.walkComments=function(No){return this.walk(function(js,zs){if(js.type==="comment")return No(js,zs)})},as.append=function(){for(var No=arguments.length,js=new Array(No),zs=0;zs<No;zs++)js[zs]=arguments[zs];for(var nl=0,xu=js;nl<xu.length;nl++)for(var zu=xu[nl],cc=this.normalize(zu,this.last),Mc=ro(cc),Ic;!(Ic=Mc()).done;){var Fc=Ic.value;this.nodes.push(Fc)}return this},as.prepend=function(){for(var No=arguments.length,js=new Array(No),zs=0;zs<No;zs++)js[zs]=arguments[zs];js=js.reverse();for(var nl=ro(js),xu;!(xu=nl()).done;){for(var zu=xu.value,cc=this.normalize(zu,this.first,"prepend").reverse(),Mc=ro(cc),Ic;!(Ic=Mc()).done;){var Fc=Ic.value;this.nodes.unshift(Fc)}for(var Bc in this.indexes)this.indexes[Bc]=this.indexes[Bc]+cc.length}return this},as.cleanRaws=function(No){if(xo.prototype.cleanRaws.call(this,No),this.nodes)for(var js=ro(this.nodes),zs;!(zs=js()).done;){var nl=zs.value;nl.cleanRaws(No)}},as.insertBefore=function(No,js){No=this.index(No);for(var zs=No===0?"prepend":!1,nl=this.normalize(js,this.nodes[No],zs).reverse(),xu=ro(nl),zu;!(zu=xu()).done;){var cc=zu.value;this.nodes.splice(No,0,cc)}var Mc;for(var Ic in this.indexes)Mc=this.indexes[Ic],No<=Mc&&(this.indexes[Ic]=Mc+nl.length);return this},as.insertAfter=function(No,js){No=this.index(No);for(var zs=this.normalize(js,this.nodes[No]).revers
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}return as=xo[Symbol.iterator](),as.next.bind(as)}function za(xo,ss){if(xo){if(typeof xo=="string")return fo(xo,ss);var as=Object.prototype.toString.call(xo).slice(8,-1);if(as==="Object"&&xo.constructor&&(as=xo.constructor.name),as==="Map"||as==="Set")return Array.from(xo);if(as==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(as))return fo(xo,ss)}}function fo(xo,ss){(ss==null||ss>xo.length)&&(ss=xo.length);for(var as=0,No=new Array(ss);as<ss;as++)No[as]=xo[as];return No}function zn(xo,ss){for(var as=0;as<ss.length;as++){var No=ss[as];No.enumerable=No.enumerable||!1,No.configurable=!0,"value"in No&&(No.writable=!0),Object.defineProperty(xo,No.key,No)}}function Sn(xo,ss,as){return ss&&zn(xo.prototype,ss),xo}function ka(xo){return typeof xo=="object"&&typeof xo.then=="function"}var fa=function(){function xo(as,No,js){this.stringified=!1,this.processed=!1;var zs;if(typeof No=="object"&&No!==null&&No.type==="root")zs=No;else if(No instanceof xo||No instanceof Ha.default)zs=No.root,No.map&&(typeof js.map>"u"&&(js.map={}),js.map.inline||(js.map.inline=!1),js.map.prev=No.map);else{var nl=_o.default;js.syntax&&(nl=js.syntax.parse),js.parser&&(nl=js.parser),nl.parse&&(nl=nl.parse);try{zs=nl(No,js)}catch(xu){this.error=xu}}this.result=new Ha.default(as,zs,js)}var ss=xo.prototype;return ss.warnings=function(){return this.sync().warnings()},ss.toString=function(){return this.css},ss.then=function(as,No){return this.async().then(as,No)},ss.catch=function(as){return this.async().catch(as)},ss.finally=function(as){return this.async().then(as,as)},ss.handleError=function(as,No){try{if(this.error=as,as.name==="CssSyntaxError"&&!as.plugin)as.plugin=No.postcssPlugin,as.setMessage();else if(No.postcssVersion&&!1)var js,zs,nl,xu,zu}catch(cc){console&&console.error&&console.error(cc)}},ss.asyncTick=function(as,No){var js=this;if(this.plugin>=this.processor.plugins.length)return this.processed=!0,as();try{var zs=this.processor.plugins[this.plugin],nl=this.run(zs);this.plugin+=1,ka(nl)?nl.then(function(){js.asyncTick(as,No)}).catch(function(xu){js.handleError(xu,zs),js.processed=!0,No(xu)}):this.asyncTick(as,No)}catch(xu){this.processed=!0,No(xu)}},ss.async=function(){var as=this;return this.processed?new Promise(function(No,js){as.error?js(as.error):No(as.stringify())}):this.processing?this.processing:(this.processing=new Promise(function(No,js){if(as.error)return js(as.error);as.plugin=0,as.asyncTick(No,js)}).then(function(){return as.processed=!0,as.stringify()}),this.processing)},ss.sync=function(){if(this.processed)return this.result;if(this.processed=!0,this.processing)throw new Error("Use process(css).then(cb) to work with async plugins");if(this.error)throw this.error;for(var as=vo(this.result.processor.plugins),No;!(No=as()).done;){var js=No.value,zs=this.run(js);if(ka(zs))throw new Error("Use process(css).then(cb) to work with async plugins")}return this.result},ss.run=function(as){this.result.lastPlugin=as;try{return as(this.result.root,this.result)}catch(No){throw this.handleError(No,as),No}},ss.stringify=function(){if(this.stringified)return this.result;this.stringified=!0,this.sync();var as=this.result.opts,No=Na.default;as.syntax&&(No=as.syntax.stringify),as.stringifier&&(No=as.stringifier),No.stringify&&(No=No.stringify);var js=new xa.default(No,this.result.root,this.result.opts),zs=js.generate();return this.result.css=zs[0],this.result.map=zs[1],this.result},Sn(xo,[{key:"processor",get:function(){return this.result.processor}},{key:"opts",get:function(){return this.result.opts}},{key:"css",get:function(){return this.stringify().css}},{key:"content",get:function(){return this.stringify().content}},{key:"map",get:function(){return this.stringify().map}},{key:"root",get:function(){return this.sync().root}},{key:"messages",get:function(){return this.sync().messages}}]),xo}(),ko=fa;Mn.default=ko,Ia.exports=Mn.default}}),Qu=cs({"node_modules/postcss/lib/processor.js"(Mn,Ia){xs(),Mn.__esModule=!0,Mn.default=void 0;var xa=Na(Su());functio
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}return Sn=fo[Symbol.iterator](),Sn.next.bind(Sn)}function _o(fo,zn){if(fo){if(typeof fo=="string")return ro(fo,zn);var Sn=Object.prototype.toString.call(fo).slice(8,-1);if(Sn==="Object"&&fo.constructor&&(Sn=fo.constructor.name),Sn==="Map"||Sn==="Set")return Array.from(fo);if(Sn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(Sn))return ro(fo,zn)}}function ro(fo,zn){(zn==null||zn>fo.length)&&(zn=fo.length);for(var Sn=0,ka=new Array(zn);Sn<zn;Sn++)ka[Sn]=fo[Sn];return ka}var vo=function(){function fo(Sn){Sn===void 0&&(Sn=[]),this.version="7.0.39",this.plugins=this.normalize(Sn)}var zn=fo.prototype;return zn.use=function(Sn){return this.plugins=this.plugins.concat(this.normalize([Sn])),this},zn.process=function(Sn){function ka(fa){return Sn.apply(this,arguments)}return ka.toString=function(){return Sn.toString()},ka}(function(Sn,ka){return ka===void 0&&(ka={}),this.plugins.length===0&&(ka.parser,ka.stringifier),new xa.default(this,Sn,ka)}),zn.normalize=function(Sn){for(var ka=[],fa=Ha(Sn),ko;!(ko=fa()).done;){var xo=ko.value;if(xo.postcss===!0){var ss=xo();throw new Error("PostCSS plugin "+ss.postcssPlugin+ ` requires PostCSS 8.
2024-08-21 13:12:53 +08:00
Migration guide for end - users :
2024-08-24 19:24:09 +08:00
https : //github.com/postcss/postcss/wiki/PostCSS-8-for-end-users`)}if(xo.postcss&&(xo=xo.postcss),typeof xo=="object"&&Array.isArray(xo.plugins))ka=ka.concat(xo.plugins);else if(typeof xo=="function")ka.push(xo);else if(!(typeof xo=="object"&&(xo.parse||xo.stringify)))throw typeof xo=="object"&&xo.postcssPlugin?new Error("PostCSS plugin "+xo.postcssPlugin+` requires PostCSS 8.
2024-08-21 13:12:53 +08:00
Migration guide for end - users :
2024-08-24 19:24:09 +08:00
https : //github.com/postcss/postcss/wiki/PostCSS-8-for-end-users`):new Error(xo+" is not a PostCSS plugin")}return ka},fo}(),za=vo;Mn.default=za,Ia.exports=Mn.default}}),ec=cs({"node_modules/postcss/lib/root.js"(Mn,Ia){xs(),Mn.__esModule=!0,Mn.default=void 0;var xa=Na(bu());function Na(zn){return zn&&zn.__esModule?zn:{default:zn}}function Ha(zn,Sn){var ka;if(typeof Symbol>"u"||zn[Symbol.iterator]==null){if(Array.isArray(zn)||(ka=_o(zn))||Sn){ka&&(zn=ka);var fa=0;return function(){return fa>=zn.length?{done:!0}:{done:!1,value:zn[fa++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}return ka=zn[Symbol.iterator](),ka.next.bind(ka)}function _o(zn,Sn){if(zn){if(typeof zn=="string")return ro(zn,Sn);var ka=Object.prototype.toString.call(zn).slice(8,-1);if(ka==="Object"&&zn.constructor&&(ka=zn.constructor.name),ka==="Map"||ka==="Set")return Array.from(zn);if(ka==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(ka))return ro(zn,Sn)}}function ro(zn,Sn){(Sn==null||Sn>zn.length)&&(Sn=zn.length);for(var ka=0,fa=new Array(Sn);ka<Sn;ka++)fa[ka]=zn[ka];return fa}function vo(zn,Sn){zn.prototype=Object.create(Sn.prototype),zn.prototype.constructor=zn,zn.__proto__=Sn}var za=function(zn){vo(Sn,zn);function Sn(fa){var ko;return ko=zn.call(this,fa)||this,ko.type="root",ko.nodes||(ko.nodes=[]),ko}var ka=Sn.prototype;return ka.removeChild=function(fa,ko){var xo=this.index(fa);return!ko&&xo===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[xo].raws.before),zn.prototype.removeChild.call(this,fa)},ka.normalize=function(fa,ko,xo){var ss=zn.prototype.normalize.call(this,fa);if(ko){if(xo==="prepend")this.nodes.length>1?ko.raws.before=this.nodes[1].raws.before:delete ko.raws.before;else if(this.first!==ko)for(var as=Ha(ss),No;!(No=as()).done;){var js=No.value;js.raws.before=ko.raws.before}}return ss},ka.toResult=function(fa){fa===void 0&&(fa={});var ko=Su(),xo=Qu(),ss=new ko(new xo,this,fa);return ss.stringify()},Sn}(xa.default),fo=za;Mn.default=fo,Ia.exports=Mn.default}}),Ka=cs({"node_modules/postcss/lib/parser.js"(Mn,Ia){xs(),Mn.__esModule=!0,Mn.default=void 0;var xa=za(Ss()),Na=za(ws()),Ha=za(Es()),_o=za(hl()),ro=za(ec()),vo=za(kl());function za(zn){return zn&&zn.__esModule?zn:{default:zn}}var fo=function(){function zn(ka){this.input=ka,this.root=new ro.default,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:ka,start:{line:1,column:1}}}var Sn=zn.prototype;return Sn.createTokenizer=function(){this.tokenizer=(0,Na.default)(this.input)},Sn.parse=function(){for(var ka;!this.tokenizer.endOfFile();)switch(ka=this.tokenizer.nextToken(),ka[0]){case"space":this.spaces+=ka[1];break;case";":this.freeSemicolon(ka);break;case"}":this.end(ka);break;case"comment":this.comment(ka);break;case"at-word":this.atrule(ka);break;case"{":this.emptyRule(ka);break;default:this.other(ka);break}this.endFile()},Sn.comment=function(ka){var fa=new Ha.default;this.init(fa,ka[2],ka[3]),fa.source.end={line:ka[4],column:ka[5]};var ko=ka[1].slice(2,-2);if(/^ \s * $ /.test(ko))fa.text="",fa.raws.left=ko,fa.raws.right="";else{var xo=ko.match(/^( \s *)([^]*[^ \s ])( \s *) $ /);fa.text=xo[2],fa.raws.left=xo[1],fa.raws.right=xo[3]}},Sn.emptyRule=function(ka){var fa=new vo.default;this.init(fa,ka[2],ka[3]),fa.selector="",fa.raws.between="",this.current=fa},Sn.other=function(ka){for(var fa=!1,ko=null,xo=!1,ss=null,as=[],No=[],js=ka;js;){if(ko=js[0],No.push(js),ko==="("||ko==="[")ss||(ss=js),as.push(ko==="("?")":"]");else if(as.length===0)if(ko===";")if(xo){this.decl(No);return}else break;else if(ko==="{"){this.rule(No);return}else if(ko==="}"){this.tokenizer.back(No.pop()),fa=!0;break}else ko===":"&&(xo=!0);else ko===as[as.length-1]&&(as.pop(),as.length===0&&(ss=null));js=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(fa=!0),as.length>0&&this.unclosedBracket(ss),fa&&xo){for(;No.length&&(js=No[No.length-1][0],!(js!=="space"&&js!=="comment"));)this.tokenizer.back(No.pop());this.decl(No)}else this.unknownWord(No)},Sn.rule=function(ka){ka.pop();var fa=new vo.default;this.init(fa,ka[0][2],ka[0][3]),fa.raws.between=this.spacesAndCommentsFromEnd(ka),this.raw(fa,"selector",ka),this.current=fa},Sn.decl=function(ka){var fa=new xa.default;this.init(fa);var ko=ka[ka.length-1];for(ko[0]===";"&&(this.semicolon=!0,ka.pop()),ko[4]?fa.source.end={line:ko[4],column:ko[5]}:fa.source.end={line:ko[2],column:ko[3]};ka[0][0]!=="word";)ka.length===1&&this.unknownWord(ka),fa.raws.before+=ka.shift()[1];for(fa.source.start={line:ka[0][2],column:ka[0][3]},fa.prop="";ka.length;){var xo=ka[0][0];if(xo===":"||xo==="space"||xo==="co
2024-08-21 13:12:53 +08:00
` )));let fo=Ha[1].substring(Ha[1].indexOf( `
2024-08-24 19:24:09 +08:00
` ));fo+=this.input.css.valueOf().substring(this.tokenizer.position()),this.input=new Na(fo),this.tokenizer=xa(this.input)}else this.tokenizer.back(Ha);break}ro.push(Ha[1]),vo=Ha,Ha=this.tokenizer.nextToken({ignoreUnclosed:!0})}let za=["comment",ro.join(""),_o[2],_o[3],vo[2],vo[3]];return this.inlineComment(za),!0}else if(Ha[1]==="/"){let _o=this.tokenizer.nextToken({ignoreUnclosed:!0});if(_o[0]==="comment"&&/^ \/ \* /.test(_o[1]))return _o[0]="word",_o[1]=_o[1].slice(1),Ha[1]="//",this.tokenizer.back(_o),Ia.exports.isInlineComment.bind(this)(Ha)}return!1}}}}),bc=cs({"node_modules/postcss-less/lib/nodes/interpolation.js"(Mn,Ia){xs(),Ia.exports={interpolation(xa){let Na=xa,Ha=[xa],_o=["word","{","}"];if(xa=this.tokenizer.nextToken(),Na[1].length>1||xa[0]!=="{")return this.tokenizer.back(xa),!1;for(;xa&&_o.includes(xa[0]);)Ha.push(xa),xa=this.tokenizer.nextToken();let ro=Ha.map(Sn=>Sn[1]);[Na]=Ha;let vo=Ha.pop(),za=[Na[2],Na[3]],fo=[vo[4]||vo[2],vo[5]||vo[3]],zn=["word",ro.join("")].concat(za,fo);return this.tokenizer.back(xa),this.tokenizer.back(zn),!0}}}}),Tu=cs({"node_modules/postcss-less/lib/nodes/mixin.js"(Mn,Ia){xs();var xa=/^#[0-9a-fA-F]{6} $ |^#[0-9a-fA-F]{3} $ /,Na=/ \. [0-9]/,Ha=_o=>{let[,ro]=_o,[vo]=ro;return(vo==="."||vo==="#")&&xa.test(ro)===!1&&Na.test(ro)===!1};Ia.exports={isMixinToken:Ha}}}), $ l=cs({"node_modules/postcss-less/lib/nodes/import.js"(Mn,Ia){xs();var xa=ws(),Na=/^url \( (.+) \) /;Ia.exports=Ha=>{let{name:_o,params:ro=""}=Ha;if(_o==="import"&&ro.length){Ha.import=!0;let vo=xa({css:ro});for(Ha.filename=ro.replace(Na," $ 1");!vo.endOfFile();){let[za,fo]=vo.nextToken();if(za==="word"&&fo==="url")return;if(za==="brackets"){Ha.options=fo,Ha.filename=ro.replace(fo,"").trim();break}}}}}}),Ru=cs({"node_modules/postcss-less/lib/nodes/variable.js"(Mn,Ia){xs();var xa=/: $ /,Na=/^:( \s +)?/;Ia.exports=Ha=>{let{name:_o,params:ro=""}=Ha;if(Ha.name.slice(-1)===":"){if(xa.test(_o)){let[vo]=_o.match(xa);Ha.name=_o.replace(vo,""),Ha.raws.afterName=vo+(Ha.raws.afterName||""),Ha.variable=!0,Ha.value=Ha.params}if(Na.test(ro)){let[vo]=ro.match(Na);Ha.value=ro.replace(vo,""),Ha.raws.afterName=(Ha.raws.afterName||"")+vo,Ha.variable=!0}}}}}),Cl=cs({"node_modules/postcss-less/lib/LessParser.js"(Mn,Ia){xs();var xa=Es(),Na=Ka(),{isInlineComment:Ha}=yu(),{interpolation:_o}=bc(),{isMixinToken:ro}=Tu(),vo= $ l(),za=Ru(),fo=/(! \s *important) $ /i;Ia.exports=class extends Na{constructor(){super(...arguments),this.lastNode=null}atrule(zn){_o.bind(this)(zn)||(super.atrule(zn),vo(this.lastNode),za(this.lastNode))}decl(){super.decl(...arguments),/extend \( .+ \) /i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(zn){zn[0][1]= ` $ { zn [ 0 ] [ 1 ] } ` ;let Sn=zn.findIndex(xo=>xo[0]==="("),ka=zn.reverse().find(xo=>xo[0]===")"),fa=zn.reverse().indexOf(ka),ko=zn.splice(Sn,fa).map(xo=>xo[1]).join("");for(let xo of zn.reverse())this.tokenizer.back(xo);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=ko}init(zn,Sn,ka){super.init(zn,Sn,ka),this.lastNode=zn}inlineComment(zn){let Sn=new xa,ka=zn[1].slice(2);if(this.init(Sn,zn[2],zn[3]),Sn.source.end={line:zn[4],column:zn[5]},Sn.inline=!0,Sn.raws.begin="//",/^ \s * $ /.test(ka))Sn.text="",Sn.raws.left=ka,Sn.raws.right="";else{let fa=ka.match(/^( \s *)([^]*[^ \s ])( \s *) $ /);[,Sn.raws.left,Sn.text,Sn.raws.right]=fa}}mixin(zn){let[Sn]=zn,ka=Sn[1].slice(0,1),fa=zn.findIndex(No=>No[0]==="brackets"),ko=zn.findIndex(No=>No[0]==="("),xo="";if((fa<0||fa>3)&&ko>0){let No=zn.reduce((Fc,Bc,kc)=>Bc[0]===")"?kc:Fc),js=zn.slice(ko,No+ko).map(Fc=>Fc[1]).join(""),[zs]=zn.slice(ko),nl=[zs[2],zs[3]],[xu]=zn.slice(No,No+1),zu=[xu[2],xu[3]],cc=["brackets",js].concat(nl,zu),Mc=zn.slice(0,ko),Ic=zn.slice(No+1);zn=Mc,zn.push(cc),zn=zn.concat(Ic)}let ss=[];for(let No of zn)if((No[1]==="!"||ss.length)&&ss.push(No),No[1]==="important")break;if(ss.length){let[No]=ss,js=zn.indexOf(No),zs=ss[ss.length-1],nl=[No[2],No[3]],xu=[zs[4],zs[5]],zu=["word",ss.map(cc=>cc[1]).join("")].concat(nl,xu);zn.splice(js,ss.length,zu)}let as=zn.findIndex(No=>fo.test(No[1]));as>0&&([,xo]=zn[as],zn.splice(as,1));for(let No of zn.reverse())this.t
` ),Gd=Rd.length-1,Gd>0?(hc=wc+Gd,Vc=fu-Rd[Gd].length):(hc=wc,Vc=Ys),Dl=["brackets",Ed,wc,mc-Ys,hc,fu-Vc],Ys=Vc,wc=hc,mc=fu}else fu=Bu.indexOf(")",mc+1),Ed=Bu.slice(mc,fu+1),fu===-1||Mc.test(Ed)?Dl=["(","(",wc,mc-Ys]:(Dl=["brackets",Ed,wc,mc-Ys,wc,fu-Ys],mc=fu);break;case ko:Dl=[")",")",wc,mc-Ys];break;case xa:case Na:for(fp=Pu,fu=mc,Hc=!1;fu<Wu&&(fu++,fu===Wu&&Yd("string"),Pu=Bu.charCodeAt(fu),Zs=Bu.charCodeAt(fu+1),!(!Hc&&Pu===fp));)Pu===Ha?Hc=!Hc:Hc?Hc=!1:Pu===xu&&Zs===xo&&nf();Ed=Bu.slice(mc,fu+1),Rd=Ed.split( `
` ),Gd=Rd.length-1,Gd>0?(hc=wc+Gd,Vc=fu-Rd[Gd].length):(hc=wc,Vc=Ys),Dl=["string",Bu.slice(mc,fu+1),wc,mc-Ys,hc,fu-Vc],Ys=Vc,wc=hc,mc=fu;break;case zs:zu.lastIndex=mc+1,zu.test(Bu),zu.lastIndex===0?fu=Bu.length-1:fu=zu.lastIndex-2,Dl=["at-word",Bu.slice(mc,fu+1),wc,mc-Ys,wc,fu-Ys],mc=fu;break;case Ha:for(fu=mc,rd=!0;Bu.charCodeAt(fu+1)===Ha;)fu+=1,rd=!rd;if(Pu=Bu.charCodeAt(fu+1),rd&&Pu!==_o&&Pu!==vo&&Pu!==ro&&Pu!==fo&&Pu!==zn&&Pu!==za&&(fu+=1,Ic.test(Bu.charAt(fu)))){for(;Ic.test(Bu.charAt(fu+1));)fu+=1;Bu.charCodeAt(fu+1)===vo&&(fu+=1)}Dl=["word",Bu.slice(mc,fu+1),wc,mc-Ys,wc,fu-Ys],mc=fu;break;default:Zs=Bu.charCodeAt(mc+1),Pu===xu&&Zs===xo?(fu=mc,nf(),Ed=Bu.slice(mc,fu+1),Rd=Ed.split( `
2024-08-21 13:12:53 +08:00
` ),Gd=Rd.length-1,Gd>0?(hc=wc+Gd,Vc=fu-Rd[Gd].length):(hc=wc,Vc=Ys),Dl=["word",Ed,wc,mc-Ys,hc,fu-Vc],Ys=Vc,wc=hc,mc=fu):Pu===_o&&Zs===No?(fu=Bu.indexOf("*/",mc+2)+1,fu===0&&(hu?fu=Bu.length:Yd("comment")),Ed=Bu.slice(mc,fu+1),Rd=Ed.split( `
2024-08-24 19:24:09 +08:00
` ),Gd=Rd.length-1,Gd>0?(hc=wc+Gd,Vc=fu-Rd[Gd].length):(hc=wc,Vc=Ys),Dl=["comment",Ed,wc,mc-Ys,hc,fu-Vc],Ys=Vc,wc=hc,mc=fu):Pu===_o&&Zs===_o?(Fc.lastIndex=mc+1,Fc.test(Bu),Fc.lastIndex===0?fu=Bu.length-1:fu=Fc.lastIndex-2,Ed=Bu.slice(mc,fu+1),Dl=["comment",Ed,wc,mc-Ys,wc,fu-Ys,"inline"],mc=fu):(cc.lastIndex=mc+1,cc.test(Bu),cc.lastIndex===0?fu=Bu.length-1:fu=cc.lastIndex-2,Dl=["word",Bu.slice(mc,fu+1),wc,mc-Ys,wc,fu-Ys],Pp.push(Dl),mc=fu);break}return mc++,Dl}}function Zc(hp){lp.push(hp)}return{back:Zc,nextToken:yp,endOfFile:Af}}}}),Od=cs({"node_modules/postcss-scss/lib/scss-parser.js"(Mn,Ia){xs();function xa(za,fo){za.prototype=Object.create(fo.prototype),za.prototype.constructor=za,za.__proto__=fo}var Na=Es(),Ha=Ka(),_o=Rc(),ro=Lc(),vo=function(za){xa(fo,za);function fo(){return za.apply(this,arguments)||this}var zn=fo.prototype;return zn.createTokenizer=function(){this.tokenizer=ro(this.input)},zn.rule=function(Sn){for(var ka=!1,fa=0,ko="",as=Sn,xo=Array.isArray(as),ss=0,as=xo?as:as[Symbol.iterator]();;){var No;if(xo){if(ss>=as.length)break;No=as[ss++]}else{if(ss=as.next(),ss.done)break;No=ss.value}var js=No;if(ka)js[0]!=="comment"&&js[0]!=="{"&&(ko+=js[1]);else{if(js[0]==="space"&&js[1].indexOf( `
` )!==-1)break;js[0]==="("?fa+=1:js[0]===")"?fa-=1:fa===0&&js[0]===":"&&(ka=!0)}}if(!ka||ko.trim()===""||/^[a-zA-Z-:#]/.test(ko))za.prototype.rule.call(this,Sn);else{Sn.pop();var zs=new _o;this.init(zs);var nl=Sn[Sn.length-1];for(nl[4]?zs.source.end={line:nl[4],column:nl[5]}:zs.source.end={line:nl[2],column:nl[3]};Sn[0][0]!=="word";)zs.raws.before+=Sn.shift()[1];for(zs.source.start={line:Sn[0][2],column:Sn[0][3]},zs.prop="";Sn.length;){var xu=Sn[0][0];if(xu===":"||xu==="space"||xu==="comment")break;zs.prop+=Sn.shift()[1]}zs.raws.between="";for(var zu;Sn.length;)if(zu=Sn.shift(),zu[0]===":"){zs.raws.between+=zu[1];break}else zs.raws.between+=zu[1];(zs.prop[0]==="_"||zs.prop[0]==="*")&&(zs.raws.before+=zs.prop[0],zs.prop=zs.prop.slice(1)),zs.raws.between+=this.spacesAndCommentsFromStart(Sn),this.precheckMissedSemicolon(Sn);for(var cc=Sn.length-1;cc>0;cc--){if(zu=Sn[cc],zu[1]==="!important"){zs.important=!0;var Mc=this.stringFrom(Sn,cc);Mc=this.spacesFromEnd(Sn)+Mc,Mc!==" !important"&&(zs.raws.important=Mc);break}else if(zu[1]==="important"){for(var Ic=Sn.slice(0),Fc="",Bc=cc;Bc>0;Bc--){var kc=Ic[Bc][0];if(Fc.trim().indexOf("!")===0&&kc!=="space")break;Fc=Ic.pop()[1]+Fc}Fc.trim().indexOf("!")===0&&(zs.important=!0,zs.raws.important=Fc,Sn=Ic)}if(zu[0]!=="space"&&zu[0]!=="comment")break}this.raw(zs,"value",Sn),zs.value.indexOf(":")!==-1&&this.checkMissedSemicolon(Sn),this.current=zs}},zn.comment=function(Sn){if(Sn[6]==="inline"){var ka=new Na;this.init(ka,Sn[2],Sn[3]),ka.raws.inline=!0,ka.source.end={line:Sn[4],column:Sn[5]};var fa=Sn[1].slice(2);if(/^ \s * $ /.test(fa))ka.text="",ka.raws.left=fa,ka.raws.right="";else{var ko=fa.match(/^( \s *)([^]*[^ \s ])( \s *) $ /),xo=ko[2].replace(/( \* \/ | \/ \* )/g,"*//*");ka.text=xo,ka.raws.left=ko[1],ka.raws.right=ko[3],ka.raws.text=ko[2]}}else za.prototype.comment.call(this,Sn)},zn.raw=function(Sn,ka,fa){if(za.prototype.raw.call(this,Sn,ka,fa),Sn.raws[ka]){var ko=Sn.raws[ka].raw;Sn.raws[ka].raw=fa.reduce(function(xo,ss){if(ss[0]==="comment"&&ss[6]==="inline"){var as=ss[1].slice(2).replace(/( \* \/ | \/ \* )/g,"*//*");return xo+"/*"+as+"*/"}else return xo+ss[1]},""),ko!==Sn.raws[ka].raw&&(Sn.raws[ka].scss=ko)}},fo}(Ha);Ia.exports=vo}}),Cc=cs({"node_modules/postcss-scss/lib/scss-parse.js"(Mn,Ia){xs();var xa=Ls(),Na=Od();Ia.exports=function(Ha,_o){var ro=new xa(Ha,_o),vo=new Na(ro);return vo.parse(),vo.root}}}),Zd=cs({"node_modules/postcss-scss/lib/scss-syntax.js"(Mn,Ia){xs();var xa=uc(),Na=Cc();Ia.exports={parse:Na,stringify:xa}}});xs();var Fp=ju(),Ap=Lu(),sp=Pc(),{hasPragma:Kc}=Fu(),{locStart:sd,locEnd:Zp}=rs(),{calculateLoc:ef,replaceQuotesInInlineComments:yf}=rs(),Kp=Eu(),Kd=ml(),dp=Uu(),pp=Ac(),jd=od(),Fd=ld(),Jc=_p(),Ud=cp(),Op=Mn=>{for(;Mn.parent;)Mn=Mn.parent;return Mn};function Ff(Mn,Ia){let{nodes:xa}=Mn,Na={open:null,close:null,groups:[],type:"paren_group"},Ha=[Na],_o=Na,ro={groups:[],type:"comma_group"},vo=[ro];for(let za=0;za<xa.length;++za){let fo=xa[za];if(pp(Ia.parser,fo.value)&&fo.type==="number"&&fo.unit===".."&&Ap(fo.value)==="."&&(fo.value=fo.value.slice(0,-1),fo.unit="..."),fo.type==="func"&&fo.value==="selector"&&(fo.group.groups=[rf(Op(Mn).text.slice(fo.group.open.sourceIndex+1,fo.group.close.sourceIndex))]),fo.type==="func"&&fo.value==="url"){let zn=fo.group&&fo.group.groups||[],Sn=[];for(let ka=0;ka<zn.length;ka++){let fa=zn[ka];fa.type==="comma_group"?Sn=[...Sn,...fa.groups]:Sn.push(fa)}if(Kp(Sn)||!Kd(Sn)&&!Fd(Sn[0])){let ka=Jc({groups:fo.group.groups});fo.group.groups=[ka.trim()]}}if(fo.type==="paren"&&fo.value==="(")Na={open:fo,close:null,groups:[],type:"paren_group"},Ha.push(Na),ro={groups:[],type:"comma_group"},vo.push(ro);else if(fo.type==="paren"&&fo.value===")"){if(ro.groups.length>0&&Na.groups.push(ro),Na.close=fo,vo.length===1)throw new Error("Unbalanced parenthesis");vo.pop(),ro=Ap(vo),ro.groups.push(Na),Ha.pop(),Na=Ap(Ha)}else fo.type==="comma"?(Na.groups.push(ro),ro={groups:[],type:"comma_group"},vo[vo.length-1]=ro):ro.groups.push(fo)}return ro.groups.length>0&&Na.groups.push(ro),_o}function Wm(Mn){return Mn.type==="paren_group"&&!Mn.open&&!Mn.close&&Mn.groups.length===1||
` ,Nfr:"𝔑 ",NoBreak:" ",NonBreakingSpace:" ",Nopf:"ℕ ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩 ",Ntild:"Ñ",Ntilde:"Ñ",Nu:"Ν ",OElig:"Œ",Oacut:"Ó",Oacute:"Ó",Ocir:"Ô",Ocirc:"Ô",Ocy:"О ",Odblac:"Ő",Ofr:"𝔒 ",Ograv:"Ò",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο ",Oopf:"𝕆 ",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘ ",Or:"⩔",Oscr:"𝒪 ",Oslas:"Ø",Oslash:"Ø",Otild:"Õ",Otilde:"Õ",Otimes:"⨷",Oum:"Ö",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓 ",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ ",Popf:"ℙ ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫 ",Psi:"Ψ",QUO:'"',QUOT:'"',Qfr:"𝔔 ",Qopf:"ℚ ",Qscr:"𝒬 ",RBarr:"⤐",RE:"®",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р ",Re:"ℜ ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ ",Rho:"Ρ ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь ",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С ",Sfr:"𝔖 ",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊 ",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮 ",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THOR:"Þ",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т ",Tfr:"𝔗 ",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼ ",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋 ",TripleDot:"⃛",Tscr:"𝒯 ",Tstrok:"Ŧ",Uacut:"Ú",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucir:"Û",Ucirc:"Û",Ucy:"У ",Udblac:"Ű",Ufr:"𝔘 ",Ugrav:"Ù",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃ ",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌 ",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"
2024-08-21 13:12:53 +08:00
` );Qu!==-1;)Gs++,Su=Qu,Qu=Qs.indexOf( `
2024-08-22 19:23:55 +08:00
` ,Qu+1);Su===-1?Ls+=Qs.length:Ls=Qs.length-Su,Gs in $ o&&(Su!==-1?Ls+= $ o[Gs]:Ls<= $ o[Gs]&&(Ls= $ o[Gs]+1))}function bl(){var Qs=[],Su=Gs+1;return function(){for(var Qu=Gs+1;Su<Qu;)Qs.push(( $ o[Su]||0)+1),Su++;return Qs}}function kl(){var Qs={line:Gs,column:Ls};return Qs.offset=Ja.toOffset(Qs),Qs}function bu(Qs){this.start=Qs,this.end=kl()}function hl(Qs){no.slice(0,Qs.length)!==Qs&&Ja.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"),kl())}function Kl(){var Qs=kl();return Su;function Su(Qu,ec){var Ka=Qu.position,yu=Ka?Ka.start:Qs,bc=[],Tu=Ka&&Ka.end.line, $ l=Qs.line;if(Qu.position=new bu(yu),Ka&&ec&&Ka.indent){if(bc=Ka.indent,Tu< $ l){for(;++Tu< $ l;)bc.push(( $ o[Tu]||0)+1);bc.push(Qs.column)}ec=bc.concat(ec)}return Qu.position.indent=ec||[],Qu}}function _u(Qs,Su){var Qu=Su?Su.children:Ts,ec=Qu[Qu.length-1],Ka;return ec&&Qs.type===ec.type&&(Qs.type==="text"||Qs.type==="blockquote")&&Do(ec)&&Do(Qs)&&(Ka=Qs.type==="text"?Ao:eo,Qs=Ka.call(Ja,ec,Qs)),Qs!==ec&&Qu.push(Qs),Ja.atStart&&Ts.length!==0&&Ja.exitStart(),Qs}function Cu(Qs){var Su=bl(),Qu=Kl(),ec=kl();return hl(Qs),Ka.reset=yu,yu.test=bc,Ka.test=bc,no=no.slice(Qs.length),Ms(Qs),Su=Su(),Ka;function Ka(Tu, $ l){return Qu(_u(Qu(Tu), $ l),Su)}function yu(){var Tu=Ka.apply(null,arguments);return Gs=ec.line,Ls=ec.column,no=Qs+no,Tu}function bc(){var Tu=Qu({});return Gs=ec.line,Ls=ec.column,no=Qs+no,Tu.position}}}}function Do(So){var Ro,no;return So.type!=="text"||!So.position?!0:(Ro=So.position.start,no=So.position.end,Ro.line!==no.line||no.column-Ro.column===So.value.length)}function Ao(So,Ro){return So.value+=Ro.value,So}function eo(So,Ro){return this.options.commonmark||this.options.gfm?Ro:(So.children=So.children.concat(Ro.children),So)}}}),cp=Ki({"node_modules/markdown-escapes/index.js"(Os,os){Uo(),os.exports=eo;var Co=[" \\ "," ` "," * "," { "," } "," [ "," ] "," ( "," ) "," # "," + "," - "," . "," ! "," _ "," > "],Do=Co.concat([" ~ "," | " ] ) , Ao = Do . concat ( [ `
2024-08-24 19:24:09 +08:00
` ,'"'," $ ","%","&","'",",","/",":",";","<","=","?","@","^"]);eo.default=Co,eo.gfm=Do,eo.commonmark=Ao;function eo(So){var Ro=So||{};return Ro.commonmark?Ao:Ro.gfm?Do:Co}}}),Oc=Ki({"node_modules/remark-parse/lib/block-elements.js"(Os,os){Uo(),os.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]}}),Hd=Ki({"node_modules/remark-parse/lib/defaults.js"(Os,os){Uo(),os.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:Oc()}}}),nd=Ki({"node_modules/remark-parse/lib/set-options.js"(Os,os){Uo();var Co=cu(),Do=cp(),Ao=Hd();os.exports=eo;function eo(So){var Ro=this,no=Ro.options,qo,Ja;if(So==null)So={};else if(typeof So=="object")So=Co(So);else throw new Error("Invalid value ` "+So+" ` for setting ` options ` ");for(qo in Ao){if(Ja=So[qo],Ja==null&&(Ja=no[qo]),qo!=="blocks"&&typeof Ja!="boolean"||qo==="blocks"&&typeof Ja!="object")throw new Error("Invalid value ` "+Ja+" ` for setting ` options . "+qo+" ` ");So[qo]=Ja}return Ro.options=So,Ro.escape=Do(So),Ro}}}),Dp=Ki({"node_modules/unist-util-is/convert.js"(Os,os){Uo(),os.exports=Co;function Co(Ro){if(Ro==null)return So;if(typeof Ro=="string")return eo(Ro);if(typeof Ro=="object")return"length"in Ro?Ao(Ro):Do(Ro);if(typeof Ro=="function")return Ro;throw new Error("Expected function, string, or object as test")}function Do(Ro){return no;function no(qo){var Ja;for(Ja in Ro)if(qo[Ja]!==Ro[Ja])return!1;return!0}}function Ao(Ro){for(var no=[],qo=-1;++qo<Ro.length;)no[qo]=Co(Ro[qo]);return Ja;function Ja(){for(var $ o=-1;++ $ o<no.length;)if(no[ $ o].apply(this,arguments))return!0;return!1}}function eo(Ro){return no;function no(qo){return!!(qo&&qo.type===Ro)}}function So(){return!0}}}),Cp=Ki({"node_modules/unist-util-visit-parents/color.browser.js"(Os,os){Uo(),os.exports=Co;function Co(Do){return Do}}}),Tf=Ki({"node_modules/unist-util-visit-parents/index.js"(Os,os){Uo(),os.exports=Ro;var Co=Dp(),Do=Cp(),Ao=!0,eo="skip",So=!1;Ro.CONTINUE=Ao,Ro.SKIP=eo,Ro.EXIT=So;function Ro(qo,Ja, $ o,Ts){var ds,Is;typeof Ja=="function"&&typeof $ o!="function"&&(Ts= $ o, $ o=Ja,Ja=null),Is=Co(Ja),ds=Ts?-1:1,Gs(qo,null,[])();function Gs(Ls,cl,ns){var il=typeof Ls=="object"&&Ls!==null?Ls:{},Es;return typeof il.type=="string"&&(Es=typeof il.tagName=="string"?il.tagName:typeof il.name=="string"?il.name:void 0,Ss.displayName="node ("+Do(il.type+(Es?"<"+Es+">":""))+")"),Ss;function Ss(){var ws=ns.concat(Ls),Ms=[],bl,kl;if((!Ja||Is(Ls,cl,ns[ns.length-1]||null))&&(Ms=no( $ o(Ls,ns)),Ms[0]===So))return Ms;if(Ls.children&&Ms[0]!==eo)for(kl=(Ts?Ls.children.length:-1)+ds;kl>-1&&kl<Ls.children.length;){if(bl=Gs(Ls.children[kl],kl,ws)(),bl[0]===So)return bl;kl=typeof bl[1]=="number"?bl[1]:kl+ds}return Ms}}}function no(qo){return qo!==null&&typeof qo=="object"&&"length"in qo?qo:typeof qo=="number"?[Ao,qo]:[qo]}}}),Df=Ki({"node_modules/unist-util-visit/index.js"(Os,os){Uo(),os.exports=So;var Co=Tf(),Do=Co.CONTINUE,Ao=Co.SKIP,eo=Co.EXIT;So.CONTINUE=Do,So.SKIP=Ao,So.EXIT=eo;function So(Ro,no,qo,Ja){typeof no=="function"&&typeof qo!="function"&&(Ja=qo,qo=no,no=null),Co(Ro,no, $ o,Ja);function $ o(Ts,ds){var Is=ds[ds.length-1],Gs=Is?Is.children.indexOf(Ts):null;return qo(Ts,Gs,Is)}}}}),uf=Ki({"node_modules/unist-util-remove-position/index.js"(Os,os){Uo();var Co=Df();os.exports=Do;function Do(So,Ro){return Co(So,Ro?Ao:eo),So}function Ao(So){delete So.position}function eo(So){So.position=void 0}}}),Rp=Ki({"node_modules/remark-parse/lib/parse.js"(Os,os){Uo();var Co=cu(),Do=uf();os.exports=So;var Ao= `
2024-08-22 19:23:55 +08:00
` ,eo=/ \r \n | \r /g;function So(){var Ro=this,no=String(Ro.file),qo={line:1,column:1,offset:0},Ja=Co(qo), $ o;return no=no.replace(eo,Ao),no.charCodeAt(0)===65279&&(no=no.slice(1),Ja.column++,Ja.offset++), $ o={type:"root",children:Ro.tokenizeBlock(no,Ja),position:{start:qo,end:Ro.eof||Co(qo)}},Ro.options.position||Do( $ o,!0), $ o}}}),lm=Ki({"node_modules/remark-parse/lib/tokenize/blank-line.js"(Os,os){Uo();var Co=/^[ \t ]*( \n | $ )/;os.exports=Do;function Do(Ao,eo,So){for(var Ro,no="",qo=0,Ja=eo.length;qo<Ja&&(Ro=Co.exec(eo.slice(qo)),Ro!=null);)qo+=Ro[0].length,no+=Ro[0];if(no!==""){if(So)return!0;Ao(no)}}}}),Of=Ki({"node_modules/repeat-string/index.js"(Os,os){Uo();var Co="",Do;os.exports=Ao;function Ao(eo,So){if(typeof eo!="string")throw new TypeError("expected a string");if(So===1)return eo;if(So===2)return eo+eo;var Ro=eo.length*So;if(Do!==eo||typeof Do>"u")Do=eo,Co="";else if(Co.length>=Ro)return Co.substr(0,Ro);for(;Ro>Co.length&&So>1;)So&1&&(Co+=eo),So>>=1,eo+=eo;return Co+=eo,Co=Co.substr(0,Ro),Co}}}),yc=Ki({"node_modules/trim-trailing-lines/index.js"(Os,os){Uo(),os.exports=Co;function Co(Do){return String(Do).replace(/ \n + $ /,"")}}}),Cf=Ki({"node_modules/remark-parse/lib/tokenize/code-indented.js"(Os,os){Uo();var Co=Of(),Do=yc();os.exports=qo;var Ao= `
2024-08-24 19:24:09 +08:00
` ,eo=" ",So=" ",Ro=4,no=Co(So,Ro);function qo(Ja, $ o,Ts){for(var ds=-1,Is= $ o.length,Gs="",Ls="",cl="",ns="",il,Es,Ss;++ds<Is;)if(il= $ o.charAt(ds),Ss)if(Ss=!1,Gs+=cl,Ls+=ns,cl="",ns="",il===Ao)cl=il,ns=il;else for(Gs+=il,Ls+=il;++ds<Is;){if(il= $ o.charAt(ds),!il||il===Ao){ns=il,cl=il;break}Gs+=il,Ls+=il}else if(il===So&& $ o.charAt(ds+1)===il&& $ o.charAt(ds+2)===il&& $ o.charAt(ds+3)===il)cl+=no,ds+=3,Ss=!0;else if(il===eo)cl+=il,Ss=!0;else{for(Es="";il===eo||il===So;)Es+=il,il= $ o.charAt(++ds);if(il!==Ao)break;cl+=Es+il,ns+=il}if(Ls)return Ts?!0:Ja(Gs)({type:"code",lang:null,meta:null,value:Do(Ls)})}}}),Sp=Ki({"node_modules/remark-parse/lib/tokenize/code-fenced.js"(Os,os){Uo(),os.exports=qo;var Co= `
` ,Do=" ",Ao=" ",eo="~",So=" ` ",Ro=3,no=4;function qo(Ja,$o,Ts){var ds=this,Is=ds.options.gfm,Gs=$o.length+1,Ls=0,cl=" ",ns,il,Es,Ss,ws,Ms,bl,kl,bu,hl,Kl,_u,Cu;if(Is){for(;Ls<Gs&&(Es=$o.charAt(Ls),!(Es!==Ao&&Es!==Do));)cl+=Es,Ls++;if(_u=Ls,Es=$o.charAt(Ls),!(Es!==eo&&Es!==So)){for(Ls++,il=Es,ns=1,cl+=Es;Ls<Gs&&(Es=$o.charAt(Ls),Es===il);)cl+=Es,ns++,Ls++;if(!(ns<Ro)){for(;Ls<Gs&&(Es=$o.charAt(Ls),!(Es!==Ao&&Es!==Do));)cl+=Es,Ls++;for(Ss=" ",bl=" ";Ls<Gs&&(Es=$o.charAt(Ls),!(Es===Co||il===So&&Es===il));)Es===Ao||Es===Do?bl+=Es:(Ss+=bl+Es,bl=" "),Ls++;if(Es=$o.charAt(Ls),!(Es&&Es!==Co)){if(Ts)return!0;Cu=Ja.now(),Cu.column+=cl.length,Cu.offset+=cl.length,cl+=Ss,Ss=ds.decode.raw(ds.unescape(Ss),Cu),bl&&(cl+=bl),bl=" ",hl=" ",Kl=" ",kl=" ",bu=" ";for(var Qs=!0;Ls<Gs;){if(Es=$o.charAt(Ls),kl+=hl,bu+=Kl,hl=" ",Kl=" ",Es!==Co){kl+=Es,Kl+=Es,Ls++;continue}for(Qs?(cl+=Es,Qs=!1):(hl+=Es,Kl+=Es),bl=" ",Ls++;Ls<Gs&&(Es=$o.charAt(Ls),Es===Ao);)bl+=Es,Ls++;if(hl+=bl,Kl+=bl.slice(_u),!(bl.length>=no)){for(bl=" ";Ls<Gs&&(Es=$o.charAt(Ls),Es===il);)bl+=Es,Ls++;if(hl+=bl,Kl+=bl,!(bl.length<ns)){for(bl=" ";Ls<Gs&&(Es=$o.charAt(Ls),!(Es!==Ao&&Es!==Do));)hl+=Es,Kl+=Es,Ls++;if(!Es||Es===Co)break}}}for(cl+=kl+hl,Ls=-1,Gs=Ss.length;++Ls<Gs;)if(Es=Ss.charAt(Ls),Es===Ao||Es===Do)ws||(ws=Ss.slice(0,Ls));else if(ws){Ms=Ss.slice(Ls);break}return Ja(cl)({type:" code ",lang:ws||Ss||null,meta:Ms||null,value:bu})}}}}}}}),cf=Ki({" node _modules / trim / index . js "(Os,os){Uo(),Os=os.exports=Co;function Co(Do){return Do.replace(/^\s*|\s*$/g," ")}Os.left=function(Do){return Do.replace(/^\s*/," ")},Os.right=function(Do){return Do.replace(/\s*$/," ")}}}),Uf=Ki({" node _modules / remark - parse / lib / util / interrupt . js "(Os,os){Uo(),os.exports=Co;function Co(Do,Ao,eo,So){for(var Ro=Do.length,no=-1,qo,Ja;++no<Ro;)if(qo=Do[no],Ja=qo[1]||{},!(Ja.pedantic!==void 0&&Ja.pedantic!==eo.options.pedantic)&&!(Ja.commonmark!==void 0&&Ja.commonmark!==eo.options.commonmark)&&Ao[qo[0]].apply(eo,So))return!0;return!1}}}),wf=Ki({" node _modules / remark - parse / lib / tokenize / blockquote . js " ( Os , os ) { Uo ( ) ; var Co = cf ( ) , Do = Uf ( ) ; os . exports = no ; var Ao = `
` ,eo=" ",So=" ",Ro=">";function no(qo,Ja, $ o){for(var Ts=this,ds=Ts.offset,Is=Ts.blockTokenizers,Gs=Ts.interruptBlockquote,Ls=qo.now(),cl=Ls.line,ns=Ja.length,il=[],Es=[],Ss=[],ws,Ms=0,bl,kl,bu,hl,Kl,_u,Cu,Qs;Ms<ns&&(bl=Ja.charAt(Ms),!(bl!==So&&bl!==eo));)Ms++;if(Ja.charAt(Ms)===Ro){if( $ o)return!0;for(Ms=0;Ms<ns;){for(bu=Ja.indexOf(Ao,Ms),_u=Ms,Cu=!1,bu===-1&&(bu=ns);Ms<ns&&(bl=Ja.charAt(Ms),!(bl!==So&&bl!==eo));)Ms++;if(Ja.charAt(Ms)===Ro?(Ms++,Cu=!0,Ja.charAt(Ms)===So&&Ms++):Ms=_u,hl=Ja.slice(Ms,bu),!Cu&&!Co(hl)){Ms=_u;break}if(!Cu&&(kl=Ja.slice(Ms),Do(Gs,Is,Ts,[qo,kl,!0])))break;Kl=_u===Ms?hl:Ja.slice(_u,bu),Ss.push(Ms-_u),il.push(Kl),Es.push(hl),Ms=bu+1}for(Ms=-1,ns=Ss.length,ws=qo(il.join(Ao));++Ms<ns;)ds[cl]=(ds[cl]||0)+Ss[Ms],cl++;return Qs=Ts.enterBlock(),Es=Ts.tokenizeBlock(Es.join(Ao),Ls),Qs(),ws({type:"blockquote",children:Es})}}}}),Vf=Ki({"node_modules/remark-parse/lib/tokenize/heading-atx.js"(Os,os){Uo(),os.exports=Ro;var Co= `
` ,Do=" ",Ao=" ",eo="#",So=6;function Ro(no,qo,Ja){for(var $ o=this,Ts= $ o.options.pedantic,ds=qo.length+1,Is=-1,Gs=no.now(),Ls="",cl="",ns,il,Es;++Is<ds;){if(ns=qo.charAt(Is),ns!==Ao&&ns!==Do){Is--;break}Ls+=ns}for(Es=0;++Is<=ds;){if(ns=qo.charAt(Is),ns!==eo){Is--;break}Ls+=ns,Es++}if(!(Es>So)&&!(!Es||!Ts&&qo.charAt(Is+1)===eo)){for(ds=qo.length+1,il="";++Is<ds;){if(ns=qo.charAt(Is),ns!==Ao&&ns!==Do){Is--;break}il+=ns}if(!(!Ts&&il.length===0&&ns&&ns!==Co)){if(Ja)return!0;for(Ls+=il,il="",cl="";++Is<ds&&(ns=qo.charAt(Is),!(!ns||ns===Co));){if(ns!==Ao&&ns!==Do&&ns!==eo){cl+=il+ns,il="";continue}for(;ns===Ao||ns===Do;)il+=ns,ns=qo.charAt(++Is);if(!Ts&&cl&&!il&&ns===eo){cl+=ns;continue}for(;ns===eo;)il+=ns,ns=qo.charAt(++Is);for(;ns===Ao||ns===Do;)il+=ns,ns=qo.charAt(++Is);Is--}return Gs.column+=Ls.length,Gs.offset+=Ls.length,Ls+=cl+il,no(Ls)({type:"heading",depth:Es,children: $ o.tokenizeInline(cl,Gs)})}}}}}),zp=Ki({"node_modules/remark-parse/lib/tokenize/thematic-break.js"(Os,os){Uo(),os.exports=qo;var Co=" ",Do= `
` ,Ao=" ",eo="*",So="-",Ro="_",no=3;function qo(Ja, $ o,Ts){for(var ds=-1,Is= $ o.length+1,Gs="",Ls,cl,ns,il;++ds<Is&&(Ls= $ o.charAt(ds),!(Ls!==Co&&Ls!==Ao));)Gs+=Ls;if(!(Ls!==eo&&Ls!==So&&Ls!==Ro))for(cl=Ls,Gs+=Ls,ns=1,il="";++ds<Is;)if(Ls= $ o.charAt(ds),Ls===cl)ns++,Gs+=il+cl,il="";else if(Ls===Ao)il+=Ls;else return ns>=no&&(!Ls||Ls===Do)?(Gs+=il,Ts?!0:Ja(Gs)({type:"thematicBreak"})):void 0}}}),um=Ki({"node_modules/remark-parse/lib/util/get-indentation.js"(Os,os){Uo(),os.exports=So;var Co=" ",Do=" ",Ao=1,eo=4;function So(Ro){for(var no=0,qo=0,Ja=Ro.charAt(no), $ o={},Ts,ds=0;Ja===Co||Ja===Do;){for(Ts=Ja===Co?eo:Ao,qo+=Ts,Ts>1&&(qo=Math.floor(qo/Ts)*Ts);ds<qo;) $ o[++ds]=no;Ja=Ro.charAt(++no)}return{indent:qo,stops: $ o}}}}),Cm=Ki({"node_modules/remark-parse/lib/util/remove-indentation.js"(Os,os){Uo();var Co=cf(),Do=Of(),Ao=um();os.exports=no;var eo= `
` ,So=" ",Ro="!";function no(qo,Ja){var $ o=qo.split(eo),Ts= $ o.length+1,ds=1/0,Is=[],Gs,Ls,cl;for( $ o.unshift(Do(So,Ja)+Ro);Ts--;)if(Ls=Ao( $ o[Ts]),Is[Ts]=Ls.stops,Co( $ o[Ts]).length!==0)if(Ls.indent)Ls.indent>0&&Ls.indent<ds&&(ds=Ls.indent);else{ds=1/0;break}if(ds!==1/0)for(Ts= $ o.length;Ts--;){for(cl=Is[Ts],Gs=ds;Gs&&!(Gs in cl);)Gs--; $ o[Ts]= $ o[Ts].slice(cl[Gs]+1)}return $ o.shift(), $ o.join(eo)}}}),Qp=Ki({"node_modules/remark-parse/lib/tokenize/list.js"(Os,os){Uo();var Co=cf(),Do=Of(),Ao=rs(),eo=um(),So=Cm(),Ro=Uf();os.exports=bl;var no="*",qo="_",Ja="+", $ o="-",Ts=".",ds=" ",Is= `
` ,Gs=" ",Ls=")",cl="x",ns=4,il=/ \n \n (?! \s * $ )/,Es=/^ \[ ([ X \t x])][ \t ]/,Ss=/^([ \t ]*)([*+-]| \d +[.)])( {1,4}(?! )| | \t | $ |(?= \n ))([^ \n ]*)/,ws=/^([ \t ]*)([*+-]| \d +[.)])([ \t ]+)/,Ms=/^( {1,4}| \t )?/gm;function bl(Kl,_u,Cu){for(var Qs=this,Su=Qs.options.commonmark,Qu=Qs.options.pedantic,ec=Qs.blockTokenizers,Ka=Qs.interruptList,yu=0,bc=_u.length,Tu=null, $ l,Ru,Cl,_l,Ml,wu,uc,Rc,Lc,Od,Cc,Zd,Fp,Ap,sp,Kc,sd,Zp,ef,yf=!1,Kp,Kd,dp,pp;yu<bc&&(_l=_u.charAt(yu),!(_l!==Gs&&_l!==ds));)yu++;if(_l=_u.charAt(yu),_l===no||_l===Ja||_l=== $ o)Ml=_l,Cl=!1;else{for(Cl=!0,Ru="";yu<bc&&(_l=_u.charAt(yu),!!Ao(_l));)Ru+=_l,yu++;if(_l=_u.charAt(yu),!Ru||!(_l===Ts||Su&&_l===Ls)||Cu&&Ru!=="1")return;Tu=parseInt(Ru,10),Ml=_l}if(_l=_u.charAt(++yu),!(_l!==ds&&_l!==Gs&&(Qu||_l!==Is&&_l!==""))){if(Cu)return!0;for(yu=0,Ap=[],sp=[],Kc=[];yu<bc;){for(wu=_u.indexOf(Is,yu),uc=yu,Rc=!1,pp=!1,wu===-1&&(wu=bc), $ l=0;yu<bc;){if(_l=_u.charAt(yu),_l===Gs) $ l+=ns- $ l%ns;else if(_l===ds) $ l++;else break;yu++}if(sd&& $ l>=sd.indent&&(pp=!0),_l=_u.charAt(yu),Lc=null,!pp){if(_l===no||_l===Ja||_l=== $ o)Lc=_l,yu++, $ l++;else{for(Ru="";yu<bc&&(_l=_u.charAt(yu),!!Ao(_l));)Ru+=_l,yu++;_l=_u.charAt(yu),yu++,Ru&&(_l===Ts||Su&&_l===Ls)&&(Lc=_l, $ l+=Ru.length+1)}if(Lc)if(_l=_u.charAt(yu),_l===Gs) $ l+=ns- $ l%ns,yu++;else if(_l===ds){for(dp=yu+ns;yu<dp&&_u.charAt(yu)===ds;)yu++, $ l++;yu===dp&&_u.charAt(yu)===ds&&(yu-=ns-1, $ l-=ns-1)}else _l!==Is&&_l!==""&&(Lc=null)}if(Lc){if(!Qu&&Ml!==Lc)break;Rc=!0}else!Su&&!pp&&_u.charAt(uc)===ds?pp=!0:Su&&sd&&(pp= $ l>=sd.indent|| $ l>ns),Rc=!1,yu=uc;if(Cc=_u.slice(uc,wu),Od=uc===yu?Cc:_u.slice(yu,wu),(Lc===no||Lc===qo||Lc=== $ o)&&ec.thematicBreak.call(Qs,Kl,Cc,!0))break;if(Zd=Fp,Fp=!Rc&&!Co(Od).length,pp&&sd)sd.value=sd.value.concat(Kc,Cc),sp=sp.concat(Kc,Cc),Kc=[];else if(Rc)Kc.length!==0&&(yf=!0,sd.value.push(""),sd.trail=Kc.concat()),sd={value:[Cc],indent: $ l,trail:[]},Ap.push(sd),sp=sp.concat(Kc,Cc),Kc=[];else if(Fp){if(Zd&&!Su)break;Kc.push(Cc)}else{if(Zd||Ro(Ka,ec,Qs,[Kl,Cc,!0]))break;sd.value=sd.value.concat(Kc,Cc),sp=sp.concat(Kc,Cc),Kc=[]}yu=wu+1}for(Kp=Kl(sp.join(Is)).reset({type:"list",ordered:Cl,start:Tu,spread:yf,children:[]}),Zp=Qs.enterList(),ef=Qs.enterBlock(),yu=-1,bc=Ap.length;++yu<bc;)sd=Ap[yu].value.join(Is),Kd=Kl.now(),Kl(sd)(kl(Qs,sd,Kd),Kp),sd=Ap[yu].trail.join(Is),yu!==bc-1&&(sd+=Is),Kl(sd);return Zp(),ef(),Kp}}function kl(Kl,_u,Cu){var Qs=Kl.offset,Su=Kl.options.pedantic?bu:hl,Qu=null,ec,Ka;return _u=Su.apply(null,arguments),Kl.options.gfm&&(ec=_u.match(Es),ec&&(Ka=ec[0].length,Qu=ec[1].toLowerCase()===cl,Qs[Cu.line]+=Ka,_u=_u.slice(Ka))),{type:"listItem",spread:il.test(_u),checked:Qu,children:Kl.tokenizeBlock(_u,Cu)}}function bu(Kl,_u,Cu){var Qs=Kl.offset,Su=Cu.line;return _u=_u.replace(ws,Qu),Su=Cu.line,_u.replace(Ms,Qu);function Qu(ec){return Qs[Su]=(Qs[Su]||0)+ec.length,Su++,""}}function hl(Kl,_u,Cu){var Qs=Kl.offset,Su=Cu.line,Qu,ec,Ka,yu,bc,Tu, $ l;for(_u=_u.replace(Ss,Ru),yu=_u.split(Is),bc=So(_u,eo(Qu).indent).split(Is),bc[0]=Ka,Qs[Su]=(Qs[Su]||0)+ec.length,Su++,Tu=0, $ l=yu.length;++Tu< $ l;)Qs[Su]=(Qs[Su]||0)+yu[Tu].length-bc[Tu].length,Su++;return bc.join(Is);function Ru(Cl,_l,Ml,wu,uc){return ec=_l+Ml+wu,Ka=uc,Number(Ml)<10&&ec.length%2===1&&(Ml=ds+Ml),Qu=_l+Do(ds,Ml.length)+wu,Qu+Ka}}}}),Jf=Ki({"node_modules/remark-parse/lib/tokenize/heading-setext.js"(Os,os){Uo(),os.exports=Ja;var Co= `
` ,Do=" ",Ao=" ",eo="=",So="-",Ro=3,no=1,qo=2;function Ja( $ o,Ts,ds){for(var Is=this,Gs= $ o.now(),Ls=Ts.length,cl=-1,ns="",il,Es,Ss,ws,Ms;++cl<Ls;){if(Ss=Ts.charAt(cl),Ss!==Ao||cl>=Ro){cl--;break}ns+=Ss}for(il="",Es="";++cl<Ls;){if(Ss=Ts.charAt(cl),Ss===Co){cl--;break}Ss===Ao||Ss===Do?Es+=Ss:(il+=Es+Ss,Es="")}if(Gs.column+=ns.length,Gs.offset+=ns.length,ns+=il+Es,Ss=Ts.charAt(++cl),ws=Ts.charAt(++cl),!(Ss!==Co||ws!==eo&&ws!==So)){for(ns+=Ss,Es=ws,Ms=ws===eo?no:qo;++cl<Ls;){if(Ss=Ts.charAt(cl),Ss!==ws){if(Ss!==Co)return;cl--;break}Es+=Ss}return ds?!0: $ o(ns+Es)({type:"heading",depth:Ms,children:Is.tokenizeInline(il,Gs)})}}}}),Rf=Ki({"node_modules/remark-parse/lib/util/html.js"(Os){Uo();var os="[a-zA-Z_:][a-zA-Z0-9:._-]*",Co="[^ \" '=<> ` \ \u0000 - \ \u0020 ] + ",Do=" '[^' ] * '",Ao=' "[^" ] * "',eo=" ( ? : "+Co+" | "+Do+" | "+Ao+" ) ",So=" ( ? : \ \ s + "+os+" ( ? : \ \ s *= \ \ s * "+eo+" ) ? ) ",Ro=" < [ A - Za - z ] [ A - Za - z0 - 9 \ \ - ] * "+So+" * \ \ s * \ \ / ? > ",no=" < \ \ / [ A - Za - z ] [ A - Za - z0 - 9 \ \ - ] * \ \ s * > ",qo=" <!-- -- > | <!-- ( ? : - ? [ ^ > - ] ) ( ? : - ? [ ^ - ] ) * -- > ",Ja=" < [ ? ] . * ? [ ? ] > ",$o=" < ! [ A - Za - z ] + \ \ s + [ ^ > ] * > ",Ts=" < ! \ \ [ CDATA \ \ [ [ \ \ s \ \ S ] * ? \ \ ] \ \ ] > ";Os.openCloseTag=new RegExp(" ^ ( ? : "+Ro+" | "+no+" ) "),Os.tag=new RegExp(" ^ ( ? : "+Ro+" | "+no+" | "+qo+" | "+Ja+" | "+$o+" | "+Ts+" ) ")}}),rh=Ki({" node _modules / remark - parse / lib / tokenize / html - block . js "(Os,os){Uo();var Co=Rf().openCloseTag;os.exports=il;var Do=" ",Ao=" " , eo = `
` ,So="<",Ro=/^<(script|pre|style)(?=( \s |>| $ ))/i,no=/< \/ (script|pre|style)>/i,qo=/^<!--/,Ja=/-->/, $ o=/^< \? /,Ts=/ \? >/,ds=/^<![A-Za-z]/,Is=/>/,Gs=/^<! \[ CDATA \[ /,Ls=/]]>/,cl=/^ $ /,ns=new RegExp(Co.source+" \\ s* $ ");function il(Es,Ss,ws){for(var Ms=this,bl=Ms.options.blocks.join("|"),kl=new RegExp("^</?("+bl+")(?=( \\ s|/?>| $ ))","i"),bu=Ss.length,hl=0,Kl,_u,Cu,Qs,Su,Qu,ec,Ka=[[Ro,no,!0],[qo,Ja,!0],[ $ o,Ts,!0],[ds,Is,!0],[Gs,Ls,!0],[kl,cl,!0],[ns,cl,!1]];hl<bu&&(Qs=Ss.charAt(hl),!(Qs!==Do&&Qs!==Ao));)hl++;if(Ss.charAt(hl)===So){for(Kl=Ss.indexOf(eo,hl+1),Kl=Kl===-1?bu:Kl,_u=Ss.slice(hl,Kl),Cu=-1,Su=Ka.length;++Cu<Su;)if(Ka[Cu][0].test(_u)){Qu=Ka[Cu];break}if(Qu){if(ws)return Qu[2];if(hl=Kl,!Qu[1].test(_u))for(;hl<bu;){if(Kl=Ss.indexOf(eo,hl+1),Kl=Kl===-1?bu:Kl,_u=Ss.slice(hl+1,Kl),Qu[1].test(_u)){_u&&(hl=Kl);break}hl=Kl}return ec=Ss.slice(0,hl),Es(ec)({type:"html",value:ec})}}}}}),kf=Ki({"node_modules/is-whitespace-character/index.js"(Os,os){Uo(),os.exports=Ao;var Co=String.fromCharCode,Do=/ \s /;function Ao(eo){return Do.test(typeof eo=="number"?Co(eo):eo.charAt(0))}}}),Oh=Ki({"node_modules/collapse-white-space/index.js"(Os,os){Uo(),os.exports=Co;function Co(Do){return String(Do).replace(/ \s +/g," ")}}}),cm=Ki({"node_modules/remark-parse/lib/util/normalize.js"(Os,os){Uo();var Co=Oh();os.exports=Do;function Do(Ao){return Co(Ao).toLowerCase()}}}),wm=Ki({"node_modules/remark-parse/lib/tokenize/definition.js"(Os,os){Uo();var Co=kf(),Do=cm();os.exports=cl;var Ao='"',eo="'",So=" \\ ",Ro= `
` ,no=" ",qo=" ",Ja="[", $ o="]",Ts="(",ds=")",Is=":",Gs="<",Ls=">";function cl(Es,Ss,ws){for(var Ms=this,bl=Ms.options.commonmark,kl=0,bu=Ss.length,hl="",Kl,_u,Cu,Qs,Su,Qu,ec,Ka;kl<bu&&(Qs=Ss.charAt(kl),!(Qs!==qo&&Qs!==no));)hl+=Qs,kl++;if(Qs=Ss.charAt(kl),Qs===Ja){for(kl++,hl+=Qs,Cu="";kl<bu&&(Qs=Ss.charAt(kl),Qs!== $ o);)Qs===So&&(Cu+=Qs,kl++,Qs=Ss.charAt(kl)),Cu+=Qs,kl++;if(!(!Cu||Ss.charAt(kl)!== $ o||Ss.charAt(kl+1)!==Is)){for(Qu=Cu,hl+=Cu+ $ o+Is,kl=hl.length,Cu="";kl<bu&&(Qs=Ss.charAt(kl),!(Qs!==no&&Qs!==qo&&Qs!==Ro));)hl+=Qs,kl++;if(Qs=Ss.charAt(kl),Cu="",Kl=hl,Qs===Gs){for(kl++;kl<bu&&(Qs=Ss.charAt(kl),!!ns(Qs));)Cu+=Qs,kl++;if(Qs=Ss.charAt(kl),Qs===ns.delimiter)hl+=Gs+Cu+Qs,kl++;else{if(bl)return;kl-=Cu.length+1,Cu=""}}if(!Cu){for(;kl<bu&&(Qs=Ss.charAt(kl),!!il(Qs));)Cu+=Qs,kl++;hl+=Cu}if(Cu){for(ec=Cu,Cu="";kl<bu&&(Qs=Ss.charAt(kl),!(Qs!==no&&Qs!==qo&&Qs!==Ro));)Cu+=Qs,kl++;if(Qs=Ss.charAt(kl),Su=null,Qs===Ao?Su=Ao:Qs===eo?Su=eo:Qs===Ts&&(Su=ds),!Su)Cu="",kl=hl.length;else if(Cu){for(hl+=Cu+Qs,kl=hl.length,Cu="";kl<bu&&(Qs=Ss.charAt(kl),Qs!==Su);){if(Qs===Ro){if(kl++,Qs=Ss.charAt(kl),Qs===Ro||Qs===Su)return;Cu+=Ro}Cu+=Qs,kl++}if(Qs=Ss.charAt(kl),Qs!==Su)return;_u=hl,hl+=Cu+Qs,kl++,Ka=Cu,Cu=""}else return;for(;kl<bu&&(Qs=Ss.charAt(kl),!(Qs!==no&&Qs!==qo));)hl+=Qs,kl++;if(Qs=Ss.charAt(kl),!Qs||Qs===Ro)return ws?!0:(Kl=Es(Kl).test().end,ec=Ms.decode.raw(Ms.unescape(ec),Kl,{nonTerminated:!1}),Ka&&(_u=Es(_u).test().end,Ka=Ms.decode.raw(Ms.unescape(Ka),_u)),Es(hl)({type:"definition",identifier:Do(Qu),label:Qu,title:Ka||null,url:ec}))}}}}function ns(Es){return Es!==Ls&&Es!==Ja&&Es!== $ o}ns.delimiter=Ls;function il(Es){return Es!==Ja&&Es!== $ o&&!Co(Es)}}}),xm=Ki({"node_modules/remark-parse/lib/tokenize/table.js"(Os,os){Uo();var Co=kf();os.exports=Gs;var Do=" ",Ao= `
` ,eo=" ",So="-",Ro=":",no=" \\ ",qo="|",Ja=1, $ o=2,Ts="left",ds="center",Is="right";function Gs(Ls,cl,ns){var il=this,Es,Ss,ws,Ms,bl,kl,bu,hl,Kl,_u,Cu,Qs,Su,Qu,ec,Ka,yu,bc,Tu, $ l,Ru,Cl;if(il.options.gfm){for(Es=0,Ka=0,kl=cl.length+1,bu=[];Es<kl;){if( $ l=cl.indexOf(Ao,Es),Ru=cl.indexOf(qo,Es+1), $ l===-1&&( $ l=cl.length),Ru===-1||Ru> $ l){if(Ka< $ o)return;break}bu.push(cl.slice(Es, $ l)),Ka++,Es= $ l+1}for(Ms=bu.join(Ao),Ss=bu.splice(1,1)[0]||[],Es=0,kl=Ss.length,Ka--,ws=!1,Cu=[];Es<kl;){if(Kl=Ss.charAt(Es),Kl===qo){if(_u=null,ws===!1){if(Cl===!1)return}else Cu.push(ws),ws=!1;Cl=!1}else if(Kl===So)_u=!0,ws=ws||null;else if(Kl===Ro)ws===Ts?ws=ds:_u&&ws===null?ws=Is:ws=Ts;else if(!Co(Kl))return;Es++}if(ws!==!1&&Cu.push(ws),!(Cu.length<Ja)){if(ns)return!0;for(ec=-1,bc=[],Tu=Ls(Ms).reset({type:"table",align:Cu,children:bc});++ec<Ka;){for(yu=bu[ec],bl={type:"tableRow",children:[]},ec&&Ls(Ao),Ls(yu).reset(bl,Tu),kl=yu.length+1,Es=0,hl="",Qs="",Su=!0;Es<kl;){if(Kl=yu.charAt(Es),Kl===Do||Kl===eo){Qs?hl+=Kl:Ls(Kl),Es++;continue}Kl===""||Kl===qo?Su?Ls(Kl):((Qs||Kl)&&!Su&&(Ms=Qs,hl.length>1&&(Kl?(Ms+=hl.slice(0,-1),hl=hl.charAt(hl.length-1)):(Ms+=hl,hl="")),Qu=Ls.now(),Ls(Ms)({type:"tableCell",children:il.tokenizeInline(Qs,Qu)},bl)),Ls(hl+Kl),hl="",Qs=""):(hl&&(Qs+=hl,hl=""),Qs+=Kl,Kl===no&&Es!==kl-2&&(Qs+=yu.charAt(Es+1),Es++)),Su=!1,Es++}ec||Ls(Ao+Ss)}return Tu}}}}}),Td=Ki({"node_modules/remark-parse/lib/tokenize/paragraph.js"(Os,os){Uo();var Co=cf(),Do=yc(),Ao=Uf();os.exports=qo;var eo=" ",So= `
` ,Ro=" ",no=4;function qo(Ja, $ o,Ts){for(var ds=this,Is=ds.options,Gs=Is.commonmark,Ls=ds.blockTokenizers,cl=ds.interruptParagraph,ns= $ o.indexOf(So),il= $ o.length,Es,Ss,ws,Ms,bl;ns<il;){if(ns===-1){ns=il;break}if( $ o.charAt(ns+1)===So)break;if(Gs){for(Ms=0,Es=ns+1;Es<il;){if(ws= $ o.charAt(Es),ws===eo){Ms=no;break}else if(ws===Ro)Ms++;else break;Es++}if(Ms>=no&&ws!==So){ns= $ o.indexOf(So,ns+1);continue}}if(Ss= $ o.slice(ns+1),Ao(cl,Ls,ds,[Ja,Ss,!0]))break;if(Es=ns,ns= $ o.indexOf(So,ns+1),ns!==-1&&Co( $ o.slice(Es,ns))===""){ns=Es;break}}return Ss= $ o.slice(0,ns),Ts?!0:(bl=Ja.now(),Ss=Do(Ss),Ja(Ss)({type:"paragraph",children:ds.tokenizeInline(Ss,bl)}))}}}),Sd=Ki({"node_modules/remark-parse/lib/locate/escape.js"(Os,os){Uo(),os.exports=Co;function Co(Do,Ao){return Do.indexOf(" \\ ",Ao)}}}),Lp=Ki({"node_modules/remark-parse/lib/tokenize/escape.js"(Os,os){Uo();var Co=Sd();os.exports=eo,eo.locator=Co;var Do= `
` ,Ao=" \\ ";function eo(So,Ro,no){var qo=this,Ja, $ o;if(Ro.charAt(0)===Ao&&(Ja=Ro.charAt(1),qo.escape.indexOf(Ja)!==-1))return no?!0:(Ja===Do? $ o={type:"break"}: $ o={type:"text",value:Ja},So(Ao+Ja)( $ o))}}}),df=Ki({"node_modules/remark-parse/lib/locate/tag.js"(Os,os){Uo(),os.exports=Co;function Co(Do,Ao){return Do.indexOf("<",Ao)}}}),Gc=Ki({"node_modules/remark-parse/lib/tokenize/auto-link.js"(Os,os){Uo();var Co=kf(),Do=od(),Ao=df();os.exports= $ o, $ o.locator=Ao, $ o.notInLink=!0;var eo="<",So=">",Ro="@",no="/",qo="mailto:",Ja=qo.length;function $ o(Ts,ds,Is){var Gs=this,Ls="",cl=ds.length,ns=0,il="",Es=!1,Ss="",ws,Ms,bl,kl,bu;if(ds.charAt(0)===eo){for(ns++,Ls=eo;ns<cl&&(ws=ds.charAt(ns),!(Co(ws)||ws===So||ws===Ro||ws===":"&&ds.charAt(ns+1)===no));)il+=ws,ns++;if(il){if(Ss+=il,il="",ws=ds.charAt(ns),Ss+=ws,ns++,ws===Ro)Es=!0;else{if(ws!==":"||ds.charAt(ns+1)!==no)return;Ss+=no,ns++}for(;ns<cl&&(ws=ds.charAt(ns),!(Co(ws)||ws===So));)il+=ws,ns++;if(ws=ds.charAt(ns),!(!il||ws!==So))return Is?!0:(Ss+=il,bl=Ss,Ls+=Ss+ws,Ms=Ts.now(),Ms.column++,Ms.offset++,Es&&(Ss.slice(0,Ja).toLowerCase()===qo?(bl=bl.slice(Ja),Ms.column+=Ja,Ms.offset+=Ja):Ss=qo+Ss),kl=Gs.inlineTokenizers,Gs.inlineTokenizers={text:kl.text},bu=Gs.enterLink(),bl=Gs.tokenizeInline(bl,Ms),Gs.inlineTokenizers=kl,bu(),Ts(Ls)({type:"link",title:null,url:Do(Ss,{nonTerminated:!1}),children:bl}))}}}}}),Zf=Ki({"node_modules/ccount/index.js"(Os,os){Uo(),os.exports=Co;function Co(Do,Ao){var eo=String(Do),So=0,Ro;if(typeof Ao!="string")throw new Error("Expected character");for(Ro=eo.indexOf(Ao);Ro!==-1;)So++,Ro=eo.indexOf(Ao,Ro+Ao.length);return So}}}),jm=Ki({"node_modules/remark-parse/lib/locate/url.js"(Os,os){Uo(),os.exports=Do;var Co=["www.","http://","https://"];function Do(Ao,eo){var So=-1,Ro,no,qo;if(!this.options.gfm)return So;for(no=Co.length,Ro=-1;++Ro<no;)qo=Ao.indexOf(Co[Ro],eo),qo!==-1&&(So===-1||qo<So)&&(So=qo);return So}}}),pf=Ki({"node_modules/remark-parse/lib/tokenize/url.js"(Os,os){Uo();var Co=Zf(),Do=od(),Ao=rs(),eo=Eu(),So=kf(),Ro=jm();os.exports=Ms,Ms.locator=Ro,Ms.notInLink=!0;var no=33,qo=38,Ja=41, $ o=42,Ts=44,ds=45,Is=46,Gs=58,Ls=59,cl=63,ns=60,il=95,Es=126,Ss="(",ws=")";function Ms(bl,kl,bu){var hl=this,Kl=hl.options.gfm,_u=hl.inlineTokenizers,Cu=kl.length,Qs=-1,Su=!1,Qu,ec,Ka,yu,bc,Tu, $ l,Ru,Cl,_l,Ml,wu,uc,Rc;if(Kl){if(kl.slice(0,4)==="www.")Su=!0,yu=4;else if(kl.slice(0,7).toLowerCase()==="http://")yu=7;else if(kl.slice(0,8).toLowerCase()==="https://")yu=8;else return;for(Qs=yu-1,Ka=yu,Qu=[];yu<Cu;){if( $ l=kl.charCodeAt(yu), $ l===Is){if(Qs===yu-1)break;Qu.push(yu),Qs=yu,yu++;continue}if(Ao( $ l)||eo( $ l)|| $ l===ds|| $ l===il){yu++;continue}break}if( $ l===Is&&(Qu.pop(),yu--),Qu[0]!==void 0&&(ec=Qu.length<2?Ka:Qu[Qu.length-2]+1,kl.slice(ec,yu).indexOf("_")===-1)){if(bu)return!0;for(Ru=yu,bc=yu;yu<Cu&&( $ l=kl.charCodeAt(yu),!(So( $ l)|| $ l===ns));)yu++, $ l===no|| $ l=== $ o|| $ l===Ts|| $ l===Is|| $ l===Gs|| $ l===cl|| $ l===il|| $ l===Es||(Ru=yu);if(yu=Ru,kl.charCodeAt(yu-1)===Ja)for(Tu=kl.slice(bc,yu),Cl=Co(Tu,Ss),_l=Co(Tu,ws);_l>Cl;)yu=bc+Tu.lastIndexOf(ws),Tu=kl.slice(bc,yu),_l--;if(kl.charCodeAt(yu-1)===Ls&&(yu--,eo(kl.charCodeAt(yu-1)))){for(Ru=yu-2;eo(kl.charCodeAt(Ru));)Ru--;kl.charCodeAt(Ru)===qo&&(yu=Ru)}return Ml=kl.slice(0,yu),uc=Do(Ml,{nonTerminated:!1}),Su&&(uc="http://"+uc),Rc=hl.enterLink(),hl.inlineTokenizers={text:_u.text},wu=hl.tokenizeInline(Ml,bl.now()),hl.inlineTokenizers=_u,Rc(),bl(Ml)({type:"link",title:null,url:uc,children:wu})}}}}}),Nm=Ki({"node_modules/remark-parse/lib/locate/email.js"(Os,os){Uo();var Co=rs(),Do=Eu(),Ao=43,eo=45,So=46,Ro=95;os.exports=no;function no(Ja, $ o){var Ts=this,ds,Is;if(!this.options.gfm||(ds=Ja.indexOf("@", $ o),ds===-1))return-1;if(Is=ds,Is=== $ o||!qo(Ja.charCodeAt(Is-1)))return no.call(Ts,Ja,ds+1);for(;Is> $ o&&qo(Ja.charCodeAt(Is-1));)Is--;return Is}function qo(Ja){return Co(Ja)||Do(Ja)||Ja===Ao||Ja===eo||Ja===So||Ja===Ro}}}),Am=Ki({"node_modules/remark-parse/lib/tokenize/email.js"(Os,os){Uo();var Co=od(),Do=rs(),Ao=Eu(),eo=Nm();os.exports= $ o, $ o.locator=eo, $ o.notInLink=!0;var So=43,Ro=45,no=46,qo=64,Ja=95;function $ o(Ts,ds,Is){var Gs=this,Ls=G
` ,eo="!",So='"',Ro="'",no="(",qo=")",Ja="<", $ o=">",Ts="[",ds=" \\ ",Is="]",Gs=" ` ";function Ls(cl,ns,il){var Es=this,Ss=" ",ws=0,Ms=ns.charAt(0),bl=Es.options.pedantic,kl=Es.options.commonmark,bu=Es.options.gfm,hl,Kl,_u,Cu,Qs,Su,Qu,ec,Ka,yu,bc,Tu,$l,Ru,Cl,_l,Ml,wu;if(Ms===eo&&(ec=!0,Ss=Ms,Ms=ns.charAt(++ws)),Ms===Ts&&!(!ec&&Es.inLink)){for(Ss+=Ms,Ru=" ",ws++,bc=ns.length,_l=cl.now(),$l=0,_l.column+=ws,_l.offset+=ws;ws<bc;){if(Ms=ns.charAt(ws),Su=Ms,Ms===Gs){for(Kl=1;ns.charAt(ws+1)===Gs;)Su+=Ms,ws++,Kl++;_u?Kl>=_u&&(_u=0):_u=Kl}else if(Ms===ds)ws++,Su+=ns.charAt(ws);else if((!_u||bu)&&Ms===Ts)$l++;else if((!_u||bu)&&Ms===Is)if($l)$l--;else{if(ns.charAt(ws+1)!==no)return;Su+=no,hl=!0,ws++;break}Ru+=Su,Su=" ",ws++}if(hl){for(Ka=Ru,Ss+=Ru+Su,ws++;ws<bc&&(Ms=ns.charAt(ws),!!Co(Ms));)Ss+=Ms,ws++;if(Ms=ns.charAt(ws),Ru=" ",Cu=Ss,Ms===Ja){for(ws++,Cu+=Ja;ws<bc&&(Ms=ns.charAt(ws),Ms!==$o);){if(kl&&Ms===Ao)return;Ru+=Ms,ws++}if(ns.charAt(ws)!==$o)return;Ss+=Ja+Ru+$o,Cl=Ru,ws++}else{for(Ms=null,Su=" ";ws<bc&&(Ms=ns.charAt(ws),!(Su&&(Ms===So||Ms===Ro||kl&&Ms===no)));){if(Co(Ms)){if(!bl)break;Su+=Ms}else{if(Ms===no)$l++;else if(Ms===qo){if($l===0)break;$l--}Ru+=Su,Su=" ",Ms===ds&&(Ru+=ds,Ms=ns.charAt(++ws)),Ru+=Ms}ws++}Ss+=Ru,Cl=Ru,ws=Ss.length}for(Ru=" ";ws<bc&&(Ms=ns.charAt(ws),!!Co(Ms));)Ru+=Ms,ws++;if(Ms=ns.charAt(ws),Ss+=Ru,Ru&&(Ms===So||Ms===Ro||kl&&Ms===no))if(ws++,Ss+=Ms,Ru=" ",yu=Ms===no?qo:Ms,Qs=Ss,kl){for(;ws<bc&&(Ms=ns.charAt(ws),Ms!==yu);)Ms===ds&&(Ru+=ds,Ms=ns.charAt(++ws)),ws++,Ru+=Ms;if(Ms=ns.charAt(ws),Ms!==yu)return;for(Tu=Ru,Ss+=Ru+Ms,ws++;ws<bc&&(Ms=ns.charAt(ws),!!Co(Ms));)Ss+=Ms,ws++}else for(Su=" ";ws<bc;){if(Ms=ns.charAt(ws),Ms===yu)Qu&&(Ru+=yu+Su,Su=" "),Qu=!0;else if(!Qu)Ru+=Ms;else if(Ms===qo){Ss+=Ru+yu+Su,Tu=Ru;break}else Co(Ms)?Su+=Ms:(Ru+=yu+Su+Ms,Su=" ",Qu=!1);ws++}if(ns.charAt(ws)===qo)return il?!0:(Ss+=qo,Cl=Es.decode.raw(Es.unescape(Cl),cl(Cu).test().end,{nonTerminated:!1}),Tu&&(Qs=cl(Qs).test().end,Tu=Es.decode.raw(Es.unescape(Tu),Qs)),wu={type:ec?" image ":" link ",title:Tu||null,url:Cl},ec?wu.alt=Es.decode.raw(Es.unescape(Ka),_l)||null:(Ml=Es.enterLink(),wu.children=Es.tokenizeInline(Ka,_l),Ml()),cl(Ss)(wu))}}}}}),Mf=Ki({" node _modules / remark - parse / lib / tokenize / reference . js "(Os,os){Uo();var Co=kf(),Do=dm(),Ao=cm();os.exports=Is,Is.locator=Do;var eo=" link ",So=" image ",Ro=" shortcut ",no=" collapsed ",qo=" full ",Ja=" ! ",$o=" [ ",Ts=" \ \ ",ds=" ] ";function Is(Gs,Ls,cl){var ns=this,il=ns.options.commonmark,Es=Ls.charAt(0),Ss=0,ws=Ls.length,Ms=" ",bl=" ",kl=eo,bu=Ro,hl,Kl,_u,Cu,Qs,Su,Qu,ec;if(Es===Ja&&(kl=So,bl=Es,Es=Ls.charAt(++Ss)),Es===$o){for(Ss++,bl+=Es,Su=" ",ec=0;Ss<ws;){if(Es=Ls.charAt(Ss),Es===$o)Qu=!0,ec++;else if(Es===ds){if(!ec)break;ec--}Es===Ts&&(Su+=Ts,Es=Ls.charAt(++Ss)),Su+=Es,Ss++}if(Ms=Su,hl=Su,Es=Ls.charAt(Ss),Es===ds){if(Ss++,Ms+=Es,Su=" ",!il)for(;Ss<ws&&(Es=Ls.charAt(Ss),!!Co(Es));)Su+=Es,Ss++;if(Es=Ls.charAt(Ss),Es===$o){for(Kl=" ",Su+=Es,Ss++;Ss<ws&&(Es=Ls.charAt(Ss),!(Es===$o||Es===ds));)Es===Ts&&(Kl+=Ts,Es=Ls.charAt(++Ss)),Kl+=Es,Ss++;Es=Ls.charAt(Ss),Es===ds?(bu=Kl?qo:no,Su+=Kl+Es,Ss++):Kl=" ",Ms+=Su,Su=" "}else{if(!hl)return;Kl=hl}if(!(bu!==qo&&Qu))return Ms=bl+Ms,kl===eo&&ns.inLink?null:cl?!0:(_u=Gs.now(),_u.column+=bl.length,_u.offset+=bl.length,Kl=bu===qo?Kl:hl,Cu={type:kl+" Reference ",identifier:Ao(Kl),label:Kl,referenceType:bu},kl===eo?(Qs=ns.enterLink(),Cu.children=ns.tokenizeInline(hl,_u),Qs()):Cu.alt=ns.decode.raw(ns.unescape(hl),_u)||null,Gs(Ms)(Cu))}}}}}),fm=Ki({" node _modules / remark - parse / lib / locate / strong . js "(Os,os){Uo(),os.exports=Co;function Co(Do,Ao){var eo=Do.indexOf(" * * ",Ao),So=Do.indexOf(" _ _ ",Ao);return So===-1?eo:eo===-1||So<eo?So:eo}}}),tp=Ki({" node _modules / remark - parse / lib / tokenize / strong . js "(Os,os){Uo();var Co=cf(),Do=kf(),Ao=fm();os.exports=no,no.locator=Ao;var eo=" \ \ ",So=" * ",Ro=" _ ";function no(qo,Ja,$o){var Ts=this,ds=0,Is=Ja.charAt(ds),Gs,Ls,cl,ns,il,Es,Ss;if(!(Is!==So&&Is!==Ro||Ja.charAt(++ds)!==Is)&&(Ls=Ts.options.pedantic,cl=Is,il=cl+cl,Es=Ja.length,ds++,ns=" ",Is=" " , ! ( Ls && Do ( Ja . charAt ( ds ) ) ) ) ) for ( ; ds < Es ; ) { if ( Ss = Is , Is = Ja . charAt ( ds ) , Is === cl && Ja . charAt ( ds + 1 ) === cl && ( ! Ls || ! Do ( Ss ) ) && ( Is = Ja .
2024-08-21 13:12:53 +08:00
` ,Ao);eo>Ao&&Do.charAt(eo-1)===" ";)eo--;return eo}}}),id=Ki({"node_modules/remark-parse/lib/tokenize/break.js"(Os,os){Uo();var Co=qc();os.exports=So,So.locator=Co;var Do=" ",Ao= `
2024-08-24 19:24:09 +08:00
` ,eo=2;function So(Ro,no,qo){for(var Ja=no.length, $ o=-1,Ts="",ds;++ $ o<Ja;){if(ds=no.charAt( $ o),ds===Ao)return $ o<eo?void 0:qo?!0:(Ts+=ds,Ro(Ts)({type:"break"}));if(ds!==Do)return;Ts+=ds}}}}),Wd=Ki({"node_modules/remark-parse/lib/tokenize/text.js"(Os,os){Uo(),os.exports=Co;function Co(Do,Ao,eo){var So=this,Ro,no,qo,Ja, $ o,Ts,ds,Is,Gs,Ls;if(eo)return!0;for(Ro=So.inlineMethods,Ja=Ro.length,no=So.inlineTokenizers,qo=-1,Gs=Ao.length;++qo<Ja;)Is=Ro[qo],!(Is==="text"||!no[Is])&&(ds=no[Is].locator,ds||Do.file.fail("Missing locator: ` "+Is+" ` "),Ts=ds.call(So,Ao,1),Ts!==-1&&Ts<Gs&&(Gs=Ts)); $ o=Ao.slice(0,Gs),Ls=Do.now(),So.decode( $ o,Ls,cl);function cl(ns,il,Es){Do(Es||ns)({type:"text",value:ns})}}}}),mf=Ki({"node_modules/remark-parse/lib/parser.js"(Os,os){Uo();var Co=cu(),Do=Ul(),Ao=tc(),eo=Fu(),So=ld(),Ro=_p();os.exports=no;function no( $ o,Ts){this.file=Ts,this.offset={},this.options=Co(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=Ao(Ts).toOffset,this.unescape=eo(this,"escape"),this.decode=So(this)}var qo=no.prototype;qo.setOptions=nd(),qo.parse=Rp(),qo.options=Hd(),qo.exitStart=Do("atStart",!0),qo.enterList=Do("inList",!1),qo.enterLink=Do("inLink",!1),qo.enterBlock=Do("inBlock",!1),qo.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]],qo.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]],qo.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]],qo.blockTokenizers={blankLine:lm(),indentedCode:Cf(),fencedCode:Sp(),blockquote:wf(),atxHeading:Vf(),thematicBreak:zp(),list:Qp(),setextHeading:Jf(),html:rh(),definition:wm(),table:xm(),paragraph:Td()},qo.inlineTokenizers={escape:Lp(),autoLink:Gc(),url:pf(),email:Am(),html:Bd(),link:If(),reference:Mf(),strong:tp(),emphasis:Hf(),deletion:Wn(),code:Du(),break:id(),text:Wd()},qo.blockMethods=Ja(qo.blockTokenizers),qo.inlineMethods=Ja(qo.inlineTokenizers),qo.tokenizeBlock=Ro("block"),qo.tokenizeInline=Ro("inline"),qo.tokenizeFactory=Ro;function Ja( $ o){var Ts=[],ds;for(ds in $ o)Ts.push(ds);return Ts}}}),Bf=Ki({"node_modules/remark-parse/index.js"(Os,os){Uo();var Co=vu(),Do=cu(),Ao=mf();os.exports=eo,eo.Parser=Ao;function eo(So){var Ro=this.data("settings"),no=Co(Ao);no.prototype.options=Do(no.prototype.options,Ro,So),this.Parser=no}}}),Dm=Ki({"node_modules/bail/index.js"(Os,os){Uo(),os.exports=Co;function Co(Do){if(Do)throw Do}}}),Fm=Ki({"node_modules/is-buffer/index.js"(Os,os){Uo(),os.exports=function(Co){return Co!=null&&Co.constructor!=null&&typeof Co.constructor.isBuffer=="function"&&Co.constructor.isBuffer(Co)}}}),rp=Ki({"node_modules/extend/index.js"(Os,os){Uo();var Co=Object.prototype.hasOwnProperty,Do=Object.prototype.toString,Ao=Object.defineProperty,eo=Object.getOwnPropertyDescriptor,So=function(Ja){return typeof Array.isArray=="function"?Array.isArray(Ja):Do.call(Ja)==="[object Array]"},Ro=function(Ja){if(!Ja||Do.call(Ja)!=="[object Object]")return!1;var $ o=Co.call(Ja,"constructor"),Ts=Ja.constructor&&Ja.constructor.prototype&&Co.call(Ja.constructor.prototype,"isPrototypeOf");if(Ja.constructor&&! $ o&&!Ts)return!1;var ds;for(ds in Ja);return typeof ds>"u"||Co.call(Ja,ds)},no=function(Ja, $ o){Ao&& $ o.name==="__proto__"?Ao(Ja, $ o.name,{enumerable:!0,configurable:!0,value: $ o.newValue,writable:!0}):Ja[ $ o.name]= $ o.newValue},qo=function(Ja, $ o){if( $ o==="__proto__")if(Co.call(Ja, $ o)){if(eo)return eo(Ja, $ o).value}else return;return Ja[ $ o]};os.exports=function Ja(){var $ o,Ts,ds,Is,Gs,Ls,cl=arguments[0],ns=1,il=arguments.length,Es=!1;for(typeof cl=="boolean"&&(Es=cl,cl=arguments[1]||{},ns=2),(cl==null||typeof cl!="object"&&typeof cl!="function")&&(cl={});ns<il;++ns)if( $ o=arguments[ns], $ o!=null)for(Ts in $ o)ds=qo(cl,Ts),Is=qo( $ o,Ts),
` ,Ro=" $ ",no=2,qo=["math","math-display"];function Ja(){let ds=this.Parser,Is=this.Compiler;Co.isRemarkParser(ds)&& $ o(ds),Co.isRemarkCompiler(Is)&&Ts(Is)}function $ o(ds){let Is=ds.prototype,Gs=Is.blockMethods,Ls=Is.interruptParagraph,cl=Is.interruptList,ns=Is.interruptBlockquote;Is.blockTokenizers.math=il,Gs.splice(Gs.indexOf("fencedCode")+1,0,"math"),Ls.splice(Ls.indexOf("fencedCode")+1,0,["math"]),cl.splice(cl.indexOf("fencedCode")+1,0,["math"]),ns.splice(ns.indexOf("fencedCode")+1,0,["math"]);function il(Es,Ss,ws){var Ms=Ss.length,bl=0;let kl,bu,hl,Kl,_u,Cu,Qs,Su,Qu,ec,Ka;for(;bl<Ms&&Ss.charCodeAt(bl)===Ao;)bl++;for(_u=bl;bl<Ms&&Ss.charCodeAt(bl)===eo;)bl++;if(Cu=bl-_u,!(Cu<no)){for(;bl<Ms&&Ss.charCodeAt(bl)===Ao;)bl++;for(Qs=bl;bl<Ms;){if(kl=Ss.charCodeAt(bl),kl===eo)return;if(kl===Do)break;bl++}if(Ss.charCodeAt(bl)===Do){if(ws)return!0;for(bu=[],Qs!==bl&&bu.push(Ss.slice(Qs,bl)),bl++,hl=Ss.indexOf(So,bl+1),hl=hl===-1?Ms:hl;bl<Ms;){for(Su=!1,ec=bl,Ka=hl,Kl=hl,Qu=0;Kl>ec&&Ss.charCodeAt(Kl-1)===Ao;)Kl--;for(;Kl>ec&&Ss.charCodeAt(Kl-1)===eo;)Qu++,Kl--;for(Cu<=Qu&&Ss.indexOf(Ro,ec)===Kl&&(Su=!0,Ka=Kl);ec<=Ka&&ec-bl<_u&&Ss.charCodeAt(ec)===Ao;)ec++;if(Su)for(;Ka>ec&&Ss.charCodeAt(Ka-1)===Ao;)Ka--;if((!Su||ec!==Ka)&&bu.push(Ss.slice(ec,Ka)),Su)break;bl=hl+1,hl=Ss.indexOf(So,bl+1),hl=hl===-1?Ms:hl}return bu=bu.join( `
` ),Es(Ss.slice(0,hl))({type:"math",value:bu,data:{hName:"div",hProperties:{className:qo.concat()},hChildren:[{type:"text",value:bu}]}})}}}}function Ts(ds){let Is=ds.prototype;Is.visitors.math=Gs;function Gs(Ls){return ` $$
2024-08-21 13:12:53 +08:00
` +Ls.value+ `
2024-08-24 19:24:09 +08:00
$$ ` }}}}),Vm=Ki({"node_modules/remark-math/index.js"(Os,os){Uo();var Co=hm(),Do=kh();os.exports=Ao;function Ao(eo){var So=eo||{};Do.call(this,So),Co.call(this,So)}}}),nh=Ki({"node_modules/remark-footnotes/index.js"(Os,os){Uo(),os.exports=Is;var Co=9,Do=10,Ao=32,eo=33,So=58,Ro=91,no=92,qo=93,Ja=94, $ o=96,Ts=4,ds=1024;function Is(Ss){var ws=this.Parser,Ms=this.Compiler;Gs(ws)&&cl(ws,Ss),Ls(Ms)&&ns(Ms)}function Gs(Ss){return!!(Ss&&Ss.prototype&&Ss.prototype.blockTokenizers)}function Ls(Ss){return!!(Ss&&Ss.prototype&&Ss.prototype.visitors)}function cl(Ss,ws){for(var Ms=ws||{},bl=Ss.prototype,kl=bl.blockTokenizers,bu=bl.inlineTokenizers,hl=bl.blockMethods,Kl=bl.inlineMethods,_u=kl.definition,Cu=bu.reference,Qs=[],Su=-1,Qu=hl.length,ec;++Su<Qu;)ec=hl[Su],!(ec==="newline"||ec==="indentedCode"||ec==="paragraph"||ec==="footnoteDefinition")&&Qs.push([ec]);Qs.push(["footnoteDefinition"]),Ms.inlineNotes&&(il(Kl,"reference","inlineNote"),bu.inlineNote=bc),il(hl,"definition","footnoteDefinition"),il(Kl,"reference","footnoteCall"),kl.definition= $ l,kl.footnoteDefinition=Ka,bu.footnoteCall=yu,bu.reference=Tu,bl.interruptFootnoteDefinition=Qs,Tu.locator=Cu.locator,yu.locator=Ru,bc.locator=Cl;function Ka(_l,Ml,wu){for(var uc=this,Rc=uc.interruptFootnoteDefinition,Lc=uc.offset,Od=Ml.length+1,Cc=0,Zd=[],Fp,Ap,sp,Kc,sd,Zp,ef,yf,Kp,Kd,dp,pp,jd;Cc<Od&&(Kc=Ml.charCodeAt(Cc),!(Kc!==Co&&Kc!==Ao));)Cc++;if(Ml.charCodeAt(Cc++)===Ro&&Ml.charCodeAt(Cc++)===Ja){for(Ap=Cc;Cc<Od;){if(Kc=Ml.charCodeAt(Cc),Kc!==Kc||Kc===Do||Kc===Co||Kc===Ao)return;if(Kc===qo){sp=Cc,Cc++;break}Cc++}if(!(sp===void 0||Ap===sp||Ml.charCodeAt(Cc++)!==So)){if(wu)return!0;for(Fp=Ml.slice(Ap,sp),sd=_l.now(),Kp=0,Kd=0,dp=Cc,pp=[];Cc<Od;){if(Kc=Ml.charCodeAt(Cc),Kc!==Kc||Kc===Do)jd={start:Kp,contentStart:dp||Cc,contentEnd:Cc,end:Cc},pp.push(jd),Kc===Do&&(Kp=Cc+1,Kd=0,dp=void 0,jd.end=Kp);else if(Kd!==void 0)if(Kc===Ao||Kc===Co)Kd+=Kc===Ao?1:Ts-Kd%Ts,Kd>Ts&&(Kd=void 0,dp=Cc);else{if(Kd<Ts&&jd&&(jd.contentStart===jd.contentEnd||Es(Rc,kl,uc,[_l,Ml.slice(Cc,ds),!0])))break;Kd=void 0,dp=Cc}Cc++}for(Cc=-1,Od=pp.length;Od>0&&(jd=pp[Od-1],jd.contentStart===jd.contentEnd);)Od--;for(Zp=_l(Ml.slice(0,jd.contentEnd));++Cc<Od;)jd=pp[Cc],Lc[sd.line+Cc]=(Lc[sd.line+Cc]||0)+(jd.contentStart-jd.start),Zd.push(Ml.slice(jd.contentStart,jd.end));return ef=uc.enterBlock(),yf=uc.tokenizeBlock(Zd.join(""),sd),ef(),Zp({type:"footnoteDefinition",identifier:Fp.toLowerCase(),label:Fp,children:yf})}}}function yu(_l,Ml,wu){var uc=Ml.length+1,Rc=0,Lc,Od,Cc,Zd;if(Ml.charCodeAt(Rc++)===Ro&&Ml.charCodeAt(Rc++)===Ja){for(Od=Rc;Rc<uc;){if(Zd=Ml.charCodeAt(Rc),Zd!==Zd||Zd===Do||Zd===Co||Zd===Ao)return;if(Zd===qo){Cc=Rc,Rc++;break}Rc++}if(!(Cc===void 0||Od===Cc))return wu?!0:(Lc=Ml.slice(Od,Cc),_l(Ml.slice(0,Rc))({type:"footnoteReference",identifier:Lc.toLowerCase(),label:Lc}))}}function bc(_l,Ml,wu){var uc=this,Rc=Ml.length+1,Lc=0,Od=0,Cc,Zd,Fp,Ap,sp,Kc,sd;if(Ml.charCodeAt(Lc++)===Ja&&Ml.charCodeAt(Lc++)===Ro){for(Fp=Lc;Lc<Rc;){if(Zd=Ml.charCodeAt(Lc),Zd!==Zd)return;if(Kc===void 0)if(Zd===no)Lc+=2;else if(Zd===Ro)Od++,Lc++;else if(Zd===qo)if(Od===0){Ap=Lc,Lc++;break}else Od--,Lc++;else if(Zd=== $ o){for(sp=Lc,Kc=1;Ml.charCodeAt(sp+Kc)=== $ o;)Kc++;Lc+=Kc}else Lc++;else if(Zd=== $ o){for(sp=Lc,sd=1;Ml.charCodeAt(sp+sd)=== $ o;)sd++;Lc+=sd,Kc===sd&&(Kc=void 0),sd=void 0}else Lc++}if(Ap!==void 0)return wu?!0:(Cc=_l.now(),Cc.column+=2,Cc.offset+=2,_l(Ml.slice(0,Lc))({type:"footnote",children:uc.tokenizeInline(Ml.slice(Fp,Ap),Cc)}))}}function Tu(_l,Ml,wu){var uc=0;if(Ml.charCodeAt(uc)===eo&&uc++,Ml.charCodeAt(uc)===Ro&&Ml.charCodeAt(uc+1)!==Ja)return Cu.call(this,_l,Ml,wu)}function $ l(_l,Ml,wu){for(var uc=0,Rc=Ml.charCodeAt(uc);Rc===Ao||Rc===Co;)Rc=Ml.charCodeAt(++uc);if(Rc===Ro&&Ml.charCodeAt(uc+1)!==Ja)return _u.call(this,_l,Ml,wu)}function Ru(_l,Ml){return _l.indexOf("[",Ml)}function Cl(_l,Ml){return _l.indexOf("^[",Ml)}}function ns(Ss){var ws=Ss.prototype.visitors,Ms=" ";ws.footnote=bl,ws.footnoteReference=kl,ws.footnoteDefinition=bu;function bl(hl){return"^["+this.all(hl).join("")+"]"}function kl(hl){return"[^"+(hl.label||h
2024-08-21 13:12:53 +08:00
` ).split( `
` ),_u=0,Cu=Kl.length,Qs;++_u<Cu;)Qs=Kl[_u],Qs!==""&&(Kl[_u]=Ms+Qs);return"[^"+(hl.label||hl.identifier)+"]: "+Kl.join( `
2024-08-22 19:23:55 +08:00
` )}}function il(Ss,ws,Ms){Ss.splice(Ss.indexOf(ws),0,Ms)}function Es(Ss,ws,Ms,bl){for(var kl=Ss.length,bu=-1;++bu<kl;)if(ws[Ss[bu][0]].apply(Ms,bl))return!0;return!1}}}),gm=Ki({"src/utils/front-matter/parse.js"(Os,os){Uo();var Co=new RegExp("^(?<startDelimiter>-{3}| \\ +{3})(?<language>[^ \\ n]*) \\ n(?:|(?<value>.*?) \\ n)(?<endDelimiter> \\ k<startDelimiter>| \\ .{3})[^ \\ S \\ n]*(?: \\ n| $ )","s");function Do(Ao){let eo=Ao.match(Co);if(!eo)return{content:Ao};let{startDelimiter:So,language:Ro,value:no="",endDelimiter:qo}=eo.groups,Ja=Ro.trim()||"yaml";if(So==="+++"&&(Ja="toml"),Ja!=="yaml"&&So!==qo)return{content:Ao};let[ $ o]=eo;return{frontMatter:{type:"front-matter",lang:Ja,value:no,startDelimiter:So,endDelimiter:qo,raw: $ o.replace(/ \n $ /,"")},content: $ o.replace(/[^ \n ]/g," ")+Ao.slice( $ o.length)}}os.exports=Do}}),_m=Ki({"src/language-markdown/pragma.js"(Os,os){Uo();var Co=gm(),Do=["format","prettier"];function Ao(eo){let So= ` @ ( $ { Do . join ( "|" ) } ) ` ,Ro=new RegExp([ ` <!-- \ \ s * $ { So } \ \ s * -- > ` , ` { \ \ s * \ \ / \ \ * \ \ s * $ { So } \ \ s * \ \ * \ \ / \ \ s * } ` , ` <!-- . * \ r ?
2024-08-21 13:12:53 +08:00
[ \ \ s \ \ S ] * ( ^ |
) [ ^ \ \ S
] * $ { So } [ ^ \ \ S
] * ( $ |
) [ \ \ s \ \ S ] *
. * -- > ` ].join("|"),"m"),no=eo.match(Ro);return(no==null?void 0:no.index)===0}os.exports={startWithPragma:Ao,hasPragma:eo=>Ao(Co(eo).content.trimStart()),insertPragma:eo=>{let So=Co(eo),Ro= ` <!-- @ $ { Do [ 0 ] } -- > ` ;return So.frontMatter? ` $ { So . frontMatter . raw }
$ { Ro }
$ { So . content } ` : ` $ { Ro }
2024-08-22 19:23:55 +08:00
$ { So . content } ` }}}}),em=Ki({"src/language-markdown/loc.js"(Os,os){Uo();function Co(Ao){return Ao.position.start.offset}function Do(Ao){return Ao.position.end.offset}os.exports={locStart:Co,locEnd:Do}}}),hf=Ki({"src/language-markdown/mdx.js"(Os,os){Uo();var Co=/^import \s /,Do=/^export \s /,Ao="[a-z][a-z0-9]*( \\ .[a-z][a-z0-9]*)*|",eo=/<!---->|<!---?[^>-](?:-?[^-])*-->/,So=/^{ \s * \/ \* (.*) \* \/ \s *}/,Ro= `
2024-08-21 13:12:53 +08:00
2024-08-24 19:24:09 +08:00
` ,no=ds=>Co.test(ds),qo=ds=>Do.test(ds),Ja=(ds,Is)=>{let Gs=Is.indexOf(Ro),Ls=Is.slice(0,Gs);if(qo(Ls)||no(Ls))return ds(Ls)({type:qo(Ls)?"export":"import",value:Ls})}, $ o=(ds,Is)=>{let Gs=So.exec(Is);if(Gs)return ds(Gs[0])({type:"esComment",value:Gs[1].trim()})};Ja.locator=ds=>qo(ds)||no(ds)?-1:1, $ o.locator=(ds,Is)=>ds.indexOf("{",Is);function Ts(){let{Parser:ds}=this,{blockTokenizers:Is,blockMethods:Gs,inlineTokenizers:Ls,inlineMethods:cl}=ds.prototype;Is.esSyntax=Ja,Ls.esComment= $ o,Gs.splice(Gs.indexOf("paragraph"),0,"esSyntax"),cl.splice(cl.indexOf("text"),0,"esComment")}os.exports={esSyntax:Ts,BLOCKS_REGEX:Ao,COMMENT_REGEX:eo}}}),Hm={};Yo(Hm,{default:()=>ip});function ip(Os){if(typeof Os!="string")throw new TypeError("Expected a string");return Os.replace(/[| \\ {}()[ \] ^ $ +*?.]/g," \\ $ &").replace(/-/g," \\ x2d")}var Gf=pa({"node_modules/escape-string-regexp/index.js"(){Uo()}}),jp=Ki({"src/utils/get-last.js"(Os,os){Uo();var Co=Do=>Do[Do.length-1];os.exports=Co}}),Jp=Ki({"node_modules/semver/internal/debug.js"(Os,os){Uo();var Co=typeof An=="object"&&An.env&&An.env.NODE_DEBUG&&/ \b semver \b /i.test(An.env.NODE_DEBUG)?function(){for(var Do=arguments.length,Ao=new Array(Do),eo=0;eo<Do;eo++)Ao[eo]=arguments[eo];return console.error("SEMVER",...Ao)}:()=>{};os.exports=Co}}),qf=Ki({"node_modules/semver/internal/constants.js"(Os,os){Uo();var Co="2.0.0",Do=256,Ao=Number.MAX_SAFE_INTEGER||9007199254740991,eo=16;os.exports={SEMVER_SPEC_VERSION:Co,MAX_LENGTH:Do,MAX_SAFE_INTEGER:Ao,MAX_SAFE_COMPONENT_LENGTH:eo}}}),vm=Ki({"node_modules/semver/internal/re.js"(Os,os){Uo();var{MAX_SAFE_COMPONENT_LENGTH:Co}=qf(),Do=Jp();Os=os.exports={};var Ao=Os.re=[],eo=Os.src=[],So=Os.t={},Ro=0,no=(qo,Ja, $ o)=>{let Ts=Ro++;Do(qo,Ts,Ja),So[qo]=Ts,eo[Ts]=Ja,Ao[Ts]=new RegExp(Ja, $ o?"g":void 0)};no("NUMERICIDENTIFIER","0|[1-9] \\ d*"),no("NUMERICIDENTIFIERLOOSE","[0-9]+"),no("NONNUMERICIDENTIFIER"," \\ d*[a-zA-Z-][a-zA-Z0-9-]*"),no("MAINVERSION", ` ( $ { eo [ So . NUMERICIDENTIFIER ] } ) \ \ . ( $ { eo [ So . NUMERICIDENTIFIER ] } ) \ \ . ( $ { eo [ So . NUMERICIDENTIFIER ] } ) ` ),no("MAINVERSIONLOOSE", ` ( $ { eo [ So . NUMERICIDENTIFIERLOOSE ] } ) \ \ . ( $ { eo [ So . NUMERICIDENTIFIERLOOSE ] } ) \ \ . ( $ { eo [ So . NUMERICIDENTIFIERLOOSE ] } ) ` ),no("PRERELEASEIDENTIFIER", ` ( ? : $ { eo [ So . NUMERICIDENTIFIER ] } | $ { eo [ So . NONNUMERICIDENTIFIER ] } ) ` ),no("PRERELEASEIDENTIFIERLOOSE", ` ( ? : $ { eo [ So . NUMERICIDENTIFIERLOOSE ] } | $ { eo [ So . NONNUMERICIDENTIFIER ] } ) ` ),no("PRERELEASE", ` ( ? : - ( $ { eo [ So . PRERELEASEIDENTIFIER ] } ( ? : \ \ . $ { eo [ So . PRERELEASEIDENTIFIER ] } ) * ) ) ` ),no("PRERELEASELOOSE", ` ( ? : - ? ( $ { eo [ So . PRERELEASEIDENTIFIERLOOSE ] } ( ? : \ \ . $ { eo [ So . PRERELEASEIDENTIFIERLOOSE ] } ) * ) ) ` ),no("BUILDIDENTIFIER","[0-9A-Za-z-]+"),no("BUILD", ` ( ? : \ \ + ( $ { eo [ So . BUILDIDENTIFIER ] } ( ? : \ \ . $ { eo [ So . BUILDIDENTIFIER ] } ) * ) ) ` ),no("FULLPLAIN", ` v ? $ { eo [ So . MAINVERSION ] } $ { eo [ So . PRERELEASE ] } ? $ { eo [ So . BUILD ] } ? ` ),no("FULL", ` ^ $ { eo [ So . FULLPLAIN ] } $ ` ),no("LOOSEPLAIN", ` [ v = \ \ s ] * $ { eo [ So . MAINVERSIONLOOSE ] } $ { eo [ So . PRERELEASELOOSE ] } ? $ { eo [ So . BUILD ] } ? ` ),no("LOOSE", ` ^ $ { eo [ So . LOOSEPLAIN ] } $ ` ),no("GTLT","((?:<|>)?=?)"),no("XRANGEIDENTIFIERLOOSE", ` $ { eo [ So . NUMERICIDENTIFIERLOOSE ] } | x | X | \ \ * ` ),no("XRANGEIDENTIFIER", ` $ { eo [ So . NUMERICIDENTIFIER ] } | x | X | \ \ * ` ),no("XRANGEPLAIN", ` [ v = \ \ s ] * ( $ { eo [ So . XRANGEIDENTIFIER ] } ) ( ? : \ \ . ( $ { eo [ So . XRANGEIDENTIFIER ] } ) ( ? : \ \ . ( $ { eo [ So . XRANGEIDENTIFIER ] } ) ( ? : $ { eo [ So . PRERELEASE ] } ) ? $ { eo [ So . BUILD ] } ? ) ? ) ? ` ),no("XRANGEPLAINLOOSE", ` [ v = \ \ s ] * ( $ { eo [ So . XRANGEIDENTIFIERLOOSE ] } ) ( ? : \ \ . ( $ { eo [ So . XRANGEIDENTIFIERLOOSE ] } ) ( ? : \ \ . ( $ { eo [ So . XRANGEIDENTIFIERLOOSE ] } ) ( ? : $ { eo [ So . PRERELEASELOOSE ] } ) ? $ { eo [ So . BUILD ] } ? ) ? ) ? ` ),no("XRANGE", ` ^ $ { eo [ So . GTLT ] } \ \ s * $ { eo [ So . XRANGEPLAIN ] } $ ` ),no("XRANGELOOSE", ` ^ $ { eo [ So . GTLT ] } \ \ s * $ { eo [ So . XRANGEPLAINLOOSE ] } $ ` ),no("COERCE", ` ( ^ | [ ^ \ \ d ] ) ( \ \ d { 1 , $ { Co } } ) ( ? : \ \ . ( \ \ d { 1 , $ { Co } } ) ) ? ( ? : \ \ . ( \ \ d { 1 , $ { Co } } ) ) ? ( ? : $ | [ ^ \ \ d ] ) ` ),no("COERCERTL",eo[So.COERCE],!0),no("LONETILDE","(?:~>?)"),no("TILDETRIM", ` ( \ \ s * ) $ { eo [ So . LONETILDE ] } \ \ s + ` ,!0),Os.tildeTrimReplace=" $ 1~",no("TILDE", ` ^ $ { eo [ So . LONETILDE ] } $ { eo [ So . XRANGEPLAIN ] } $ ` ),no("TILDELOOSE", ` ^ $ { eo [ So . LONETILDE ] } $ { eo [ So . XRANGEPLAINLOOSE ] } $ ` ),no("LONECARET","(?: \\ ^)"),no("CARETTRIM", ` ( \ \ s * ) $ { eo [ So . LONECARET ] } \ \ s + ` ,!0),Os.caretTrimReplace=" $ 1^",no("CARET", ` ^ $ { eo [ So . LONECARET ] } $ { eo [ So . XRANGEPLAIN ] } $ ` ),no
2024-08-21 13:12:53 +08:00
Print ( to stderr ) where a cursor at the given position would move to after formatting .
This option cannot be used with -- range - start and -- range - end .
` ,cliCategory:Ao},endOfLine:{since:"1.15.0",category:no,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only ( \\ n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters ( \\ r \\ n), common on Windows"},{value:"cr",description:"Carriage Return character only ( \\ r), used very rarely"},{value:"auto",description:Co `
Maintain existing
( mixed values within one file are normalised by looking at what ' s used after the first line )
` }]},filepath:{since:"1.4.0",category:qo,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:So,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:qo,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:So},parser:{since:"0.0.10",category:no,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception: $ o=>typeof $ o=="string"||typeof $ o=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"acorn",since:"2.6.0",description:"JavaScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:no,description:"Add a plugin. Multiple plugins can be passed as separate ` -- plugin ` s.",exception: $ o=>typeof $ o=="string"||typeof $ o=="object",cliName:"plugin",cliCategory:Do},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:no,description:Co `
Custom directory that contains prettier plugins in node _modules subdirectory .
Overrides default behavior when plugins are searched relatively to the location of Prettier .
Multiple values are accepted .
` ,exception: $ o=>typeof $ o=="string"||typeof $ o=="object",cliName:"plugin-search-dir",cliCategory:Do},printWidth:{since:"0.0.0",category:no,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:qo,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Co `
Format code ending at a given character offset ( exclusive ) .
The range will extend forwards to the end of the selected statement .
This option cannot be used with -- cursor - offset .
` ,cliCategory:Ao},rangeStart:{since:"1.4.0",category:qo,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Co `
Format code starting at a given character offset .
The range will extend backwards to the start of the first line containing the selected statement .
This option cannot be used with -- cursor - offset .
` ,cliCategory:Ao},requirePragma:{since:"1.7.0",category:qo,type:"boolean",default:!1,description:Co `
Require either '@prettier' or '@format' to be present in the file ' s first docblock comment
in order for it to be formatted .
2024-08-24 19:24:09 +08:00
` ,cliCategory:So},tabWidth:{type:"int",category:no,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:no,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:no,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};os.exports={CATEGORY_CONFIG:Do,CATEGORY_EDITOR:Ao,CATEGORY_FORMAT:eo,CATEGORY_OTHER:So,CATEGORY_OUTPUT:Ro,CATEGORY_GLOBAL:no,CATEGORY_SPECIAL:qo,options:Ja}}}),qp=Ki({"src/main/support.js"(Os,os){Uo();var Co={compare:Rm(),lt:gf(),gte:Mh()},Do=Bh(),Ao=ih().version,eo=xp().options;function So(){let{plugins:no=[],showUnreleased:qo=!1,showDeprecated:Ja=!1,showInternal: $ o=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ts=Ao.split("-",1)[0],ds=no.flatMap(ns=>ns.languages||[]).filter(Gs),Is=Do(Object.assign({},...no.map(ns=>{let{options:il}=ns;return il}),eo),"name").filter(ns=>Gs(ns)&&Ls(ns)).sort((ns,il)=>ns.name===il.name?0:ns.name<il.name?-1:1).map(cl).map(ns=>{ns=Object.assign({},ns),Array.isArray(ns.default)&&(ns.default=ns.default.length===1?ns.default[0].value:ns.default.filter(Gs).sort((Es,Ss)=>Co.compare(Ss.since,Es.since))[0].value),Array.isArray(ns.choices)&&(ns.choices=ns.choices.filter(Es=>Gs(Es)&&Ls(Es)),ns.name==="parser"&&Ro(ns,ds,no));let il=Object.fromEntries(no.filter(Es=>Es.defaultOptions&&Es.defaultOptions[ns.name]!==void 0).map(Es=>[Es.name,Es.defaultOptions[ns.name]]));return Object.assign(Object.assign({},ns),{},{pluginDefaults:il})});return{languages:ds,options:Is};function Gs(ns){return qo||!("since"in ns)||ns.since&&Co.gte(Ts,ns.since)}function Ls(ns){return Ja||!("deprecated"in ns)||ns.deprecated&&Co.lt(Ts,ns.deprecated)}function cl(ns){return $ o?ns:Us(ns,Ds)}}function Ro(no,qo,Ja){let $ o=new Set(no.choices.map(Ts=>Ts.value));for(let Ts of qo)if(Ts.parsers){for(let ds of Ts.parsers)if(! $ o.has(ds)){ $ o.add(ds);let Is=Ja.find(Ls=>Ls.parsers&&Ls.parsers[ds]),Gs=Ts.name;Is&&Is.name&&(Gs+= ` ( plugin : $ { Is . name } ) ` ),no.choices.push({value:ds,description:Gs})}}}os.exports={getSupportInfo:So}}}),Ch=Ki({"src/utils/is-non-empty-array.js"(Os,os){Uo();function Co(Do){return Array.isArray(Do)&&Do.length>0}os.exports=Co}});function Ph(){let{onlyFirst:Os=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},os=["[ \\ u001B \\ u009B][[ \\ ]()#;?]*(?:(?:(?:(?:;[-a-zA-Z \\ d \\ /#&.:=?%@~_]+)*|[a-zA-Z \\ d]+(?:;[-a-zA-Z \\ d \\ /#&.:=?%@~_]*)*)? \\ u0007)","(?:(?: \\ d{1,4}(?:; \\ d{0,4})*)?[ \\ dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(os,Os?void 0:"g")}var Xh=pa({"node_modules/strip-ansi/node_modules/ansi-regex/index.js"(){Uo()}});function zm(Os){if(typeof Os!="string")throw new TypeError( ` Expected a \ ` string \` , got \` ${ typeof Os } \` ` ) ; return Os . replace ( Ph ( ) , "" ) } var Pf = pa ( { "node_modules/strip-ansi/index.js" ( ) { Uo ( ) , Xh ( ) } } ) ; function Lh ( Os ) { return Number . isInteger ( Os ) ? Os >= 4352 && ( Os <= 4447 || Os === 9001 || Os === 9002 || 11904 <= Os && Os <= 12871 && Os !== 12351 || 12880 <= Os && Os <= 19903 || 19968 <= Os && Os <= 42182 || 43360 <= Os && Os <= 43388 || 44032 <= Os && Os <= 55203 || 63744 <= Os && Os <= 64255 || 65040 <= Os && Os <= 65049 || 65072 <= Os && Os <= 65131 || 65281 <= Os && Os <= 65376 || 65504 <= Os && Os <= 65510 || 110592 <= Os && Os <= 110593 || 127488 <= Os && Os <= 127569 || 131072 <= Os && Os <= 262141 ) : ! 1 } var $h = pa ( { "node_modules/is-fullwidth-code-point/index.js" ( ) { Uo ( ) } } ) , Gm = Ki ( { "node_modules/emoji-regex/index.js" ( Os , os ) { Uo ( ) , os . exports = function ( ) { return / \ u D 8 3 C \ u D F F 4 \ u D B 4 0 \ u D C 6 7 \ u D B 4 0 \ u D C 6 2 ( ? : \ u D B 4 0 \ u D C 7 7 \ u D B 4 0 \ u D C 6 C \ u D B 4 0 \ u D C 7 3 | \ u D B 4 0 \ u D C 7 3 \ u D B 4 0 \ u D C 6 3 \ u D B 4 0 \ u D C 7 4 | \ u D B 4 0 \ u D C 6 5 \ u D B 4 0 \ u D C 6 E \ u D B 4 0 \ u D C 6 7 ) \ u D B 4 0 \ u D C 7 F | ( ? : \ u D 8 3 E \ u D D D 1 \ u D 8 3 C \ u D F F F \ u 2 0 0 D \ u 2 7 6 4 \ u F E 0 F \ u 2 0 0 D ( ? : \ u D 8 3 D \ u D C 8 B \ u 2 0 0 D ) ? \ u D 8 3 E \ u D D D 1 | \ u D 8 3 D \ u D C 6 9 \ u D 8 3 C \ u D F F F \ u 2 0 0 D \ u D 8 3 E \ u D D 1 D \ u 2 0 0 D ( ? : \ u D 8 3 D [ \ u D C 6 8 \ u D C 6 9 ] ) ) ( ? : \ u D 8 3 C [ \ u D F F B - \ u D F F E ] ) | ( ? : \ u D 8 3 E \ u D D D 1 \ u D 8 3 C \ u D F F E \ u 2 0 0 D \ u 2 7 6 4 \ u F E 0 F \ u 2 0 0 D ( ? : \ u D 8 3 D \ u D C 8 B \ u 2 0 0 D ) ? \ u D
2024-08-21 13:12:53 +08:00
` )return Ao-2;if(Ro=== `
` ||Ro===" \r "||Ro===" \u 2028"||Ro===" \u 2029")return Ao-1}else{if(Ro===" \r "&&Do.charAt(Ao+1)=== `
` )return Ao+2;if(Ro=== `
2024-08-24 19:24:09 +08:00
` ||Ro===" \r "||Ro===" \u 2028"||Ro===" \u 2029")return Ao+1}return Ao}os.exports=Co}}),wd=Ki({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(Os,os){Uo();var Co=Pl(),Do=Ec(),Ao=_c(),{skipSpaces:eo}=Yl();function So(Ro,no){let qo=null,Ja=no;for(;Ja!==qo;)qo=Ja,Ja=eo(Ro,Ja),Ja=Co(Ro,Ja),Ja=Ao(Ro,Ja),Ja=Do(Ro,Ja);return Ja}os.exports=So}}),vp=Ki({"src/common/util.js"(Os,os){Uo();var{default:Co}=(Gf(),hs(Hm)),Do=jp(),{getSupportInfo:Ao}=qp(),eo=Ch(),So=Xs(),{skipWhitespace:Ro,skipSpaces:no,skipToLineEnd:qo,skipEverythingButNewLine:Ja}=Yl(), $ o=Pl(),Ts=_c(),ds=Ec(),Is=wd(),Gs=Cl=>Cl[Cl.length-2];function Ls(Cl){return(_l,Ml,wu)=>{let uc=wu&&wu.backwards;if(Ml===!1)return!1;let{length:Rc}=_l,Lc=Ml;for(;Lc>=0&&Lc<Rc;){let Od=_l.charAt(Lc);if(Cl instanceof RegExp){if(!Cl.test(Od))return Lc}else if(!Cl.includes(Od))return Lc;uc?Lc--:Lc++}return Lc===-1||Lc===Rc?Lc:!1}}function cl(Cl,_l){let Ml=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},wu=no(Cl,Ml.backwards?_l-1:_l,Ml),uc=ds(Cl,wu,Ml);return wu!==uc}function ns(Cl,_l,Ml){for(let wu=_l;wu<Ml;++wu)if(Cl.charAt(wu)=== `
` )return!0;return!1}function il(Cl,_l,Ml){let wu=Ml(_l)-1;wu=no(Cl,wu,{backwards:!0}),wu=ds(Cl,wu,{backwards:!0}),wu=no(Cl,wu,{backwards:!0});let uc=ds(Cl,wu,{backwards:!0});return wu!==uc}function Es(Cl,_l){let Ml=null,wu=_l;for(;wu!==Ml;)Ml=wu,wu=qo(Cl,wu),wu= $ o(Cl,wu),wu=no(Cl,wu);return wu=Ts(Cl,wu),wu=ds(Cl,wu),wu!==!1&&cl(Cl,wu)}function Ss(Cl,_l,Ml){return Es(Cl,Ml(_l))}function ws(Cl,_l,Ml){return Is(Cl,Ml(_l))}function Ms(Cl,_l,Ml){return Cl.charAt(ws(Cl,_l,Ml))}function bl(Cl,_l){let Ml=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return no(Cl,Ml.backwards?_l-1:_l,Ml)!==_l}function kl(Cl,_l){let Ml=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,wu=0;for(let uc=Ml;uc<Cl.length;++uc)Cl[uc]===" "?wu=wu+_l-wu%_l:wu++;return wu}function bu(Cl,_l){let Ml=Cl.lastIndexOf( `
` );return Ml===-1?0:kl(Cl.slice(Ml+1).match(/^[ \t ]*/)[0],_l)}function hl(Cl,_l){let Ml={quote:'"',regex:/"/g,escaped:"""},wu={quote:"'",regex:/'/g,escaped:"'"},uc=_l==="'"?wu:Ml,Rc=uc===wu?Ml:wu,Lc=uc;if(Cl.includes(uc.quote)||Cl.includes(Rc.quote)){let Od=(Cl.match(uc.regex)||[]).length,Cc=(Cl.match(Rc.regex)||[]).length;Lc=Od>Cc?Rc:uc}return Lc}function Kl(Cl,_l){let Ml=Cl.slice(1,-1),wu=_l.parser==="json"||_l.parser==="json5"&&_l.quoteProps==="preserve"&&!_l.singleQuote?'"':_l.__isInHtmlAttribute?"'":hl(Ml,_l.singleQuote?"'":'"').quote;return _u(Ml,wu,!(_l.parser==="css"||_l.parser==="less"||_l.parser==="scss"||_l.__embeddedInHtml))}function _u(Cl,_l,Ml){let wu=_l==='"'?"'":'"',uc=/ \\ (.)|(["'])/gs,Rc=Cl.replace(uc,(Lc,Od,Cc)=>Od===wu?Od:Cc===_l?" \\ "+Cc:Cc||(Ml&&/^[^ \n \r "'0-7 \\ bfnrt-vx \u 2028 \u 2029] $ /.test(Od)?Od:" \\ "+Od));return _l+Rc+_l}function Cu(Cl){return Cl.toLowerCase().replace(/^([+-]?[ \d .]+e)(?: \+ |(-))?0*( \d )/," $ 1 $ 2 $ 3").replace(/^([+-]?[ \d .]+)e[+-]?0+ $ /," $ 1").replace(/^([+-])? \. /," $ 10.").replace(/( \. \d +?)0+(?=e| $ )/," $ 1").replace(/ \. (?=e| $ )/,"")}function Qs(Cl,_l){let Ml=Cl.match(new RegExp( ` ( $ { Co ( _l ) } ) + ` ,"g"));return Ml===null?0:Ml.reduce((wu,uc)=>Math.max(wu,uc.length/_l.length),0)}function Su(Cl,_l){let Ml=Cl.match(new RegExp( ` ( $ { Co ( _l ) } ) + ` ,"g"));if(Ml===null)return 0;let wu=new Map,uc=0;for(let Rc of Ml){let Lc=Rc.length/_l.length;wu.set(Lc,!0),Lc>uc&&(uc=Lc)}for(let Rc=1;Rc<uc;Rc++)if(!wu.get(Rc))return Rc;return uc+1}function Qu(Cl,_l){(Cl.comments||(Cl.comments=[])).push(_l),_l.printed=!1,_l.nodeDescription=Ru(Cl)}function ec(Cl,_l){_l.leading=!0,_l.trailing=!1,Qu(Cl,_l)}function Ka(Cl,_l,Ml){_l.leading=!1,_l.trailing=!1,Ml&&(_l.marker=Ml),Qu(Cl,_l)}function yu(Cl,_l){_l.leading=!1,_l.trailing=!0,Qu(Cl,_l)}function bc(Cl,_l){let{languages:Ml}=Ao({plugins:_l.plugins}),wu=Ml.find(uc=>{let{name:Rc}=uc;return Rc.toLowerCase()===Cl})||Ml.find(uc=>{let{aliases:Rc}=uc;return Array.isArray(Rc)&&Rc.includes(Cl)})||Ml.find(uc=>{let{extensions:Rc}=uc;return Array.isArray(Rc)&&Rc.includes( ` . $ { Cl } ` )});return wu&&wu.parsers[0]}function Tu(Cl){return Cl&&Cl.type==="front-matter"}function $ l(Cl){let _l=new WeakMap;return function(Ml){return _l.has(Ml)||_l.set(Ml,Symbol(Cl)),_l.get(Ml)}}function Ru(Cl){let _l=Cl.type||Cl.kind||"(unknown type)",Ml=String(Cl.name||Cl.id&&(typeof Cl.id=="object"?Cl.id.name:Cl.id)||Cl.key&&(typeof Cl.key=="object"?Cl.key.name:Cl.key)||Cl.value&&(typeof Cl.value=="object"?"":String(Cl.value))||Cl.operator||"");return Ml.length>20&&(Ml=Ml.slice(0,19)+"…"),_l+(Ml?" "+Ml:"")}os.exports={inferParserByLanguage:bc,getStringWidth:So,getMaxContinuousCount:Qs,getMinNotPresentContinuousCount:Su,getPenultimate:Gs,getLast:Do,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Is,getNextNonSpaceNonCommentCharacterIndex:ws,getNextNonSpaceNonCommentCharacter:Ms,skip:Ls,skipWhitespace:Ro,skipSpaces:no,skipToLineEnd:qo,skipEverythingButNewLine:Ja,skipInlineComment: $ o,skipTrailingComment:Ts,skipNewline:ds,isNextLineEmptyAfterIndex:Es,isNextLineEmpty:Ss,isPreviousLineEmpty:il,hasNewline:cl,hasNewlineInRange:ns,hasSpaces:bl,getAlignmentSize:kl,getIndentSize:bu,getPreferredQuote:hl,printString:Kl,printNumber:Cu,makeString:_u,addLeadingComment:ec,addDanglingComment:Ka,addTrailingComment:yu,isFrontMatterNode:Tu,isNonEmptyArray:eo,createGroupIdMapper: $ l}}}),zd=Ki({"src/language-markdown/constants.evaluate.js"(Os,os){os.exports={cjkPattern:"(?:[ \\ u02ea- \\ u02eb \\ u1100- \\ u11ff \\ u2e80- \\ u2e99 \\ u2e9b- \\ u2ef3 \\ u2f00- \\ u2fd5 \\ u2ff0- \\ u303f \\ u3041- \\ u3096 \\ u3099- \\ u309f \\ u30a1- \\ u30fa \\ u30fc- \\ u30ff \\ u3105- \\ u312f \\ u3131- \\ u318e \\ u3190- \\ u3191 \\ u3196- \\ u31ba \\ u31c0- \\ u31e3 \\ u31f0- \\ u321e \\ u322a- \\ u3247 \\ u3260- \\ u327e \\ u328a- \\ u32b0 \\ u32c0- \\ u32cb \\ u32d0- \\ u3370 \\ u337b- \\ u337f \\ u33e0- \\ u33fe \\ u3400- \\ u4db5 \\ u4e00- \\ u9fef \\ ua960- \\ ua97c \\ uac00- \\ ud7a3 \\ ud7b0- \\ ud7c6 \\ ud7cb- \\ ud7fb \\ uf900- \\ ufa6d \\ ufa70- \\ ufad9 \\ ufe10- \\ ufe1f \\ ufe30- \\ ufe6f \\ uff00- \\ uffef]|[ \\ ud840- \\ ud868 \\ ud86a- \\ ud86c \\ ud86f- \\ ud872 \\ ud874- \\ ud879][ \\ udc00- \\ udfff]| \\ ud82c[ \\ udc00- \\ udd1e \\ udd50- \\ udd52 \\ udd64- \\ udd67]| \\ ud83c[ \\ ude00 \\ ude50
2024-08-21 13:12:53 +08:00
( $ { eo } ) ` ,"g")," $ 1 $ 2")).split(/([ \t \n ]+)/);for(let[hl,Kl]of kl.entries()){if(hl%2===1){bl.push({type:"whitespace",value:/ \n /.test(Kl)? `
2024-08-24 19:24:09 +08:00
` :" "});continue}if((hl===0||hl===kl.length-1)&&Kl==="")continue;let _u=Kl.split(new RegExp( ` ( $ { eo } ) ` ));for(let[Cu,Qs]of _u.entries())if(!((Cu===0||Cu===_u.length-1)&&Qs==="")){if(Cu%2===0){Qs!==""&&bu({type:"word",value:Qs,kind:Es,hasLeadingPunctuation: $ o.test(Qs[0]),hasTrailingPunctuation: $ o.test(Co(Qs))});continue}bu( $ o.test(Qs)?{type:"word",value:Qs,kind:Ms,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:Qs,kind:Ja.test(Qs)?ws:Ss,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return bl;function bu(hl){let Kl=Co(bl);Kl&&Kl.type==="word"&&(Kl.kind===Es&&hl.kind===Ss&&!Kl.hasTrailingPunctuation||Kl.kind===Ss&&hl.kind===Es&&!hl.hasLeadingPunctuation?bl.push({type:"whitespace",value:" "}):!_u(Es,Ms)&&![Kl.value,hl.value].some(Cu=>/ \u 3000/.test(Cu))&&bl.push({type:"whitespace",value:""})),bl.push(hl);function _u(Cu,Qs){return Kl.kind===Cu&&hl.kind===Qs||Kl.kind===Qs&&hl.kind===Cu}}}function ds(ns,il){let[,Es,Ss,ws]=il.slice(ns.position.start.offset,ns.position.end.offset).match(/^ \s *( \d +)( \. | \) )( \s *)/);return{numberText:Es,marker:Ss,leadingSpaces:ws}}function Is(ns,il){if(!ns.ordered||ns.children.length<2)return!1;let Es=Number(ds(ns.children[0],il.originalText).numberText),Ss=Number(ds(ns.children[1],il.originalText).numberText);if(Es===0&&ns.children.length>2){let ws=Number(ds(ns.children[2],il.originalText).numberText);return Ss===1&&ws===1}return Ss===1}function Gs(ns,il){let{value:Es}=ns;return ns.position.end.offset===il.length&&Es.endsWith( `
2024-08-21 13:12:53 +08:00
` )&&il.endsWith( `
2024-08-24 19:24:09 +08:00
` )?Es.slice(0,-1):Es}function Ls(ns,il){return function Es(Ss,ws,Ms){let bl=Object.assign({},il(Ss,ws,Ms));return bl.children&&(bl.children=bl.children.map((kl,bu)=>Es(kl,bu,[bl,...Ms]))),bl}(ns,null,[])}function cl(ns){if((ns==null?void 0:ns.type)!=="link"||ns.children.length!==1)return!1;let[il]=ns.children;return Do(ns)===Do(il)&&Ao(ns)===Ao(il)}os.exports={mapAst:Ls,splitText:Ts,punctuationPattern:Ro,getFencedCodeBlockValue:Gs,getOrderedListItemInfo:ds,hasGitDiffFriendlyOrderedList:Is,INLINE_NODE_TYPES:no,INLINE_NODE_WRAPPER_TYPES:qo,isAutolink:cl}}}),qh=Ki({"src/language-markdown/unified-plugins/html-to-jsx.js"(Os,os){Uo();var Co=hf(),{mapAst:Do,INLINE_NODE_WRAPPER_TYPES:Ao}=qm();function eo(){return So=>Do(So,(Ro,no,qo)=>{let[Ja]=qo;return Ro.type!=="html"||Co.COMMENT_REGEX.test(Ro.value)||Ao.includes(Ja.type)?Ro:Object.assign(Object.assign({},Ro),{},{type:"jsx"})})}os.exports=eo}}),_f=Ki({"src/language-markdown/unified-plugins/front-matter.js"(Os,os){Uo();var Co=gm();function Do(){let Ao=this.Parser.prototype;Ao.blockMethods=["frontMatter",...Ao.blockMethods],Ao.blockTokenizers.frontMatter=eo;function eo(So,Ro){let no=Co(Ro);if(no.frontMatter)return So(no.frontMatter.raw)(no.frontMatter)}eo.onlyAtStart=!0}os.exports=Do}}),Lf=Ki({"src/language-markdown/unified-plugins/liquid.js"(Os,os){Uo();function Co(){let Do=this.Parser.prototype,Ao=Do.inlineMethods;Ao.splice(Ao.indexOf("text"),0,"liquid"),Do.inlineTokenizers.liquid=eo;function eo(So,Ro){let no=Ro.match(/^({%.*?%}|{{.*?}})/s);if(no)return So(no[0])({type:"liquidNode",value:no[0]})}eo.locator=function(So,Ro){return So.indexOf("{",Ro)}}os.exports=Co}}),bm=Ki({"src/language-markdown/unified-plugins/wiki-link.js"(Os,os){Uo();function Co(){let Do="wikiLink",Ao=/^ \[ \[ (?<linkContents>.+?)]]/s,eo=this.Parser.prototype,So=eo.inlineMethods;So.splice(So.indexOf("link"),0,Do),eo.inlineTokenizers.wikiLink=Ro;function Ro(no,qo){let Ja=Ao.exec(qo);if(Ja){let $ o=Ja.groups.linkContents.trim();return no(Ja[0])({type:Do,value: $ o})}}Ro.locator=function(no,qo){return no.indexOf("[",qo)}}os.exports=Co}}),vf=Ki({"src/language-markdown/unified-plugins/loose-items.js"(Os,os){Uo();function Co(){let Do=this.Parser.prototype,Ao=Do.blockTokenizers.list;function eo(So,Ro,no){return Ro.type==="listItem"&&(Ro.loose=Ro.spread||So.charAt(So.length-1)=== `
` ,Ro.loose&&(no.loose=!0)),Ro}Do.blockTokenizers.list=function(So,Ro,no){function qo(Ja){let $ o=So(Ja);function Ts(ds,Is){return $ o(eo(Ja,ds,Is),Is)}return Ts.reset=function(ds,Is){return $ o.reset(eo(Ja,ds,Is),Is)},Ts}return qo.now=So.now,Ao.call(this,qo,Ro,no)}}os.exports=Co}});Uo();var Wf=Bf(),km=Rh(),Nd=Vm(),Wh=nh(),Dd=_m(),{locStart:Wp,locEnd:Mm}=em(),Ip=hf(),nm=qh(), $ f=_f(),jf=Lf(),uh=bm(),dh=vf();function bf(Os){let{isMDX:os}=Os;return Co=>{let Do=km().use(Wf,Object.assign({commonmark:!0},os&&{blocks:[Ip.BLOCKS_REGEX]})).use(Wh).use( $ f).use(Nd).use(os?Ip.esSyntax:Bm).use(jf).use(os?nm:Bm).use(uh).use(dh);return Do.runSync(Do.parse(Co))}}function Bm(Os){return Os}var ym={astFormat:"mdast",hasPragma:Dd.hasPragma,locStart:Wp,locEnd:Mm},Kf=Object.assign(Object.assign({},ym),{},{parse:bf({isMDX:!1})}),Nh=Object.assign(Object.assign({},ym),{},{parse:bf({isMDX:!0})});ps.exports={parsers:{remark:Kf,markdown:Kf,mdx:Nh}}});return gc()})})(parserMarkdown);var parserMarkdownExports=parserMarkdown.exports;const prettierMarkdown=getDefaultExportFromCjs(parserMarkdownExports);function addPrefix(e){return ` $ { prefix } _ _$ { e } ` }function createCustomTheme(e,t,y=!0){const n=JSON.parse(JSON.stringify(e));return n.block.h1["border-bottom"]= ` 2 px solid $ { t } ` ,n.block.h2.background=t,n.block.h3["border-left"]= ` 3 px solid $ { t } ` ,n.block.h4.color=t,n.inline.strong.color=t,y||(n.block.h3["border-bottom"]= ` 1 px dashed $ { t } ` ,n.block.blockquote["border-left"]= ` 4 px solid $ { t } ` ),n}function setColorWithCustomTemplate(e,t,y=!0){return createCustomTheme(e,t,y)}function setFontSizeWithTemplate(e){return function(t,y=!0){const n=JSON.parse(JSON.stringify(e));return y?(n.block.h1["font-size"]= ` $ { t * 1.2 } px ` ,n.block.h2["font-size"]= ` $ { t * 1.2 } px ` ,n.block.h3["font-size"]= ` $ { t * 1.1 } px ` ,n.block.h4["font-size"]= ` $ { t } px ` ):(n.block.h1["font-size"]= ` $ { t * 1.4 } px ` ,n.block.h2["font-size"]= ` $ { t * 1.3 } px ` ,n.block.h3["font-size"]= ` $ { t * 1.2 } px ` ,n.block.h4["font-size"]= ` $ { t * 1.1 } px ` ),n}}function setTheme(e,t,y,n){return setColorWithCustomTemplate(setFontSizeWithTemplate(e)(t,n),y,n)}function customCssWithTemplate(e,t,y){const n=createCustomTheme(y,t);return n.block.h1=Object.assign(n.block.h1,e.h1),n.block.h2=Object.assign(n.block.h2,e.h2),n.block.h3=Object.assign(n.block.h3,e.h3),n.block.h4=Object.assign(n.block.h4,e.h4),n.block.code=Object.assign(n.block.code,e.code),n.block.p=Object.assign(n.block.p,e.p),n.block.hr=Object.assign(n.block.hr,e.hr),n.block.blockquote=Object.assign(n.block.blockquote,e.blockquote),n.block.blockquote_p=Object.assign(n.block.blockquote_p,e.blockquote_p),n.block.image=Object.assign(n.block.image,e.image),n.inline.strong=Object.assign(n.inline.strong,e.strong),n.inline.codespan=Object.assign(n.inline.codespan,e.codespan),n.inline.link=Object.assign(n.inline.link,e.link),n.inline.wx_link=Object.assign(n.inline.wx_link,e.wx_link),n.block.ul=Object.assign(n.block.ul,e.ul),n.block.ol=Object.assign(n.block.ol,e.ol),n.inline.listitem=Object.assign(n.inline.listitem,e.li),n}function css2json(e){e=e.replace(/ \/ \* [ \s \S ]*? \* \/ /g,"");const t={},y=n=>n.reduce((k,L)=>{const[ $ ,j]=L.split(":").map(V=>V.trim());return $ &&(k[ $ ]=j),k},{});for(;e.includes("{")&&e.includes("}");){const n=e.indexOf("{"),k=e.indexOf("}"),L=e.substring(n+1,k).split(";").map(V=>V.trim()).filter(Boolean), $ =e.substring(0,n).split(",").map(V=>V.trim()),j=y(L); $ .forEach(V=>{t[V]={...t[V]||{},...j}}),e=e.slice(k+1).trim()}return t}function formatDoc(e){return prettier.format(e,{parser:"markdown",plugins:[prettierMarkdown]})}function formatCss(e){return prettier.format(e,{parser:"css",plugins:[prettierCss]})}function downloadMD(e){const t=document.createElement("a");t.download="content.md",t.style.display="none";const y=new Blob([e]);t.href=URL.createObjectURL(y),document.body.appendChild(t),t.click(),document.body.removeChild(t)}function exportHTML(){const e=document.querySelector("#output");k(e);const t=e.innerHTML,y=document.createElement("a");y.download="content.html",y.style.display="none";const n=new Blob([ ` < html > < head > < meta charset = "utf-8" / > < / h e a d > < b o d y > < d i v s t y l e = " w i d t h : 7 5 0 p x ; m a r g i n : a u t o ; " > $
2024-08-21 13:12:53 +08:00
` }return n}function toBase64(e){return new Promise((t,y)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(n.result.split(",").pop()),n.onerror=k=>y(k)})}function checkImage(e){if(!/ \. (?:gif|jpe?g|png) $ /i.test(e.name))return{ok:!1,msg:"请上传 JPG/PNG/GIF 格式的图片"};const y=10;return e.size>y*1024*1024?{ok:!1,msg: ` 由于公众号限制 , 图片大小不能超过 $ { y } M ` }:{ok:!0}}function removeLeft(e){const t=e.split( `
` ),y=t.filter(n=>n.trim()).map(n=>n.match(/(^ \s +)?/)[0].length).sort((n,k)=>n-k)[0];return t.map(n=>n.slice(y)).join( `
2024-08-22 19:23:55 +08:00
` )}function solveWeChatImage(){const t=document.getElementById("output").getElementsByTagName("img");for(let y=0;y<t.length;y++){const n=t[y],k=n.getAttribute("width"),L=n.getAttribute("height");n.removeAttribute("width"),n.removeAttribute("height"),n.style.width=k,n.style.height=L}}function mergeCss(e){return juice(e,{inlinePseudoElements:!0,preserveImportant:!0})}const defaultKeyMap=CodeMirror.keyMap.default,modPrefix=defaultKeyMap===CodeMirror.keyMap.macDefault?"Cmd":"Ctrl",useStore=defineStore("store",()=>{const e=useDark(),t=useToggle(e),y=useStorage("isMacCodeBlock",!0),n=useToggle(y),k=useStorage("isEditOnLeft",!0),L=useToggle(k), $ =useStorage("isCiteStatus",!1),j=useToggle( $ ),V=ref $ 1(""),z=useStorage(addPrefix("theme"),themeOptions[0].value),re=useStorage("fonts",fontFamilyOptions[0].value),ie=useStorage("size",fontSizeOptions[2].value),oe=useStorage("color",colorOptions[0].value),ue=useStorage("codeBlockTheme",codeBlockThemeOptions[2].value),de=useStorage("legend",legendOptions[3].value),pe=ie.value.replace("px",""),Ie=new WxRenderer({theme:setTheme(themeMap[z.value],pe,oe.value,z.value==="default"),fonts:re.value,size:ie.value}),_e=ref $ 1(null),Ce=useStorage("__editor_content",formatDoc(DEFAULT_CONTENT)),he=()=>{const Sr=formatDoc(_e.value.getValue());Ce.value=Sr,_e.value.setValue(Sr)},Ne=()=>{const Sr=ue.value,Dr=document.querySelector("#hljs");if(Dr)Dr.setAttribute("href",Sr);else{const Rr=document.createElement("link");Rr.setAttribute("type","text/css"),Rr.setAttribute("rel","stylesheet"),Rr.setAttribute("href",Sr),Rr.setAttribute("id","hljs"),document.head.appendChild(Rr)}},Fe=()=>{Ne();const Sr=Ie;Sr.reset(),Sr.setOptions({status: $ .value,legend:de.value}),marked.setOptions({renderer:Sr});let Dr=marked.parse(_e.value.getValue(0));Dr=Dr.replace(/(style=".*?)"/,' $ 1;margin-top: 0"'), $ .value&&(Dr+=Ie.buildFootnotes(),Dr+=Ie.buildAddition()),y.value&&(Dr+= `
2024-08-21 13:12:53 +08:00
< style >
. hljs . code _ _pre : : before {
position : initial ;
padding : initial ;
content : '' ;
display : block ;
height : 25 px ;
background - color : transparent ;
background - image : url ( "https://doocs.oss-cn-shenzhen.aliyuncs.com/img/123.svg" ) ;
background - position : 14 px 10 px ! important ;
background - repeat : no - repeat ;
background - size : 40 px ! important ;
}
. hljs . code _ _pre {
padding : 0 ! important ;
}
. hljs . code _ _pre code {
display : - webkit - box ;
padding : 0.5 em 1 em 1 em ;
overflow - x : auto ;
text - indent : 0 ;
}
< / s t y l e >
2024-08-24 19:24:09 +08:00
` ),V.value=Dr},Ue=ref $ 1(null),kt=Sr=>{Ue.value.setValue(Sr)},Et=useStorage("__css_content",DEFAULT_CSS_CONTENT),Ve=useStorage(addPrefix("css_content_config"),{active:"方案 1",tabs:[{title:"方案 1",name:"方案 1",content:Et.value||DEFAULT_CSS_CONTENT}]}),qe=()=>Ve.value.tabs.find(Sr=>Sr.name===Ve.value.active),jt=Sr=>{Ve.value.active=Sr;const Dr=Ve.value.tabs.find(Rr=>Rr.name===Sr).content;kt(Dr)},tr=Sr=>{const Dr=qe();Dr.title=Sr,Dr.name=Sr,Ve.value.active=Sr},rr=Sr=>{Ve.value.tabs.push({name:Sr,title:Sr,content:DEFAULT_CSS_CONTENT}),Ve.value.active=Sr,kt(DEFAULT_CSS_CONTENT)},ar=Sr=>Ve.value.tabs.every(({name:Dr})=>Dr!==Sr),nr=()=>{const Sr=css2json(Ue.value.getValue());let Dr=setTheme(themeMap[z.value],pe,oe.value,z.value==="default");Dr=customCssWithTemplate(Sr,oe.value,Dr),Ie.setOptions({theme:Dr}),Fe()};onMounted(()=>{const Sr=document.querySelector("#cssEditor");Sr.value=qe().content,Ue.value=markRaw(CodeMirror.fromTextArea(Sr,{mode:"css",theme:"style-mirror",lineNumbers:!1,lineWrapping:!0,matchBrackets:!0,autofocus:!0,extraKeys:{[ ` $ { modPrefix } - F ` ]:function(Rr){const Wr=formatCss(Rr.getValue());qe().content=Wr,Rr.setValue(Wr)}}})),Ue.value.on("keyup",(Dr,Rr)=>{(Rr.keyCode>=65&&Rr.keyCode<=90||Rr.keyCode===189)&&Dr.showHint(Rr)}),Ue.value.on("update",()=>{nr(),qe().content=Ue.value.getValue()})});const ur=()=>{ $ .value=!1,y.value=!0,z.value=themeOptions[0].value,re.value=fontFamilyOptions[0].value,re.value=fontFamilyOptions[0].value,ie.value=fontSizeOptions[2].value,oe.value=colorOptions[0].value,ue.value=codeBlockThemeOptions[2].value,de.value=legendOptions[3].value,Ve.value={active:"方案 1",tabs:[{title:"方案 1",name:"方案 1",content:Et.value||DEFAULT_CSS_CONTENT}]},Ue.value.setValue(DEFAULT_CSS_CONTENT),nr(),Fe()},cr=Sr=>(...Dr)=>{Sr(...Dr),Fe()},_r=(Sr,Dr)=>{const Rr=setFontSizeWithTemplate(themeMap[z.value])(Sr.replace("px",""),z.value==="default");return setColorWithCustomTemplate(Rr,Dr,z.value==="default")},hr=cr(Sr=>{Ie.setOptions({theme:setTheme(themeMap[Sr],pe,oe.value,Sr==="default")}),z.value=Sr}),Er=cr(Sr=>{Ie.setOptions({fonts:Sr}),re.value=Sr}),kr=cr(Sr=>{const Dr=_r(Sr,oe.value);Ie.setOptions({size:Sr,theme:Dr}),ie.value=Sr}),xr=cr(Sr=>{const Dr=_r(ie.value,Sr);Ie.setOptions({theme:Dr}),oe.value=Sr}),yr=cr(Sr=>{ue.value=Sr}),vr=cr(Sr=>{de.value=Sr}),Ir=cr(()=>{n()}),Mr=cr(()=>{j()}),mr=()=>{exportHTML(),document.querySelector("#output").innerHTML=V.value},gr=()=>{downloadMD(_e.value.getValue())},jr=()=>{const Sr=document.body,Dr=document.createElement("input");Dr.type="file",Dr.name="filename",Dr.accept=".md",Dr.onchange=()=>{const Rr=Dr.files[0];if(!Rr)return;const Wr=new FileReader;Wr.readAsText(Rr),Wr.onload=Kr=>{_e.value.setValue(formatDoc(Kr.target.result)),ElMessage.success("文档导入成功")}},Sr.appendChild(Dr),Dr.click(),Sr.removeChild(Dr)},Hr=()=>{ElMessageBox.confirm("此操作将丢失本地自定义样式,是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then(()=>{ur(),ElMessage({type:"success",message:"样式重置成功~"})}).catch(()=>{_e.value.focus()})},Vr=ref $ 1(!1),zr=useToggle(Vr),Tr=ref $ 1(!1),Cr=useToggle(Tr),Br=ref $ 1(!1),br=useToggle(Br);return{isShowCssEditor:Vr,toggleShowCssEditor:zr,isShowInsertFormDialog:Tr,toggleShowInsertFormDialog:Cr,isShowUploadImgDialog:Br,toggleShowUploadImgDialog:br,isDark:e,toggleDark:t,isEditOnLeft:k,toggleEditOnLeft:L,isMacCodeBlock:y,isCiteStatus: $ ,citeStatusChanged:Mr,output:V,editor:_e,cssEditor:Ue,theme:z,fontFamily:re,fontSize:ie,fontColor:oe,codeBlockTheme:ue,legend:de,editorRefresh:Fe,themeChanged:hr,fontChanged:Er,sizeChanged:kr,colorChanged:xr,codeBlockThemeChanged:yr,legendChanged:vr,macCodeBlockChanged:Ir,formatContent:he,exportEditorContent2HTML:mr,exportEditorContent2MD:gr,importMarkdownContent:jr,resetStyleConfirm:Hr,editorContent:Ce,cssContentConfig:Ve,addCssContentTab:rr,validatorTabName:ar,setCssEditorValue:kt,tabChanged:jt,renameTab:tr}}),Store=createPinia(),ElementPlus={install(e){e.use(installer,{size:"default"}),e.config.globalProperties. $ loading=ElL
2024-08-21 13:12:53 +08:00
( c ) 2012 by Cédric Mesnil . All rights reserved .
Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met :
- Redistributions of source code must retain the above copyright notice , this list of conditions and the following disclaimer .
- Redistributions in binary form must reproduce the above copyright notice , this list of conditions and the following disclaimer in the documentation and / or other materials provided with the distribution .
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT LIMITED TO , THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE , DATA , OR PROFITS ; OR BUSINESS INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING NEGLIGENCE OR OTHERWISE ) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE , EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE .
2024-08-24 19:24:09 +08:00
* / r e t u r n f u n c t i o n ( n ) { v a r k = y , L = k . l i b , $ = L . W o r d A r r a y , j = L . H a s h e r , V = k . a l g o , z = $ . c r e a t e ( [ 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 1 0 , 1 1 , 1 2 , 1 3 , 1 4 , 1 5 , 7 , 4 , 1 3 , 1 , 1 0 , 6 , 1 5 , 3 , 1 2 , 0 , 9 , 5 , 2 , 1 4 , 1 1 , 8 , 3 , 1 0 , 1 4 , 4 , 9 , 1 5 , 8 , 1 , 2 , 7 , 0 , 6 , 1 3 , 1 1 , 5 , 1 2 , 1 , 9 , 1 1 , 1 0 , 0 , 8 , 1 2 , 4 , 1 3 , 3 , 7 , 1 5 , 1 4 , 5 , 6 , 2 , 4 , 0 , 5 , 9 , 7 , 1 2 , 2 , 1 0 , 1 4 , 1 , 3 , 8 , 1 1 , 6 , 1 5 , 1 3 ] ) , r e = $ . c r e a t e ( [ 5 , 1 4 , 7 , 0 , 9 , 2 , 1 1 , 4 , 1 3 , 6 , 1 5 , 8 , 1 , 1 0 , 3 , 1 2 , 6 , 1 1 , 3 , 7 , 0 , 1 3 , 5 , 1 0 , 1 4 , 1 5 , 8 , 1 2 , 4 , 9 , 1 , 2 , 1 5 , 5 , 1 , 3 , 7 , 1 4 , 6 , 9 , 1 1 , 8 , 1 2 , 2 , 1 0 , 0 , 4 , 1 3 , 8 , 6 , 4 , 1 , 3 , 1 1 , 1 5 , 0 , 5 , 1 2 , 2 , 1 3 , 9 , 7 , 1 0 , 1 4 , 1 2 , 1 5 , 1 0 , 4 , 1 , 5 , 8 , 7 , 6 , 2 , 1 3 , 1 4 , 0 , 3 , 9 , 1 1 ] ) , i e = $ . c r e a t e ( [ 1 1 , 1 4 , 1 5 , 1 2 , 5 , 8 , 7 , 9 , 1 1 , 1 3 , 1 4 , 1 5 , 6 , 7 , 9 , 8 , 7 , 6 , 8 , 1 3 , 1 1 , 9 , 7 , 1 5 , 7 , 1 2 , 1 5 , 9 , 1 1 , 7 , 1 3 , 1 2 , 1 1 , 1 3 , 6 , 7 , 1 4 , 9 , 1 3 , 1 5 , 1 4 , 8 , 1 3 , 6 , 5 , 1 2 , 7 , 5 , 1 1 , 1 2 , 1 4 , 1 5 , 1 4 , 1 5 , 9 , 8 , 9 , 1 4 , 5 , 6 , 8 , 6 , 5 , 1 2 , 9 , 1 5 , 5 , 1 1 , 6 , 8 , 1 3 , 1 2 , 5 , 1 2 , 1 3 , 1 4 , 1 1 , 8 , 5 , 6 ] ) , o e = $ . c r e a t e ( [ 8 , 9 , 9 , 1 1 , 1 3 , 1 5 , 1 5 , 5 , 7 , 7 , 8 , 1 1 , 1 4 , 1 4 , 1 2 , 6 , 9 , 1 3 , 1 5 , 7 , 1 2 , 8 , 9 , 1 1 , 7 , 7 , 1 2 , 7 , 6 , 1 5 , 1 3 , 1 1 , 9 , 7 , 1 5 , 1 1 , 8 , 6 , 6 , 1 4 , 1 2 , 1 3 , 5 , 1 4 , 1 3 , 1 3 , 7 , 5 , 1 5 , 5 , 8 , 1 1 , 1 4 , 1 4 , 6 , 1 4 , 6 , 9 , 1 2 , 9 , 1 2 , 5 , 1 5 , 8 , 8 , 5 , 1 2 , 9 , 1 2 , 5 , 1 4 , 6 , 8 , 1 3 , 6 , 5 , 1 5 , 1 3 , 1 1 , 1 1 ] ) , u e = $ . c r e a t e ( [ 0 , 1 5 1 8 5 0 0 2 4 9 , 1 8 5 9 7 7 5 3 9 3 , 2 4 0 0 9 5 9 7 0 8 , 2 8 4 0 8 5 3 8 3 8 ] ) , d e = $ . c r e a t e ( [ 1 3 5 2 8 2 9 9 2 6 , 1 5 4 8 6 0 3 6 8 4 , 1 8 3 6 0 7 2 6 9 1 , 2 0 5 3 9 9 4 2 1 7 , 0 ] ) , p e = V . R I P E M D 1 6 0 = j . e x t e n d ( { _ d o R e s e t : f u n c t i o n ( ) { t h i s . _ h a s h = $ . c r e a t e ( [ 1 7 3 2 5 8 4 1 9 3 , 4 0 2 3 2 3 3 4 1 7 , 2 5 6 2 3 8 3 1 0 2 , 2 7 1 7 3 3 8 7 8 , 3 2 8 5 3 7 7 5 2 0 ] ) } , _ d o P r o c e s s B l o c k : f u n c t i o n ( U e , k t ) { f o r ( v a r E t = 0 ; E t < 1 6 ; E t + + ) { v a r V e = k t + E t , q e = U e [ V e ] ; U e [ V e ] = ( q e < < 8 | q e > > > 2 4 ) & 1 6 7 1 1 9 3 5 | ( q e < < 2 4 | q e > > > 8 ) & 4 2 7 8 2 5 5 3 6 0 } v a r j t = t h i s . _ h a s h . w o r d s , t r = u e . w o r d s , r r = d e . w o r d s , a r = z . w o r d s , n r = r e . w o r d s , u r = i e . w o r d s , c r = o e . w o r d s , _ r , h r , E r , k r , x r , y r , v r , I r , M r , m r ; y r = _ r = j t [ 0 ] , v r = h r = j t [ 1 ] , I r = E r = j t [ 2 ] , M r = k r = j t [ 3 ] , m r = x r = j t [ 4 ] ; f o r ( v a r g r , E t = 0 ; E t < 8 0 ; E t + = 1 ) g r = _ r + U e [ k t + a r [ E t ] ] | 0 , E t < 1 6 ? g r + = I e ( h r , E r , k r ) + t r [ 0 ] : E t < 3 2 ? g r + = _ e ( h r , E r , k r ) + t r [ 1 ] : E t < 4 8 ? g r + = C e ( h r , E r , k r ) + t r [ 2 ] : E t < 6 4 ? g r + = h e ( h r , E r , k r ) + t r [ 3 ] : g r + = N e ( h r , E r , k r ) + t r [ 4 ] , g r = g r | 0 , g r = F e ( g r , u r [ E t ] ) , g r = g r + x r | 0 , _ r = x r , x r = k r , k r = F e ( E r , 1 0 ) , E r = h r , h r = g r , g r = y r + U e [ k t + n r [ E t ] ] | 0 , E t < 1 6 ? g r + = N e ( v r , I r , M r ) + r r [ 0 ] : E t < 3 2 ? g r + = h e ( v r , I r , M r ) + r r [ 1 ] : E t < 4 8 ? g r + = C e ( v r , I r , M r ) + r r [ 2 ] : E t < 6 4 ? g r + = _ e ( v r , I r , M r ) + r r [ 3 ] : g r + = I e ( v r , I r , M r ) + r r [ 4 ] , g r = g r | 0 , g r = F e ( g r , c r [ E t ] ) , g r = g r + m r | 0 , y r = m r , m r = M r , M r = F e ( I r , 1 0 ) , I r = v r , v r = g r ; g r = j t [ 1 ] + E r + M r | 0 , j t [ 1 ] = j t [ 2 ] + k r + m r | 0 , j t [ 2 ] = j t [ 3 ] + x r + y r | 0 , j t [ 3 ] = j t [ 4 ] + _ r + v r | 0 , j t [ 4 ] = j t [ 0 ] + h r + I r | 0 , j t [ 0 ] = g r } , _ d o F i n a l i z e : f u n c t i o n ( ) { v a r U e = t h i s . _ d a t a , k t = U e . w o r d s , E t = t h i s . _ n D a t a B y t e s * 8 , V e = U e . s i g B y t e s * 8 ; k t [ V e > > > 5 ] | = 1 2 8 < < 2 4 - V e % 3 2 , k t [ ( V e + 6 4 > > > 9 < < 4 ) + 1 4 ] = ( E t < < 8 | E t > > > 2 4 ) & 1 6 7 1 1 9 3 5 | ( E t < < 2 4 | E t > > > 8 ) & 4 2 7 8 2 5 5 3 6 0 , U e . s i g B y t e s = ( k t . l e n g t h + 1 ) * 4 , t h i s . _ p r o c e s s ( ) ; f o r ( v a r q e = t h i s . _ h a s h , j t = q e . w o r d s , t r = 0 ; t r < 5 ; t r + + ) { v a r r r = j t [ t r ] ; j t [ t r ] = ( r r < < 8 | r r > > > 2 4 ) & 1 6 7 1 1 9 3 5 | ( r r < < 2 4 | r r > > > 8 ) & 4 2 7 8 2 5 5 3 6 0 } r e t u r n q e } , c l o n e : f u n c t i o n ( ) { v a r U e = j . c l o n e . c a l l ( t h i s ) ; r e t u r n U e . _ h a s h = t h i s . _ h a s h . c l o n e ( ) , U e } } ) ; f u n c t i o n I e ( U e , k t , E t ) { r e t u r n U e ^ k t ^ E t } f u n c t i o n _ e ( U e , k t , E t ) { r e t u r n U e & k t | ~ U e & E t } f u n c t i o n C e ( U e , k t , E t ) { r e t u r n ( U e | ~ k t ) ^ E t } f u n c t i o n h e ( U e , k t , E t ) { r e t u r n U e & E t | k t & ~ E t } f u n c t i o n N e ( U e , k t , E t ) { r e t u r n U e ^ ( k t | ~ E t ) } f u n c t i o n F e ( U e , k t ) { r e t u r n U e < < k t | U e > > > 3 2 - k t } k . R I P E M D 1 6 0 = j . _ c r e a t e H e l p e r ( p e ) , k . H m a c R I P E M D 1 6 0 = j . _ c r e a t e H m a c H e l p e r ( p e ) } ( ) , y . R I P E M D 1 6 0 } ) } ( r i p e m d 1 6 0 ) ) , r i p e m d 1 6 0 . e x p o r t s } v a r h m a c = { e x p o r t s : { } } , h a s R e q u i r e d H m a c ; f u n c t i o n r e q u i r e H m a c ( ) { r e t u r n h a s R e q u i r e d H m a c | | ( h a s R e q u i r e d H m a c = 1 , f u n c t i o n ( e , t ) { ( f u n c t i o n ( y , n ) { e . e x p o r t s = n ( r e q u i r e C o r e ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( y ) { ( f u n c t i o n ( ) { v a r n = y , k = n . l i b , L = k . B a s e , $ = n . e n c , j = $ . U t f 8 , V = n . a l g o ; V . H M A C = L . e x t e n d ( { i n i t : f u n c t i o n ( z , r e ) { z = t h i s . _ h a s h e r = n e w z . i n i t , t y p e o f r e = = " s t r i n g " & & ( r e = j . p a r s e ( r e ) ) ; v a r i e = z . b l o c k S i z e , o e = i e * 4 ; r e . s i g B y t e s > o e & & ( r e = z . f i n a l i z e ( r e ) ) , r e . c l a m p ( ) ; f o r ( v a r u e = t h i s . _ o K e y = r e . c l o n e ( ) , d e = t h i s . _ i K e y = r e . c l o n e ( ) , p e = u e . w o r d s , I e = d e . w o r d s , _ e = 0 ; _ e < i e ; _ e + + ) p e [ _ e ] ^ = 1 5 4 9 5 5 6 8 2 8 , I e [ _ e ] ^ = 9 0 9 5 2 2 4 8 6 ; u e . s i g B y t e s = d e . s i g B y t e s = o e , t h i s . r e s e t ( ) } , r e s e t : f u n c t i o n ( ) { v a r z = t h i s . _ h a s h e r ; z . r e s e t ( ) , z . u p d a t e ( t h i s . _ i K e y ) } , u p d a t e : f u n c t i o n ( z ) { r e t u r n t h i s . _ h a s h e r . u p d a t e ( z ) , t h i s } , f i n a l i z e : f u n c t i o n ( z ) { v a r r e = t h i s . _ h a s h e r , i e = r e . f i n a l i z e ( z ) ; r e . r e s e t ( ) ; v a r o e = r e . f i n a l i z e ( t h i s . _ o K e y . c l o n e ( ) . c o n c a t ( i e ) ) ; r e t u r n o e } } ) } ) ( ) } ) } ( h m a c ) ) , h m a c . e x p o r t s } v a r p b k d f 2 = { e x p o r t s : { } } , h a s R e q u i r e d P b k d f 2 ; f u n c t i o n r e q u i r e P b k d f 2 ( ) { r e t u r n h a s R e q u i r e d P b k d f 2 | | ( h a s R e q u i r e d P b k d f 2 = 1 , f u n c t i o n ( e , t ) { ( f u n c t i o n ( y , n , k ) { e . e x p o r t s = n ( r e q u i r e C o r e ( ) , r e q u i r e S h a 2 5 6 ( ) , r e q u i r e H m a c ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( y ) { r e t u r n f u n c t i o n ( ) { v a r n = y , k = n . l i b , L = k . B a s e , $ = k . W o r d A r r a y , j = n . a l g o , V = j . S H A 2
2024-08-21 13:12:53 +08:00
* Counter block mode compatible with Dr Brian Gladman fileenc . c
* derived from CryptoJS . mode . CTR
* Jan Hruby jhruby . web @ gmail . com
2024-08-24 19:24:09 +08:00
* / r e t u r n y . m o d e . C T R G l a d m a n = f u n c t i o n ( ) { v a r n = y . l i b . B l o c k C i p h e r M o d e . e x t e n d ( ) ; f u n c t i o n k ( j ) { i f ( ( j > > 2 4 & 2 5 5 ) = = = 2 5 5 ) { v a r V = j > > 1 6 & 2 5 5 , z = j > > 8 & 2 5 5 , r e = j & 2 5 5 ; V = = = 2 5 5 ? ( V = 0 , z = = = 2 5 5 ? ( z = 0 , r e = = = 2 5 5 ? r e = 0 : + + r e ) : + + z ) : + + V , j = 0 , j + = V < < 1 6 , j + = z < < 8 , j + = r e } e l s e j + = 1 < < 2 4 ; r e t u r n j } f u n c t i o n L ( j ) { r e t u r n ( j [ 0 ] = k ( j [ 0 ] ) ) = = = 0 & & ( j [ 1 ] = k ( j [ 1 ] ) ) , j } v a r $ = n . E n c r y p t o r = n . e x t e n d ( { p r o c e s s B l o c k : f u n c t i o n ( j , V ) { v a r z = t h i s . _ c i p h e r , r e = z . b l o c k S i z e , i e = t h i s . _ i v , o e = t h i s . _ c o u n t e r ; i e & & ( o e = t h i s . _ c o u n t e r = i e . s l i c e ( 0 ) , t h i s . _ i v = v o i d 0 ) , L ( o e ) ; v a r u e = o e . s l i c e ( 0 ) ; z . e n c r y p t B l o c k ( u e , 0 ) ; f o r ( v a r d e = 0 ; d e < r e ; d e + + ) j [ V + d e ] ^ = u e [ d e ] } } ) ; r e t u r n n . D e c r y p t o r = $ , n } ( ) , y . m o d e . C T R G l a d m a n } ) } ( m o d e C t r G l a d m a n ) ) , m o d e C t r G l a d m a n . e x p o r t s } v a r m o d e O f b = { e x p o r t s : { } } , h a s R e q u i r e d M o d e O f b ; f u n c t i o n r e q u i r e M o d e O f b ( ) { r e t u r n h a s R e q u i r e d M o d e O f b | | ( h a s R e q u i r e d M o d e O f b = 1 , f u n c t i o n ( e , t ) { ( f u n c t i o n ( y , n , k ) { e . e x p o r t s = n ( r e q u i r e C o r e ( ) , r e q u i r e C i p h e r C o r e ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( y ) { r e t u r n y . m o d e . O F B = f u n c t i o n ( ) { v a r n = y . l i b . B l o c k C i p h e r M o d e . e x t e n d ( ) , k = n . E n c r y p t o r = n . e x t e n d ( { p r o c e s s B l o c k : f u n c t i o n ( L , $ ) { v a r j = t h i s . _ c i p h e r , V = j . b l o c k S i z e , z = t h i s . _ i v , r e = t h i s . _ k e y s t r e a m ; z & & ( r e = t h i s . _ k e y s t r e a m = z . s l i c e ( 0 ) , t h i s . _ i v = v o i d 0 ) , j . e n c r y p t B l o c k ( r e , 0 ) ; f o r ( v a r i e = 0 ; i e < V ; i e + + ) L [ $ + i e ] ^ = r e [ i e ] } } ) ; r e t u r n n . D e c r y p t o r = k , n } ( ) , y . m o d e . O F B } ) } ( m o d e O f b ) ) , m o d e O f b . e x p o r t s } v a r m o d e E c b = { e x p o r t s : { } } , h a s R e q u i r e d M o d e E c b ; f u n c t i o n r e q u i r e M o d e E c b ( ) { r e t u r n h a s R e q u i r e d M o d e E c b | | ( h a s R e q u i r e d M o d e E c b = 1 , f u n c t i o n ( e , t ) { ( f u n c t i o n ( y , n , k ) { e . e x p o r t s = n ( r e q u i r e C o r e ( ) , r e q u i r e C i p h e r C o r e ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( y ) { r e t u r n y . m o d e . E C B = f u n c t i o n ( ) { v a r n = y . l i b . B l o c k C i p h e r M o d e . e x t e n d ( ) ; r e t u r n n . E n c r y p t o r = n . e x t e n d ( { p r o c e s s B l o c k : f u n c t i o n ( k , L ) { t h i s . _ c i p h e r . e n c r y p t B l o c k ( k , L ) } } ) , n . D e c r y p t o r = n . e x t e n d ( { p r o c e s s B l o c k : f u n c t i o n ( k , L ) { t h i s . _ c i p h e r . d e c r y p t B l o c k ( k , L ) } } ) , n } ( ) , y . m o d e . E C B } ) } ( m o d e E c b ) ) , m o d e E c b . e x p o r t s } v a r p a d A n s i x 9 2 3 = { e x p o r t s : { } } , h a s R e q u i r e d P a d A n s i x 9 2 3 ; f u n c t i o n r e q u i r e P a d A n s i x 9 2 3 ( ) { r e t u r n h a s R e q u i r e d P a d A n s i x 9 2 3 | | ( h a s R e q u i r e d P a d A n s i x 9 2 3 = 1 , f u n c t i o n ( e , t ) { ( f u n c t i o n ( y , n , k ) { e . e x p o r t s = n ( r e q u i r e C o r e ( ) , r e q u i r e C i p h e r C o r e ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( y ) { r e t u r n y . p a d . A n s i X 9 2 3 = { p a d : f u n c t i o n ( n , k ) { v a r L = n . s i g B y t e s , $ = k * 4 , j = $ - L % $ , V = L + j - 1 ; n . c l a m p ( ) , n . w o r d s [ V > > > 2 ] | = j < < 2 4 - V % 4 * 8 , n . s i g B y t e s + = j } , u n p a d : f u n c t i o n ( n ) { v a r k = n . w o r d s [ n . s i g B y t e s - 1 > > > 2 ] & 2 5 5 ; n . s i g B y t e s - = k } } , y . p a d . A n s i x 9 2 3 } ) } ( p a d A n s i x 9 2 3 ) ) , p a d A n s i x 9 2 3 . e x p o r t s } v a r p a d I s o 1 0 1 2 6 = { e x p o r t s : { } } , h a s R e q u i r e d P a d I s o 1 0 1 2 6 ; f u n c t i o n r e q u i r e P a d I s o 1 0 1 2 6 ( ) { r e t u r n h a s R e q u i r e d P a d I s o 1 0 1 2 6 | | ( h a s R e q u i r e d P a d I s o 1 0 1 2 6 = 1 , f u n c t i o n ( e , t ) { ( f u n c t i o n ( y , n , k ) { e . e x p o r t s = n ( r e q u i r e C o r e ( ) , r e q u i r e C i p h e r C o r e ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( y ) { r e t u r n y . p a d . I s o 1 0 1 2 6 = { p a d : f u n c t i o n ( n , k ) { v a r L = k * 4 , $ = L - n . s i g B y t e s % L ; n . c o n c a t ( y . l i b . W o r d A r r a y . r a n d o m ( $ - 1 ) ) . c o n c a t ( y . l i b . W o r d A r r a y . c r e a t e ( [ $ < < 2 4 ] , 1 ) ) } , u n p a d : f u n c t i o n ( n ) { v a r k = n . w o r d s [ n . s i g B y t e s - 1 > > > 2 ] & 2 5 5 ; n . s i g B y t e s - = k } } , y . p a d . I s o 1 0 1 2 6 } ) } ( p a d I s o 1 0 1 2 6 ) ) , p a d I s o 1 0 1 2 6 . e x p o r t s } v a r p a d I s o 9 7 9 7 1 = { e x p o r t s : { } } , h a s R e q u i r e d P a d I s o 9 7 9 7 1 ; f u n c t i o n r e q u i r e P a d I s o 9 7 9 7 1 ( ) { r e t u r n h a s R e q u i r e d P a d I s o 9 7 9 7 1 | | ( h a s R e q u i r e d P a d I s o 9 7 9 7 1 = 1 , f u n c t i o n ( e , t ) { ( f u n c t i o n ( y , n , k ) { e . e x p o r t s = n ( r e q u i r e C o r e ( ) , r e q u i r e C i p h e r C o r e ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( y ) { r e t u r n y . p a d . I s o 9 7 9 7 1 = { p a d : f u n c t i o n ( n , k ) { n . c o n c a t ( y . l i b . W o r d A r r a y . c r e a t e ( [ 2 1 4 7 4 8 3 6 4 8 ] , 1 ) ) , y . p a d . Z e r o P a d d i n g . p a d ( n , k ) } , u n p a d : f u n c t i o n ( n ) { y . p a d . Z e r o P a d d i n g . u n p a d ( n ) , n . s i g B y t e s - - } } , y . p a d . I s o 9 7 9 7 1 } ) } ( p a d I s o 9 7 9 7 1 ) ) , p a d I s o 9 7 9 7 1 . e x p o r t s } v a r p a d Z e r o p a d d i n g = { e x p o r t s : { } } , h a s R e q u i r e d P a d Z e r o p a d d i n g ; f u n c t i o n r e q u i r e P a d Z e r o p a d d i n g ( ) { r e t u r n h a s R e q u i r e d P a d Z e r o p a d d i n g | | ( h a s R e q u i r e d P a d Z e r o p a d d i n g = 1 , f u n c t i o n ( e , t ) { ( f u n c t i o n ( y , n , k ) { e . e x p o r t s = n ( r e q u i r e C o r e ( ) , r e q u i r e C i p h e r C o r e ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( y ) { r e t u r n y . p a d . Z e r o P a d d i n g = { p a d : f u n c t i o n ( n , k ) { v a r L = k * 4 ; n . c l a m p ( ) , n . s i g B y t e s + = L - ( n . s i g B y t e s % L | | L ) } , u n p a d : f u n c t i o n ( n ) { f o r ( v a r k = n . w o r d s , L = n . s i g B y t e s - 1 , L = n . s i g B y t e s - 1 ; L > = 0 ; L - - ) i f ( k [ L > > > 2 ] > > > 2 4 - L % 4 * 8 & 2 5 5 ) { n . s i g B y t e s = L + 1 ; b r e a k } } } , y . p a d . Z e r o P a d d i n g } ) } ( p a d Z e r o p a d d i n g ) ) , p a d Z e r o p a d d i n g . e x p o r t s } v a r p a d N o p a d d i n g = { e x p o r t s : { } } , h a s R e q u i r e d P a d N o p a d d i n g ; f u n c t i o n r e q u i r e P a d N o p a d d i n g ( ) { r e t u r n h a s R e q u i r e d P a d N o p a d d i n g | | ( h a s R e q u i r e d P a d N o p a d d i n g = 1 , f u n c t i o n ( e , t ) { ( f u n c t i o n ( y , n , k ) { e . e x p o r t s = n ( r e q u i r e C o r e ( ) , r e q u i r e C i p h e r C o r e ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( y ) { r e t u r n y . p a d . N o P a d d i n g = { p a d : f u n c t i o n ( ) { } , u n p a d : f u n c t i
2024-08-21 13:12:53 +08:00
< BucketLoggingStatus >
< LoggingEnabled >
< TargetBucket > ` .concat(Ce, ` < / T a r g e t B u c k e t >
2024-08-24 19:24:09 +08:00
` ),he&&(Ue+="<TargetPrefix>".concat(he, ` < / T a r g e t P r e f i x >
` )),Ue+= ` < / L o g g i n g E n a b l e d >
< / B u c k e t L o g g i n g S t a t u s > ` , F e . c o n t e n t = U e , F e . m i m e = " x m l " , F e . s u c c e s s S t a t u s e s = [ 2 0 0 ] , V e . n e x t = 9 , t h i s . r e q u e s t ( F e ) ; c a s e 9 : r e t u r n k t = V e . s e n t , V e . a b r u p t ( " r e t u r n " , { r e s : k t . r e s } ) ; c a s e 1 1 : c a s e " e n d " : r e t u r n V e . s t o p ( ) } } , _ e , t h i s ) } ) ) ; f u n c t i o n I e ( _ e , C e , h e ) { r e t u r n p e . a p p l y ( t h i s , a r g u m e n t s ) } r e t u r n I e } ( ) , o e . g e t B u c k e t L o g g i n g = f u n c t i o n ( ) { v a r p e = ( 0 , V . d e f a u l t ) ( j . d e f a u l t . m a r k ( f u n c t i o n _ e ( C e , h e ) { v a r N e , F e , U e ; r e t u r n j . d e f a u l t . w r a p ( f u n c t i o n ( E t ) { f o r ( ; ; ) s w i t c h ( E t . p r e v = E t . n e x t ) { c a s e 0 : r e t u r n N e = t h i s . _ b u c k e t R e q u e s t P a r a m s ( " G E T " , C e , " l o g g i n g " , h e ) , N e . s u c c e s s S t a t u s e s = [ 2 0 0 ] , N e . x m l R e s p o n s e = ! 0 , E t . n e x t = 5 , t h i s . r e q u e s t ( N e ) ; c a s e 5 : r e t u r n F e = E t . s e n t , U e = F e . d a t a . L o g g i n g E n a b l e d , E t . a b r u p t ( " r e t u r n " , { e n a b l e : ! ! U e , p r e f i x : U e & & U e . T a r g e t P r e f i x | | n u l l , r e s : F e . r e s } ) ; c a s e 8 : c a s e " e n d " : r e t u r n E t . s t o p ( ) } } , _ e , t h i s ) } ) ) ; f u n c t i o n I e ( _ e , C e ) { r e t u r n p e . a p p l y ( t h i s , a r g u m e n t s ) } r e t u r n I e } ( ) , o e . d e l e t e B u c k e t L o g g i n g = f u n c t i o n ( ) { v a r p e = ( 0 , V . d e f a u l t ) ( j . d e f a u l t . m a r k ( f u n c t i o n _ e ( C e , h e ) { v a r N e , F e ; r e t u r n j . d e f a u l t . w r a p ( f u n c t i o n ( k t ) { f o r ( ; ; ) s w i t c h ( k t . p r e v = k t . n e x t ) { c a s e 0 : r e t u r n N e = t h i s . _ b u c k e t R e q u e s t P a r a m s ( " D E L E T E " , C e , " l o g g i n g " , h e ) , N e . s u c c e s s S t a t u s e s = [ 2 0 4 , 2 0 0 ] , k t . n e x t = 4 , t h i s . r e q u e s t ( N e ) ; c a s e 4 : r e t u r n F e = k t . s e n t , k t . a b r u p t ( " r e t u r n " , { r e s : F e . r e s } ) ; c a s e 6 : c a s e " e n d " : r e t u r n k t . s t o p ( ) } } , _ e , t h i s ) } ) ) ; f u n c t i o n I e ( _ e , C e ) { r e t u r n p e . a p p l y ( t h i s , a r g u m e n t s ) } r e t u r n I e } ( ) , o e . p u t B u c k e t C O R S = f u n c t i o n ( ) { v a r p e = ( 0 , V . d e f a u l t ) ( j . d e f a u l t . m a r k ( f u n c t i o n _ e ( C e , h e , N e ) { v a r F e , U e , k t , E t , V e , q e , j t , t r , r r , a r ; r e t u r n j . d e f a u l t . w r a p ( f u n c t i o n ( u r ) { f o r ( ; ; ) s w i t c h ( u r . p r e v = u r . n e x t ) { c a s e 0 : f o r ( h e = h e | | [ ] , z ( h e . l e n g t h , " r u l e s i s r e q u i r e d " ) , h e . f o r E a c h ( f u n c t i o n ( c r ) { z ( c r . a l l o w e d O r i g i n , " a l l o w e d O r i g i n i s r e q u i r e d " ) , z ( c r . a l l o w e d M e t h o d , " a l l o w e d M e t h o d i s r e q u i r e d " ) } ) , F e = t h i s . _ b u c k e t R e q u e s t P a r a m s ( " P U T " , C e , " c o r s " , N e ) , U e = ` < ? x m l v e r s i o n = " 1 . 0 " e n c o d i n g = " U T F - 8 " ? >
< CORSConfiguration > ` ,kt=function(_r){Ue+="<AllowedOrigin>".concat(_r,"</AllowedOrigin>")},Et=function(_r){Ue+="<AllowedMethod>".concat(_r,"</AllowedMethod>")},Ve=function(_r){Ue+="<AllowedHeader>".concat(_r,"</AllowedHeader>")},qe=function(_r){Ue+="<ExposeHeader>".concat(_r,"</ExposeHeader>")},jt=0,tr=he.length;jt<tr;jt++)rr=he[jt],Ue+="<CORSRule>",de(rr.allowedOrigin).forEach(kt),de(rr.allowedMethod).forEach(Et),de(rr.allowedHeader).forEach(Ve),de(rr.exposeHeader).forEach(qe),rr.maxAgeSeconds&&(Ue+="<MaxAgeSeconds>".concat(rr.maxAgeSeconds,"</MaxAgeSeconds>")),Ue+="</CORSRule>";return Ue+="</CORSConfiguration>",Fe.content=Ue,Fe.mime="xml",Fe.successStatuses=[200],ur.next=16,this.request(Fe);case 16:return ar=ur.sent,ur.abrupt("return",{res:ar.res});case 18:case"end":return ur.stop()}},_e,this)}));function Ie(_e,Ce,he){return pe.apply(this,arguments)}return Ie}(),oe.getBucketCORS=function(){var pe=(0,V.default)(j.default.mark(function _e(Ce,he){var Ne,Fe,Ue,kt;return j.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Ne=this._bucketRequestParams("GET",Ce,"cors",he),Ne.successStatuses=[200],Ne.xmlResponse=!0,Ve.next=5,this.request(Ne);case 5:return Fe=Ve.sent,Ue=[],Fe.data&&Fe.data.CORSRule&&(kt=Fe.data.CORSRule,ue(kt)||(kt=[kt]),kt.forEach(function(qe){var jt={};Object.keys(qe).forEach(function(tr){jt[tr.slice(0,1).toLowerCase()+tr.slice(1,tr.length)]=qe[tr]}),Ue.push(jt)})),Ve.abrupt("return",{rules:Ue,res:Fe.res});case 9:case"end":return Ve.stop()}},_e,this)}));function Ie(_e,Ce){return pe.apply(this,arguments)}return Ie}(),oe.deleteBucketCORS=function(){var pe=(0,V.default)(j.default.mark(function _e(Ce,he){var Ne,Fe;return j.default.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:return Ne=this._bucketRequestParams("DELETE",Ce,"cors",he),Ne.successStatuses=[204],kt.next=4,this.request(Ne);case 4:return Fe=kt.sent,kt.abrupt("return",{res:Fe.res});case 6:case"end":return kt.stop()}},_e,this)}));function Ie(_e,Ce){return pe.apply(this,arguments)}return Ie}(),oe.putBucketReferer=function(){var pe=(0,V.default)(j.default.mark(function _e(Ce,he,Ne,Fe){var Ue,kt,Et,Ve;return j.default.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:if(Ue=this._bucketRequestParams("PUT",Ce,"referer",Fe),kt= ` < ? xml version = "1.0" encoding = "UTF-8" ? >
2024-08-21 13:12:53 +08:00
< RefererConfiguration >
2024-08-24 19:24:09 +08:00
` ,kt+=" <AllowEmptyReferer>".concat(he?"true":"false", ` < / A l l o w E m p t y R e f e r e r >
` ),Ne&&Ne.length>0){for(kt+= ` < RefererList >
` ,Et=0;Et<Ne.length;Et++)kt+=" <Referer>".concat(Ne[Et], ` < / R e f e r e r >
` );kt+= ` < / R e f e r e r L i s t >
` }else kt+= ` < RefererList / >
` ;return kt+="</RefererConfiguration>",Ue.content=kt,Ue.mime="xml",Ue.successStatuses=[200],jt.next=10,this.request(Ue);case 10:return Ve=jt.sent,jt.abrupt("return",{res:Ve.res});case 12:case"end":return jt.stop()}},_e,this)}));function Ie(_e,Ce,he,Ne){return pe.apply(this,arguments)}return Ie}(),oe.getBucketReferer=function(){var pe=(0,V.default)(j.default.mark(function _e(Ce,he){var Ne,Fe,Ue;return j.default.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return Ne=this._bucketRequestParams("GET",Ce,"referer",he),Ne.successStatuses=[200],Ne.xmlResponse=!0,Et.next=5,this.request(Ne);case 5:return Fe=Et.sent,Ue=Fe.data.RefererList.Referer||null,Ue&&(ue(Ue)||(Ue=[Ue])),Et.abrupt("return",{allowEmpty:Fe.data.AllowEmptyReferer==="true",referers:Ue,res:Fe.res});case 9:case"end":return Et.stop()}},_e,this)}));function Ie(_e,Ce){return pe.apply(this,arguments)}return Ie}(),oe.deleteBucketReferer=function(){var pe=(0,V.default)(j.default.mark(function _e(Ce,he){return j.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.next=2,this.putBucketReferer(Ce,!0,null,he);case 2:return Fe.abrupt("return",Fe.sent);case 3:case"end":return Fe.stop()}},_e,this)}));function Ie(_e,Ce){return pe.apply(this,arguments)}return Ie}(),oe._bucketRequestParams=function(Ie,_e,Ce,he){return{method:Ie,bucket:_e,subres:Ce,additionalHeaders:he&&he.additionalHeaders,timeout:he&&he.timeout,ctx:he&&he.ctx}}},{"../common/utils/checkBucketName":52,"@babel/runtime/helpers/asyncToGenerator":82,"@babel/runtime/helpers/interopRequireDefault":84,"@babel/runtime/regenerator":93,assert:95,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.object.keys.js":330,"core-js/modules/es.object.to-string.js":331,"core-js/modules/es.regexp.to-string.js":341,"core-js/modules/web.dom-collections.for-each.js":382}],3:[function(n,k,L){(function( $ ,j){(function(){var V=n("@babel/runtime/helpers/interopRequireDefault"),z=V(n("@babel/runtime/regenerator")),re=V(n("@babel/runtime/helpers/asyncToGenerator"));n("core-js/modules/es.function.name.js"),n("core-js/modules/es.object.assign.js"),n("core-js/modules/es.array.includes.js"),n("core-js/modules/es.regexp.exec.js"),n("core-js/modules/es.string.replace.js"),n("core-js/modules/es.array.concat.js"),n("core-js/modules/es.symbol.js"),n("core-js/modules/es.symbol.description.js"),n("core-js/modules/es.array.slice.js"),n("core-js/modules/es.object.to-string.js"),n("core-js/modules/es.promise.js"),n("core-js/modules/es.regexp.to-string.js");var ie=n("debug")("ali-oss"),oe=n("xml2js"),ue=n("agentkeepalive"),de=n("merge-descriptors"),pe=n("platform"),Ie=n("utility"),_e=n("urllib"),Ce=n("./version"),he=n("bowser"),Ne=n("../common/signUtils"),Fe=n("../common/client/initOptions"),Ue=n("../common/utils/createRequest"),kt=Ue.createRequest,Et=n("../common/utils/encoder"),Ve=Et.encoder,qe=n("../common/client/getReqUrl"),jt=qe.getReqUrl,tr=n("../common/utils/setSTSToken"),rr=tr.setSTSToken,ar=n("../common/utils/retry"),nr=ar.retry,ur=n("../common/utils/isFunction"),cr=ur.isFunction,_r=n("../common/utils/getStandardRegion"),hr=_r.getStandardRegion,Er=new ue;function kr(){var mr=pe.name,gr=pe.version;mr&&mr.toLowerCase&&mr.toLowerCase()==="ie"&&gr.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function xr(){return location&&location.protocol==="https:"}function yr(mr,gr){if(kr(),!(this instanceof yr))return new yr(mr,gr);mr&&mr.inited?this.options=mr:this.options=yr.initOptions(mr),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=_e,this.agent=this.options.agent||Er),this.ctx=gr,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}k.exports=yr,yr.initOptions=function(gr){gr.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var jr=Object.assign({secure:xr(),useFetch:!1},gr);return Fe(jr)};var vr=yr.prototype;vr.debug=ie,de(vr,n("./object")),de(vr,n("./bucket")),de(vr,n("../common/bucket/getBucketWebsite")),de(vr,n("..
raw xml : ` .concat(Kr),ca.t1.status=Hr.status,ca.t1.requestId=Hr.headers["x-oss-request-id"],ca.abrupt("return",ca.t1);case 16:Fr=Nr.Message||"unknow request error, status: ".concat(Hr.status),Nr.Condition&&(Fr+=" (condition: ".concat(Nr.Condition,")")),zr=new Error(Fr),zr.name=Nr.Code?"".concat(Nr.Code,"Error"):"UnknownError",zr.status=Hr.status,zr.code=Nr.Code,zr.ecCode=Nr.EC,zr.requestId=Nr.RequestId,zr.hostId=Nr.HostId,zr.serverTime=Nr.ServerTime;case 26:case"end":return ca.stop()}},Wr,null,[[0,9]])}));return function(Kr){return Rr.apply(this,arguments)}}(),!(!Hr.data||!Hr.data.length)){Dr.next=37;break}if(!(Hr.status===-1||Hr.status===-2)){Dr.next=10;break}zr=new Error(Hr.message),zr.name=Hr.name,zr.status=Hr.status,zr.code=Hr.name,Dr.next=35;break;case 10:if(Hr.status!==404){Dr.next=17;break}zr=new Error("Object not exists"),zr.name="NoSuchKeyError",zr.status=404,zr.code="NoSuchKey",Dr.next=33;break;case 17:if(Hr.status!==412){Dr.next=24;break}zr=new Error("Pre condition failed"),zr.name="PreconditionFailedError",zr.status=412,zr.code="PreconditionFailed",Dr.next=33;break;case 24:if(zr=new Error("Unknow error, status: ".concat(Hr.status)),zr.name="UnknownError",zr.status=Hr.status,zr.res=Hr,Cr=Hr.headers["x-oss-err"],!Cr){Dr.next=33;break}return Br=atob(Cr),Dr.next=33,Tr(Br);case 33:zr.requestId=Hr.headers["x-oss-request-id"],zr.host="";case 35:Dr.next=41;break;case 37:return br=String(Hr.data),this.debug("request response error data: %s",br,"error"),Dr.next=41,Tr(br);case 41:return this.debug("generate error %j",zr,"error"),Dr.abrupt("return",zr);case 43:case"end":return Dr.stop()}},jr,this)}));function gr(jr){return mr.apply(this,arguments)}return gr}()}).call(this)}).call(this,{isBuffer:n("../../node_modules/is-buffer/index.js")},n("_process"))},{"../../node_modules/is-buffer/index.js":411,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":50,"../common/signUtils":51,"../common/utils/createRequest":57,"../common/utils/encoder":61,"../common/utils/getStandardRegion":64,"../common/utils/isFunction":71,"../common/utils/retry":77,"../common/utils/setSTSToken":79,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":82,"@babel/runtime/helpers/interopRequireDefault":84,"@babel/runtime/regenerator":93,_process:540,agentkeepalive:94,bowser:101,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.includes.js":315,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.function.name.js":322,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.to-string.js":331,"core-js/modules/es.promise.js":335,"core-js/modules/es.regexp.exec.js":340,"core-js/modules/es.regexp.to-string.js":341,"core-js/modules/es.string.replace.js":347,"core-js/modules/es.symbol.description.js":353,"core-js/modules/es.symbol.js":356,debug:538,"merge-descriptors":430,platform:442,urllib:548,utility:547,xml2js:498}],4:[function(n,k,L){(function( $ ){(function(){var j=n("@babel/runtime/helpers/interopRequireDefault"),V=j(n("@babel/runtime/regenerator"));n("core-js/modules/es.function.name.js"),n("core-js/modules/es.object.to-string.js"),n("core-js/modules/es.promise.js"),n("core-js/modules/es.array.from.js"),n("core-js/modules/es.string.iterator.js"),n("core-js/modules/es.array.map.js"),n("core-js/modules/es.ar
2024-08-21 13:12:53 +08:00
< CompleteMultipartUpload >
2024-08-24 19:24:09 +08:00
` ,tr=0;tr<qe.length;tr++)rr=qe[tr],jt+= ` < Part >
` ,jt+="<PartNumber>".concat(rr.number, ` < / P a r t N u m b e r >
` ),jt+="<ETag>".concat(rr.etag, ` < / E T a g >
` ),jt+= ` < / P a r t >
` ;return jt+="</CompleteMultipartUpload>",Ve=Ve||{},ar={},ar=ue(Ve,function(Er){if(pe(Er))return null}),ar.subres={uploadId:kt},ar.headers=_e(ar.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),nr=this._objectRequestParams("POST",Ue,ar),ie.encodeCallback(nr,ar),nr.mime="xml",nr.content=jt,nr.headers&&nr.headers["x-oss-callback"]||(nr.xmlResponse=!0),nr.successStatuses=[200],hr.next=17,this.request(nr);case 17:if(ur=hr.sent,!Ve.progress){hr.next=21;break}return hr.next=21,Ve.progress(1,null,ur.res);case 21:return cr={res:ur.res,bucket:nr.bucket,name:Ue,etag:ur.res.headers.etag},nr.headers&&nr.headers["x-oss-callback"]&&(cr.data=JSON.parse(ur.data.toString())),hr.abrupt("return",cr);case 24:case"end":return hr.stop()}},Fe,this)}));function Ne(Fe,Ue,kt,Et){return he.apply(this,arguments)}return Ne}(),Ce._uploadPart=function(){var he=(0,z.default)(V.default.mark(function Fe(Ue,kt,Et,Ve,qe){var jt,tr,rr,ar;return V.default.wrap(function(ur){for(;;)switch(ur.prev=ur.next){case 0:return qe=qe||{},jt={},re(qe).to(jt),jt.headers=jt.headers||{},jt.headers["Content-Length"]=Ve.size,jt.headers=_e(jt.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),jt.subres={partNumber:Et,uploadId:kt},tr=this._objectRequestParams("PUT",Ue,jt),tr.mime=jt.mime,rr= $ && $ .browser,rr?tr.content=Ve.content:tr.stream=Ve.stream,tr.successStatuses=[200],tr.disabledMD5=qe.disabledMD5,ur.next=15,this.request(tr);case 15:if(ar=ur.sent,ar.res.headers.etag){ur.next=18;break}throw new Error( ` Please set the etag of expose - headers in OSS
https : //help.aliyun.com/document_detail/32069.html`);case 18:return Ve.stream&&(Ve.stream=null,tr.stream=null),ur.abrupt("return",{name:Ue,etag:ar.res.headers.etag,res:ar.res});case 20:case"end":return ur.stop()}},Fe,this)}));function Ne(Fe,Ue,kt,Et,Ve){return he.apply(this,arguments)}return Ne}()}).call(this)}).call(this,n("_process"))},{"./callback":24,"./utils/deepCopy":59,"./utils/isBuffer":68,"./utils/omit":76,"@babel/runtime/helpers/asyncToGenerator":82,"@babel/runtime/helpers/interopRequireDefault":84,"@babel/runtime/regenerator":93,_process:540,"copy-to":107,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.filter.js":312,"core-js/modules/es.array.map.js":318,"core-js/modules/es.array.sort.js":320,"core-js/modules/es.object.keys.js":330,"core-js/modules/es.object.to-string.js":331,"core-js/modules/es.regexp.to-string.js":341}],31:[function(n,k,L){var $=n("@babel/runtime/helpers/interopRequireDefault"),j=$(n("@babel/runtime/regenerator"));n("core-js/modules/es.regexp.exec.js");var V=$(n("@babel/runtime/helpers/asyncToGenerator")),z=n("url"),re=n("utility"),ie=n("copy-to"),oe=n("../../common/signUtils"),ue=n("../utils/isIP"),de=ue.isIP,pe=n("../utils/setSTSToken"),Ie=pe.setSTSToken,_e=n("../utils/isFunction"),Ce=_e.isFunction,he=L;he.asyncSignatureUrl=function(){var Ne=(0,V.default)(j.default.mark(function Ue(kt,Et){var Ve,qe,jt,tr,rr,ar,nr=arguments;return j.default.wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:if(Ve=nr.length>2&&nr[2]!==void 0?nr[2]:!0,!de(this.options.endpoint.hostname)){cr.next=3;break}throw new Error("can not get the object URL when endpoint is IP");case 3:if(!(Ve&&/^\?/.test(kt))){cr.next=5;break}throw new Error("Invalid object name ".concat(kt));case 5:if(Et=Et||{},kt=this._objectName(kt),Et.method=Et.method||"GET",qe=re.timestamp()+(Et.expires||1800),jt={bucket:this.options.bucket,object:kt},tr=this._getResource(jt),!(this.options.stsToken&&Ce(this.options.refreshSTSToken))){cr.next=14;break}return cr.next=14,Ie.call(this);case 14:return this.options.stsToken&&(Et["security-token"]=this.options.stsToken),rr=oe._signatureForURL(this.options.accessKeySecret,Et,tr,qe),ar=z.parse(this._getReqUrl(jt)),ar.query={OSSAccessKeyId:this.options.accessKeyId,Expires:qe,Signature:rr.Signature},ie(rr.subResource).to(ar.query),cr.abrupt("return",ar.format());case 20:case"end":return cr.stop()}},Ue,this)}));function Fe(Ue,kt){return Ne.apply(this,arguments)}return Fe}()},{"../../common/signUtils":51,"../utils/isFunction":71,"../utils/isIP":72,"../utils/setSTSToken":79,"@babel/runtime/helpers/asyncToGenerator":82,"@babel/runtime/helpers/interopRequireDefault":84,"@babel/runtime/regenerator":93,"copy-to":107,"core-js/modules/es.regexp.exec.js":340,url:545,utility:547}],32:[function(n,k,L){var $=n("@babel/runtime/helpers/interopRequireDefault"),j=$(n("@babel/runtime/regenerator"));n("core-js/modules/es.object.to-string.js"),n("core-js/modules/web.dom-collections.for-each.js"),n("core-js/modules/es.object.keys.js"),n("core-js/modules/es.array.find.js"),n("core-js/modules/es.array.includes.js"),n("core-js/modules/es.array.concat.js"),n("core-js/modules/es.regexp.exec.js"),n("core-js/modules/es.string.replace.js");var V=$(n("@babel/runtime/helpers/typeof")),z=$(n("@babel/runtime/helpers/asyncToGenerator")),re=n("../utils/checkBucketName"),ie=re.checkBucketName,oe=L,ue=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];oe.copy=function(){var de=(0,z.default)(j.default.mark(function Ie(_e,Ce,he,Ne){var Fe,Ue,kt;return j.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return(0,V.default)(he)==="object"&&(Ne=he),Ne=Ne||{},Ne.headers=Ne.headers||{},Object.keys(Ne.headers).forEach(function(qe){Ne.headers["x-oss-copy-source-".concat(qe.toLowerCase())]=Ne.headers[qe]}),(Ne.meta||Object.keys(Ne.headers).find(function(qe){return ue.includes(qe.toLowerCase())}))&&(Ne.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(Ne.meta,Ne.headers),Ce=this._getSourceName(Ce,he),Ne.versionId&&(Ce="".concat(Ce,"?version
` )},L.computeSignature=function(_e,Ce){var he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",Ne=z.createHmac("sha1",_e);return Ne.update( $ .from(Ce,he)).digest("base64")},L.authorization=function(_e,Ce,he,Ne){return"OSS ".concat(_e,":").concat(this.computeSignature(Ce,he,Ne))},L.fixAdditionalHeaders=function(Ie){if(!Ie)return[];var _e="x-oss-";return(0,V.default)(new Set(Ie.map(function(Ce){return Ce.toLowerCase()}))).filter(function(Ce){return Ce!=="content-type"&&Ce!=="content-md5"&&!Ce.startsWith(_e)}).sort()},L.getCanonicalRequest=function(_e,Ce,he,Ne,Fe){var Ue=ue(Ce.headers),kt=Ce.queries||{},Et="x-oss-";if(Ne&&!he)throw Error("Please ensure that bucketName is passed into getCanonicalRequest.");var Ve=[_e.toUpperCase(),pe("/".concat(he?"".concat(he,"/"):"").concat(Ne||"")).replace(/%2F/g,"/")];Ve.push(ie.stringify(kt,{encoder:pe,sort:function(rr,ar){return rr.localeCompare(ar)},strictNullHandling:!0})),Fe&&Fe.forEach(function(tr){if(!Object.prototype.hasOwnProperty.call(Ue,tr))throw Error("Can't find additional header ".concat(tr," in request headers."))});var qe=new Set(Fe);Object.keys(Ue).forEach(function(tr){(tr==="content-type"||tr==="content-md5"||tr.startsWith(Et))&&qe.add(tr)});var jt="".concat((0,V.default)(qe).sort().map(function(tr){return"".concat(tr,":").concat(re.string(Ue[tr])?Ue[tr].trim():Ue[tr], `
` )}).join(""));return Ve.push(jt),Fe.length>0?Ve.push(Fe.join(";")):Ve.push(""),Ve.push(Ue["x-oss-content-sha256"]||"UNSIGNED-PAYLOAD"),Ve.join( `
2024-08-22 08:49:17 +08:00
` )},L.getStringToSign=function(_e,Ce,he){var Ne=["OSS4-HMAC-SHA256",Ce,"".concat(Ce.split("T")[0],"/").concat(_e,"/oss/aliyun_v4_request"),z.createHash("sha256").update(he).digest("hex")];return Ne.join( `
2024-08-24 19:24:09 +08:00
` )},L.getSignatureV4=function(_e,Ce,he,Ne){var Fe=z.createHmac("sha256","aliyun_v4".concat(_e)).update(Ce).digest(),Ue=z.createHmac("sha256",Fe).update(he).digest(),kt=z.createHmac("sha256",Ue).update("oss").digest(),Et=z.createHmac("sha256",kt).update("aliyun_v4_request").digest(),Ve=z.createHmac("sha256",Et).update(Ne).digest("hex");return Ve},L.authorizationV4=function(_e,Ce,he,Ne,Fe,Ue,kt,Et){var Ve=arguments.length>8&&arguments[8]!==void 0?arguments[8]:"utf-8",qe=this.fixAdditionalHeaders(Et),jt={};Object.entries(Fe.headers).forEach(function(_r){jt[_r[0]]=re.string(_r[1])? $ .from(_r[1],Ve).toString():_r[1]});var tr=jt["x-oss-date"]||Fe.queries&&Fe.queries["x-oss-date"],rr=this.getCanonicalRequest(Ne,{headers:jt,queries:Fe.queries},Ue,kt,qe),ar=this.getStringToSign(he,tr,rr),nr=tr.split("T")[0],ur=this.getSignatureV4(Ce,nr,he,ar),cr=qe.length>0?"AdditionalHeaders=".concat(qe.join(";"),","):"";return"OSS4-HMAC-SHA256 Credential=".concat(_e,"/").concat(nr,"/").concat(he,"/oss/aliyun_v4_request,").concat(cr,"Signature=").concat(ur)},L._signatureForURL=function(_e){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},he=arguments.length>2?arguments[2]:void 0,Ne=arguments.length>3?arguments[3]:void 0,Fe=arguments.length>4?arguments[4]:void 0,Ue={},kt=Ce.subResource,Et=kt===void 0?{}:kt;if(Ce.process){var Ve="x-oss-process";Et[Ve]=Ce.process}if(Ce.trafficLimit){var qe="x-oss-traffic-limit";Et[qe]=Ce.trafficLimit}if(Ce.response&&Object.keys(Ce.response).forEach(function(ar){var nr="response-".concat(ar.toLowerCase());Et[nr]=Ce.response[ar]}),Object.keys(Ce).forEach(function(ar){var nr=ar.toLowerCase(),ur=Ce[ar];nr.indexOf("x-oss-")===0?Ue[nr]=ur:(nr.indexOf("content-md5")===0||nr.indexOf("content-type")===0)&&(Ue[ar]=ur)}),Object.prototype.hasOwnProperty.call(Ce,"security-token")&&(Et["security-token"]=Ce["security-token"]),Object.prototype.hasOwnProperty.call(Ce,"callback")){var jt={callbackUrl:encodeURI(Ce.callback.url),callbackBody:Ce.callback.body};if(Ce.callback.host&&(jt.callbackHost=Ce.callback.host),Ce.callback.contentType&&(jt.callbackBodyType=Ce.callback.contentType),Ce.callback.callbackSNI&&(jt.callbackSNI=Ce.callback.callbackSNI),Et.callback= $ .from(JSON.stringify(jt)).toString("base64"),Ce.callback.customValue){var tr={};Object.keys(Ce.callback.customValue).forEach(function(ar){tr["x:".concat(ar)]=Ce.callback.customValue[ar]}),Et["callback-var"]= $ .from(JSON.stringify(tr)).toString("base64")}}var rr=this.buildCanonicalString(Ce.method,he,{headers:Ue,parameters:Et},Ne.toString());return{Signature:this.computeSignature(_e,rr,Fe),subResource:Et}}}).call(this)}).call(this,n("buffer").Buffer)},{"./../../shims/crypto/crypto.js":533,"./utils/encodeString":60,"./utils/lowercaseKeyHeader":74,"@babel/runtime/helpers/interopRequireDefault":84,"@babel/runtime/helpers/toConsumableArray":88,buffer:103,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.filter.js":312,"core-js/modules/es.array.iterator.js":316,"core-js/modules/es.array.join.js":317,"core-js/modules/es.array.map.js":318,"core-js/modules/es.array.sort.js":320,"core-js/modules/es.object.entries.js":326,"core-js/modules/es.object.keys.js":330,"core-js/modules/es.object.to-string.js":331,"core-js/modules/es.regexp.exec.js":340,"core-js/modules/es.regexp.to-string.js":341,"core-js/modules/es.set.js":343,"core-js/modules/es.string.iterator.js":345,"core-js/modules/es.string.replace.js":347,"core-js/modules/es.string.starts-with.js":350,"core-js/modules/es.string.trim.js":351,"core-js/modules/web.dom-collections.for-each.js":382,"core-js/modules/web.dom-collections.iterator.js":383,"is-type-of":539,qs:447}],52:[function(n,k,L){n("core-js/modules/es.regexp.exec.js"),Object.defineProperty(L,"__esModule",{value:!0}),L.checkBucketName=void 0,L.checkBucketName=function( $ ){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,V=j?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9] $ /:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_] $ /;if(!V.test( $ ))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":340}],53:[functi
2024-08-22 08:49:17 +08:00
` ),re&&re.firstUpperCase&&(z= $ .formatObjKey(z,"firstUpperCase")),j(z)==="object"?Object.keys(z).forEach(function(oe){j(z[oe])!=="undefined"&&j(z[oe])!=="null"&&(j(z[oe])==="string"||j(z[oe])==="number"?ie+="<".concat(oe,">").concat(z[oe],"</").concat(oe,">"):j(z[oe])==="object"?ie+="<".concat(oe,">").concat(V(z[oe]),"</").concat(oe,">"):j(z[oe])==="array"?ie+=z[oe].map(function(ue){return"<".concat(oe,">").concat(V(ue),"</").concat(oe,">")}).join(""):ie+="<".concat(oe,">").concat(z[oe].toString(),"</").concat(oe,">"))}):ie+=z.toString(),ie}L.obj2xml=V},{"./formatObjKey":63,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.join.js":317,"core-js/modules/es.array.map.js":318,"core-js/modules/es.object.keys.js":330,"core-js/modules/es.object.to-string.js":331,"core-js/modules/es.regexp.exec.js":340,"core-js/modules/es.regexp.to-string.js":341,"core-js/modules/es.string.replace.js":347,"core-js/modules/web.dom-collections.for-each.js":382}],76:[function(n,k,L){n("core-js/modules/es.array.slice.js"),n("core-js/modules/es.object.to-string.js"),n("core-js/modules/es.regexp.to-string.js"),n("core-js/modules/es.function.name.js"),n("core-js/modules/es.array.from.js"),n("core-js/modules/es.string.iterator.js"),n("core-js/modules/es.regexp.exec.js"),n("core-js/modules/es.symbol.js"),n("core-js/modules/es.symbol.description.js"),n("core-js/modules/es.symbol.iterator.js"),n("core-js/modules/es.array.iterator.js"),n("core-js/modules/web.dom-collections.iterator.js"),n("core-js/modules/es.object.assign.js");function $ (re,ie){var oe=typeof Symbol<"u"&&re[Symbol.iterator]||re["@@iterator"];if(!oe){if(Array.isArray(re)||(oe=j(re))||ie){oe&&(re=oe);var ue=0,de=function(){};return{s:de,n:function(){return ue>=re.length?{done:!0}:{done:!1,value:re[ue++]}},e:function(he){throw he},f:de}}throw new TypeError( ` Invalid attempt to iterate non - iterable instance .
2024-08-24 19:24:09 +08:00
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}var pe=!0,Ie=!1,_e;return{s:function(){oe=oe.call(re)},n:function(){var he=oe.next();return pe=he.done,he},e:function(he){Ie=!0,_e=he},f:function(){try{!pe&&oe.return!=null&&oe.return()}finally{if(Ie)throw _e}}}}function j(re,ie){if(re){if(typeof re=="string")return V(re,ie);var oe=Object.prototype.toString.call(re).slice(8,-1);if(oe==="Object"&&re.constructor&&(oe=re.constructor.name),oe==="Map"||oe==="Set")return Array.from(re);if(oe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(oe))return V(re,ie)}}function V(re,ie){(ie==null||ie>re.length)&&(ie=re.length);for(var oe=0,ue=new Array(ie);oe<ie;oe++)ue[oe]=re[oe];return ue}Object.defineProperty(L,"__esModule",{value:!0}),L.omit=void 0;function z(re,ie){var oe=Object.assign({},re),ue= $ (ie),de;try{for(ue.s();!(de=ue.n()).done;){var pe=de.value;delete oe[pe]}}catch(Ie){ue.e(Ie)}finally{ue.f()}return oe}L.omit=z},{"core-js/modules/es.array.from.js":314,"core-js/modules/es.array.iterator.js":316,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.function.name.js":322,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.to-string.js":331,"core-js/modules/es.regexp.exec.js":340,"core-js/modules/es.regexp.to-string.js":341,"core-js/modules/es.string.iterator.js":345,"core-js/modules/es.symbol.description.js":353,"core-js/modules/es.symbol.iterator.js":355,"core-js/modules/es.symbol.js":356,"core-js/modules/web.dom-collections.iterator.js":383}],77:[function(n,k,L){n("core-js/modules/es.object.to-string.js"),n("core-js/modules/es.promise.js"),Object.defineProperty(L,"__esModule",{value:!0}),L.retry=void 0;function $ (j,V){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},re=0,ie=z.retryDelay,oe=ie===void 0?500:ie,ue=z.errorHandler,de=ue===void 0?function(){return!0}:ue,pe=function Ie(){for(var _e=arguments.length,Ce=new Array(_e),he=0;he<_e;he++)Ce[he]=arguments[he];return new Promise(function(Ne,Fe){j.apply(void 0,Ce).then(function(Ue){re=0,Ne(Ue)}).catch(function(Ue){re<V&&de(Ue)?(re++,setTimeout(function(){Ne(Ie.apply(void 0,Ce))},oe)):(re=0,Fe(Ue))})})};return pe}L.retry= $ },{"core-js/modules/es.object.to-string.js":331,"core-js/modules/es.promise.js":335}],78:[function(n,k,L){var $ =function(re){return re&&re.__esModule?re:{default:re}};Object.defineProperty(L,"__esModule",{value:!0}),L.setRegion=void 0;var j= $ (n("url")),V=n("./checkConfigValid");function z(re){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;V.checkConfigValid(re,"region");var ue=oe?"https://":"http://",de=ie?"-internal.aliyuncs.com":".aliyuncs.com",pe="vpc100-oss-cn-";return re.substr(0,pe.length)===pe&&(de=".aliyuncs.com"),j.default.parse(ue+re+de)}L.setRegion=z},{"./checkConfigValid":53,url:545}],79:[function(n,k,L){var $ =n("@babel/runtime/helpers/interopRequireDefault"),j= $ (n("@babel/runtime/regenerator"));n("core-js/modules/es.object.keys.js"),n("core-js/modules/es.object.to-string.js"),n("core-js/modules/es.array.find.js"),n("core-js/modules/es.object.assign.js");var V= $ (n("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(L,"__esModule",{value:!0}),L.checkCredentials=L.setSTSToken=void 0;var z=n("./formatObjKey");function re(){return ie.apply(this,arguments)}function ie(){return ie=(0,V.default)(j.default.mark(function ue(){var de,pe;return j.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(this.options||(this.options={}),de=new Date,!this.stsTokenFreshTime){_e.next=14;break}if(!(+de-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){_e.next=12;break}return this.stsTokenFreshTime=de,_e.next=7,this.options.refreshSTSToken();case 7:pe=_e.sent,pe=z.formatObjKey(pe,"firstLowerCase"),pe.securityToken&&(pe.stsToken=pe.securityToken),oe(pe),Object.assign(this.options,pe);case 12:_e.next=15;break;case 14:this.stsTokenFreshTime=de;case 15:return _e.abrupt("return",null);case 16:case"end":return _e.stop()}},ue,this)})),ie.apply(this,arguments)}L.setSTSTo
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}k.exports= $ ,k.exports.__esModule=!0,k.exports.default=k.exports},{}],87:[function(n,k,L){var $ =n("./typeof.js").default;function j(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */k.exports=j=function(){return z},k.exports.__esModule=!0,k.exports.default=k.exports;var V,z={},re=Object.prototype,ie=re.hasOwnProperty,oe=Object.defineProperty||function(vr,Ir,Mr){vr[Ir]=Mr.value},ue=typeof Symbol=="function"?Symbol:{},de=ue.iterator||"@@iterator",pe=ue.asyncIterator||"@@asyncIterator",Ie=ue.toStringTag||"@@toStringTag";function _e(vr,Ir,Mr){return Object.defineProperty(vr,Ir,{value:Mr,enumerable:!0,configurable:!0,writable:!0}),vr[Ir]}try{_e({},"")}catch{_e=function(Mr,mr,gr){return Mr[mr]=gr}}function Ce(vr,Ir,Mr,mr){var gr=Ir&&Ir.prototype instanceof Ve?Ir:Ve,jr=Object.create(gr.prototype),Hr=new xr(mr||[]);return oe(jr,"_invoke",{value:_r(vr,Mr,Hr)}),jr}function he(vr,Ir,Mr){try{return{type:"normal",arg:vr.call(Ir,Mr)}}catch(mr){return{type:"throw",arg:mr}}}z.wrap=Ce;var Ne="suspendedStart",Fe="suspendedYield",Ue="executing",kt="completed",Et={};function Ve(){}function qe(){}function jt(){}var tr={};_e(tr,de,function(){return this});var rr=Object.getPrototypeOf,ar=rr&&rr(rr(yr([])));ar&&ar!==re&&ie.call(ar,de)&&(tr=ar);var nr=jt.prototype=Ve.prototype=Object.create(tr);function ur(vr){["next","throw","return"].forEach(function(Ir){_e(vr,Ir,function(Mr){return this._invoke(Ir,Mr)})})}function cr(vr,Ir){function Mr(gr,jr,Hr,Vr){var zr=he(vr[gr],vr,jr);if(zr.type!=="throw"){var Tr=zr.arg,Cr=Tr.value;return Cr&& $ (Cr)=="object"&&ie.call(Cr,"__await")?Ir.resolve(Cr.__await).then(function(Br){Mr("next",Br,Hr,Vr)},function(Br){Mr("throw",Br,Hr,Vr)}):Ir.resolve(Cr).then(function(Br){Tr.value=Br,Hr(Tr)},function(Br){return Mr("throw",Br,Hr,Vr)})}Vr(zr.arg)}var mr;oe(this,"_invoke",{value:function(jr,Hr){function Vr(){return new Ir(function(zr,Tr){Mr(jr,Hr,zr,Tr)})}return mr=mr?mr.then(Vr,Vr):Vr()}})}function _r(vr,Ir,Mr){var mr=Ne;return function(gr,jr){if(mr===Ue)throw new Error("Generator is already running");if(mr===kt){if(gr==="throw")throw jr;return{value:V,done:!0}}for(Mr.method=gr,Mr.arg=jr;;){var Hr=Mr.delegate;if(Hr){var Vr=hr(Hr,Mr);if(Vr){if(Vr===Et)continue;return Vr}}if(Mr.method==="next")Mr.sent=Mr._sent=Mr.arg;else if(Mr.method==="throw"){if(mr===Ne)throw mr=kt,Mr.arg;Mr.dispatchException(Mr.arg)}else Mr.method==="return"&&Mr.abrupt("return",Mr.arg);mr=Ue;var zr=he(vr,Ir,Mr);if(zr.type==="normal"){if(mr=Mr.done?kt:Fe,zr.arg===Et)continue;return{value:zr.arg,done:Mr.done}}zr.type==="throw"&&(mr=kt,Mr.method="throw",Mr.arg=zr.arg)}}}function hr(vr,Ir){var Mr=Ir.method,mr=vr.iterator[Mr];if(mr===V)return Ir.delegate=null,Mr==="throw"&&vr.iterator.return&&(Ir.method="return",Ir.arg=V,hr(vr,Ir),Ir.method==="throw")||Mr!=="return"&&(Ir.method="throw",Ir.arg=new TypeError("The iterator does not provide a '"+Mr+"' method")),Et;var gr=he(mr,vr.iterator,Ir.arg);if(gr.type==="throw")return Ir.method="throw",Ir.arg=gr.arg,Ir.delegate=null,Et;var jr=gr.arg;return jr?jr.done?(Ir[vr.resultName]=jr.value,Ir.next=vr.nextLoc,Ir.method!=="return"&&(Ir.method="next",Ir.arg=V),Ir.delegate=null,Et):jr:(Ir.method="throw",Ir.arg=new TypeError("iterator result is not an object"),Ir.delegate=null,Et)}function Er(vr){var Ir={tryLoc:vr[0]};1 in vr&&(Ir.catchLoc=vr[1]),2 in vr&&(Ir.finallyLoc=vr[2],Ir.afterLoc=vr[3]),this.tryEntries.push(Ir)}function kr(vr){var Ir=vr.completion||{};Ir.type="normal",delete Ir.arg,vr.completion=Ir}function xr(vr){this.tryEntries=[{tryLoc:"root"}],vr.forEach(Er,this),this.reset(!0)}function yr(vr){if(vr||vr===""){var Ir=vr[de];if(Ir)return Ir.call(vr);if(typeof vr.next=="function")return vr;if(!isNaN(vr.length)){var Mr=-1,mr=function gr(){for(;++Mr<vr.length;)if(ie.call(vr,Mr))return gr.value=vr[Mr],gr.done=!1,gr;return gr.value=V,gr.done=!0,gr};return mr.next=mr}}throw new TypeError( $ (vr)+" is not iterable")}return qe.prototype=jt
2024-08-21 13:12:53 +08:00
* The buffer module from node . js , for the browser .
*
* @ author Feross Aboukhadijeh < feross @ feross . org > < http : //feross.org>
* @ license MIT
2024-08-24 19:24:09 +08:00
* /function V(cr,_r){if(cr===_r)return 0;for(var hr=cr.length,Er=_r.length,kr=0,xr=Math.min(hr,Er);kr<xr;++kr)if(cr[kr]!==_r[kr]){hr=cr[kr],Er=_r[kr];break}return hr<Er?-1:Er<hr?1:0}function z(cr){return $.Buffer&&typeof $.Buffer.isBuffer=="function"?$.Buffer.isBuffer(cr):!!(cr!=null&&cr._isBuffer)}var re=n("util/ "),ie=Object.prototype.hasOwnProperty,oe=Array.prototype.slice,ue=function(){return(function(){}).name===" foo "}();function de(cr){return Object.prototype.toString.call(cr)}function pe(cr){return z(cr)||typeof $.ArrayBuffer!=" function "?!1:typeof ArrayBuffer.isView==" function "?ArrayBuffer.isView(cr):cr?!!(cr instanceof DataView||cr.buffer&&cr.buffer instanceof ArrayBuffer):!1}var Ie=k.exports=kt,_e=/\s*function\s+([^\(\s]*)\s*/;function Ce(cr){if(re.isFunction(cr)){if(ue)return cr.name;var _r=cr.toString(),hr=_r.match(_e);return hr&&hr[1]}}Ie.AssertionError=function(_r){this.name=" AssertionError " , this . actual = _r . actual , this . expected = _r . expected , this . operator = _r . operator , _r . message ? ( this . message = _r . message , this . generatedMessage = ! 1 ) : ( this . message = Fe ( this ) , this . generatedMessage = ! 0 ) ; var hr = _r . stackStartFunction || Ue ; if ( Error . captureStackTrace ) Error . captureStackTrace ( this , hr ) ; else { var Er = new Error ; if ( Er . stack ) { var kr = Er . stack , xr = Ce ( hr ) , yr = kr . indexOf ( `
` +xr);if(yr>=0){var vr=kr.indexOf( `
` ,yr+1);kr=kr.substring(vr+1)}this.stack=kr}}},re.inherits(Ie.AssertionError,Error);function he(cr,_r){return typeof cr=="string"?cr.length<_r?cr:cr.slice(0,_r):cr}function Ne(cr){if(ue||!re.isFunction(cr))return re.inspect(cr);var _r=Ce(cr),hr=_r?": "+_r:"";return"[Function"+hr+"]"}function Fe(cr){return he(Ne(cr.actual),128)+" "+cr.operator+" "+he(Ne(cr.expected),128)}function Ue(cr,_r,hr,Er,kr){throw new Ie.AssertionError({message:hr,actual:cr,expected:_r,operator:Er,stackStartFunction:kr})}Ie.fail=Ue;function kt(cr,_r){cr||Ue(cr,!0,_r,"==",Ie.ok)}Ie.ok=kt,Ie.equal=function(_r,hr,Er){_r!=hr&&Ue(_r,hr,Er,"==",Ie.equal)},Ie.notEqual=function(_r,hr,Er){_r==hr&&Ue(_r,hr,Er,"!=",Ie.notEqual)},Ie.deepEqual=function(_r,hr,Er){Et(_r,hr,!1)||Ue(_r,hr,Er,"deepEqual",Ie.deepEqual)},Ie.deepStrictEqual=function(_r,hr,Er){Et(_r,hr,!0)||Ue(_r,hr,Er,"deepStrictEqual",Ie.deepStrictEqual)};function Et(cr,_r,hr,Er){if(cr===_r)return!0;if(z(cr)&&z(_r))return V(cr,_r)===0;if(re.isDate(cr)&&re.isDate(_r))return cr.getTime()===_r.getTime();if(re.isRegExp(cr)&&re.isRegExp(_r))return cr.source===_r.source&&cr.global===_r.global&&cr.multiline===_r.multiline&&cr.lastIndex===_r.lastIndex&&cr.ignoreCase===_r.ignoreCase;if((cr===null||typeof cr!="object")&&(_r===null||typeof _r!="object"))return hr?cr===_r:cr==_r;if(pe(cr)&&pe(_r)&&de(cr)===de(_r)&&!(cr instanceof Float32Array||cr instanceof Float64Array))return V(new Uint8Array(cr.buffer),new Uint8Array(_r.buffer))===0;if(z(cr)!==z(_r))return!1;Er=Er||{actual:[],expected:[]};var kr=Er.actual.indexOf(cr);return kr!==-1&&kr===Er.expected.indexOf(_r)?!0:(Er.actual.push(cr),Er.expected.push(_r),qe(cr,_r,hr,Er))}function Ve(cr){return Object.prototype.toString.call(cr)=="[object Arguments]"}function qe(cr,_r,hr,Er){if(cr==null||_r===null||_r===void 0)return!1;if(re.isPrimitive(cr)||re.isPrimitive(_r))return cr===_r;if(hr&&Object.getPrototypeOf(cr)!==Object.getPrototypeOf(_r))return!1;var kr=Ve(cr),xr=Ve(_r);if(kr&&!xr||!kr&&xr)return!1;if(kr)return cr=oe.call(cr),_r=oe.call(_r),Et(cr,_r,hr);var yr=ur(cr),vr=ur(_r),Ir,Mr;if(yr.length!==vr.length)return!1;for(yr.sort(),vr.sort(),Mr=yr.length-1;Mr>=0;Mr--)if(yr[Mr]!==vr[Mr])return!1;for(Mr=yr.length-1;Mr>=0;Mr--)if(Ir=yr[Mr],!Et(cr[Ir],_r[Ir],hr,Er))return!1;return!0}Ie.notDeepEqual=function(_r,hr,Er){Et(_r,hr,!1)&&Ue(_r,hr,Er,"notDeepEqual",Ie.notDeepEqual)},Ie.notDeepStrictEqual=jt;function jt(cr,_r,hr){Et(cr,_r,!0)&&Ue(cr,_r,hr,"notDeepStrictEqual",jt)}Ie.strictEqual=function(_r,hr,Er){_r!==hr&&Ue(_r,hr,Er,"===",Ie.strictEqual)},Ie.notStrictEqual=function(_r,hr,Er){_r===hr&&Ue(_r,hr,Er,"!==",Ie.notStrictEqual)};function tr(cr,_r){if(!cr||!_r)return!1;if(Object.prototype.toString.call(_r)=="[object RegExp]")return _r.test(cr);try{if(cr instanceof _r)return!0}catch{}return Error.isPrototypeOf(_r)?!1:_r.call({},cr)===!0}function rr(cr){var _r;try{cr()}catch(hr){_r=hr}return _r}function ar(cr,_r,hr,Er){var kr;if(typeof _r!="function")throw new TypeError('"block" argument must be a function');typeof hr=="string"&&(Er=hr,hr=null),kr=rr(_r),Er=(hr&&hr.name?" ("+hr.name+").":".")+(Er?" "+Er:"."),cr&&!kr&&Ue(kr,hr,"Missing expected exception"+Er);var xr=typeof Er=="string",yr=!cr&&re.isError(kr),vr=!cr&&kr&&!hr;if((yr&&xr&&tr(kr,hr)||vr)&&Ue(kr,hr,"Got unwanted exception"+Er),cr&&kr&&hr&&!tr(kr,hr)||!cr&&kr)throw kr}Ie.throws=function(cr,_r,hr){ar(!0,cr,_r,hr)},Ie.doesNotThrow=function(cr,_r,hr){ar(!1,cr,_r,hr)},Ie.ifError=function(cr){if(cr)throw cr};function nr(cr,_r){cr||Ue(cr,!0,_r,"==",nr)}Ie.strict=j(nr,Ie,{equal:Ie.strictEqual,deepEqual:Ie.deepStrictEqual,notEqual:Ie.notStrictEqual,notDeepEqual:Ie.notDeepStrictEqual}),Ie.strict.strict=Ie.strict;var ur=Object.keys||function(cr){var _r=[];for(var hr in cr)ie.call(cr,hr)&&_r.push(hr);return _r}}).call(this)}).call(this,typeof y<"u"?y:typeof self<"u"?self:typeof window<"u"?window:{})},{"object.assign/polyfill":440,"util/":98}],96:[function(n,k,L){typeof Object.create=="function"?k.exports=function(j,V){j.super_=V,j.prototype=Object.create(V.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configur
2024-08-21 13:12:53 +08:00
` )>-1&&(jr?Vr=Vr.split( `
2024-08-22 19:23:55 +08:00
` ).map(function(Tr){return" "+Tr}).join( `
2024-08-21 13:12:53 +08:00
` ).substr(2):Vr= `
` +Vr.split( `
2024-08-22 19:23:55 +08:00
` ).map(function(Tr){return" "+Tr}).join( `
2024-08-24 19:24:09 +08:00
` ))):Vr=vr.stylize("[Circular]","special")),tr(Hr)){if(jr&&gr.match(/^ \d + $ /))return Vr;Hr=JSON.stringify(""+gr),Hr.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)" $ /)?(Hr=Hr.substr(1,Hr.length-2),Hr=vr.stylize(Hr,"name")):(Hr=Hr.replace(/'/g," \\ '").replace(/ \\ "/g,'"').replace(/(^"|" $ )/g,"'"),Hr=vr.stylize(Hr,"string"))}return Hr+": "+Vr}function Ne(vr,Ir,Mr){var mr=vr.reduce(function(gr,jr){return jr.indexOf( `
` )>=0,gr+jr.replace(/ \u 001b \[ \d \d ?m/g,"").length+1},0);return mr>60?Mr[0]+(Ir===""?"":Ir+ `
2024-08-21 13:12:53 +08:00
` )+" "+vr.join( ` ,
2024-08-24 19:24:09 +08:00
` )+" "+Mr[1]:Mr[0]+Ir+" "+vr.join(", ")+" "+Mr[1]}function Fe(vr){return Array.isArray(vr)}L.isArray=Fe;function Ue(vr){return typeof vr=="boolean"}L.isBoolean=Ue;function kt(vr){return vr===null}L.isNull=kt;function Et(vr){return vr==null}L.isNullOrUndefined=Et;function Ve(vr){return typeof vr=="number"}L.isNumber=Ve;function qe(vr){return typeof vr=="string"}L.isString=qe;function jt(vr){return typeof vr=="symbol"}L.isSymbol=jt;function tr(vr){return vr===void 0}L.isUndefined=tr;function rr(vr){return ar(vr)&&hr(vr)==="[object RegExp]"}L.isRegExp=rr;function ar(vr){return typeof vr=="object"&&vr!==null}L.isObject=ar;function nr(vr){return ar(vr)&&hr(vr)==="[object Date]"}L.isDate=nr;function ur(vr){return ar(vr)&&(hr(vr)==="[object Error]"||vr instanceof Error)}L.isError=ur;function cr(vr){return typeof vr=="function"}L.isFunction=cr;function _r(vr){return vr===null||typeof vr=="boolean"||typeof vr=="number"||typeof vr=="string"||typeof vr=="symbol"||typeof vr>"u"}L.isPrimitive=_r,L.isBuffer=n("./support/isBuffer");function hr(vr){return Object.prototype.toString.call(vr)}function Er(vr){return vr<10?"0"+vr.toString(10):vr.toString(10)}var kr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function xr(){var vr=new Date,Ir=[Er(vr.getHours()),Er(vr.getMinutes()),Er(vr.getSeconds())].join(":");return[vr.getDate(),kr[vr.getMonth()],Ir].join(" ")}L.log=function(){console.log("%s - %s",xr(),L.format.apply(L,arguments))},L.inherits=n("inherits"),L._extend=function(vr,Ir){if(!Ir||!ar(Ir))return vr;for(var Mr=Object.keys(Ir),mr=Mr.length;mr--;)vr[Mr[mr]]=Ir[Mr[mr]];return vr};function yr(vr,Ir){return Object.prototype.hasOwnProperty.call(vr,Ir)}}).call(this)}).call(this,n("_process"),typeof y<"u"?y:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":97,_process:540,inherits:96}],99:[function(n,k,L){(function( $ ){(function(){var j=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],V=typeof globalThis>"u"? $ :globalThis;k.exports=function(){for(var re=[],ie=0;ie<j.length;ie++)typeof V[j[ie]]=="function"&&(re[re.length]=j[ie]);return re}}).call(this)}).call(this,typeof y<"u"?y:typeof self<"u"?self:typeof window<"u"?window:{})},{}],100:[function(n,k,L){L.byteLength=ue,L.toByteArray=pe,L.fromByteArray=Ce;for(var $ =[],j=[],V=typeof Uint8Array<"u"?Uint8Array:Array,z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",re=0,ie=z.length;re<ie;++re) $ [re]=z[re],j[z.charCodeAt(re)]=re;j[45]=62,j[95]=63;function oe(he){var Ne=he.length;if(Ne%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Fe=he.indexOf("=");Fe===-1&&(Fe=Ne);var Ue=Fe===Ne?0:4-Fe%4;return[Fe,Ue]}function ue(he){var Ne=oe(he),Fe=Ne[0],Ue=Ne[1];return(Fe+Ue)*3/4-Ue}function de(he,Ne,Fe){return(Ne+Fe)*3/4-Fe}function pe(he){var Ne,Fe=oe(he),Ue=Fe[0],kt=Fe[1],Et=new V(de(he,Ue,kt)),Ve=0,qe=kt>0?Ue-4:Ue,jt;for(jt=0;jt<qe;jt+=4)Ne=j[he.charCodeAt(jt)]<<18|j[he.charCodeAt(jt+1)]<<12|j[he.charCodeAt(jt+2)]<<6|j[he.charCodeAt(jt+3)],Et[Ve++]=Ne>>16&255,Et[Ve++]=Ne>>8&255,Et[Ve++]=Ne&255;return kt===2&&(Ne=j[he.charCodeAt(jt)]<<2|j[he.charCodeAt(jt+1)]>>4,Et[Ve++]=Ne&255),kt===1&&(Ne=j[he.charCodeAt(jt)]<<10|j[he.charCodeAt(jt+1)]<<4|j[he.charCodeAt(jt+2)]>>2,Et[Ve++]=Ne>>8&255,Et[Ve++]=Ne&255),Et}function Ie(he){return $ [he>>18&63]+ $ [he>>12&63]+ $ [he>>6&63]+ $ [he&63]}function _e(he,Ne,Fe){for(var Ue,kt=[],Et=Ne;Et<Fe;Et+=3)Ue=(he[Et]<<16&16711680)+(he[Et+1]<<8&65280)+(he[Et+2]&255),kt.push(Ie(Ue));return kt.join("")}function Ce(he){for(var Ne,Fe=he.length,Ue=Fe%3,kt=[],Et=16383,Ve=0,qe=Fe-Ue;Ve<qe;Ve+=Et)kt.push(_e(he,Ve,Ve+Et>qe?qe:Ve+Et));return Ue===1?(Ne=he[Fe-1],kt.push( $ [Ne>>2]+ $ [Ne<<4&63]+"==")):Ue===2&&(Ne=(he[Fe-2]<<8)+he[Fe-1],kt.push( $ [Ne>>10]+ $ [Ne>>4&63]+ $ [Ne<<2&63]+"=")),kt.join("")}},{}],101:[function(n,k,L){/*!
2024-08-21 13:12:53 +08:00
* Bowser - a browser detector
* https : //github.com/ded/bowser
* MIT License | ( c ) Dustin Diaz 2015
2024-08-24 19:24:09 +08:00
* /(function($,j,V){typeof k<"u"&&k.exports?k.exports=V():$[j]=V()})(this,"bowser",function(){var $=!0;function j(de){function pe(vr){var Ir=de.match(vr);return Ir&&Ir.length>1&&Ir[1]||""}function Ie(vr){var Ir=de.match(vr);return Ir&&Ir.length>1&&Ir[2]||""}var _e=pe(/ ( ipod | iphone | ipad ) / i ) . toLowerCase ( ) , Ce = /like android/i . test ( de ) , he = ! Ce && /android/i . test ( de ) , Ne = /nexus\s*[0-6]\s*/i . test ( de ) , Fe = ! Ne && /nexus\s*[0-9]+/i . test ( de ) , Ue = /CrOS/ . test ( de ) , kt = /silk/i . test ( de ) , Et = /sailfish/i . test ( de ) , Ve = /tizen/i . test ( de ) , qe = /(web|hpw)(o|0)s/i . test ( de ) , jt = /windows phone/i . test ( de ) , tr = ! jt && /windows/i . test ( de ) , rr = ! _e && ! kt && /macintosh/i . test ( de ) , ar = ! he && ! Et && ! Ve && ! qe && /linux/i . test ( de ) , nr = Ie ( /edg([ea]|ios)\/(\d+(\.\d+)?)/i ) , ur = pe ( /version\/(\d+(\.\d+)?)/i ) , cr = /tablet/i . test ( de ) && ! /tablet pc/i . test ( de ) , _r = ! cr && /[^-]mobi/i . test ( de ) , hr = /xbox/i . test ( de ) , Er ; /opera/i . test ( de ) ? Er = { name : "Opera" , opera : $ , version : ur || pe ( /(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i ) } : /opr\/|opios/i . test ( de ) ? Er = { name : "Opera" , opera : $ , version : pe ( /(?:opr|opios)[\s\/](\d+(\.\d+)?)/i ) || ur } : /SamsungBrowser/i . test ( de ) ? Er = { name : "Samsung Internet for Android" , samsungBrowser : $ , version : ur || pe ( /(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i ) } : /Whale/i . test ( de ) ? Er = { name : "NAVER Whale browser" , whale : $ , version : pe ( /(?:whale)[\s\/](\d+(?:\.\d+)+)/i ) } : /MZBrowser/i . test ( de ) ? Er = { name : "MZ Browser" , mzbrowser : $ , version : pe ( /(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i ) } : /coast/i . test ( de ) ? Er = { name : "Opera Coast" , coast : $ , version : ur || pe ( /(?:coast)[\s\/](\d+(\.\d+)?)/i ) } : /focus/i . test ( de ) ? Er = { name : "Focus" , focus : $ , version : pe ( /(?:focus)[\s\/](\d+(?:\.\d+)+)/i ) } : /yabrowser/i . test ( de ) ? Er = { name : "Yandex Browser" , yandexbrowser : $ , version : ur || pe ( /(?:yabrowser)[\s\/](\d+(\.\d+)?)/i ) } : /ucbrowser/i . test ( de ) ? Er = { name : "UC Browser" , ucbrowser : $ , version : pe ( /(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i ) } : /mxios/i . test ( de ) ? Er = { name : "Maxthon" , maxthon : $ , version : pe ( /(?:mxios)[\s\/](\d+(?:\.\d+)+)/i ) } : /epiphany/i . test ( de ) ? Er = { name : "Epiphany" , epiphany : $ , version : pe ( /(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i ) } : /puffin/i . test ( de ) ? Er = { name : "Puffin" , puffin : $ , version : pe ( /(?:puffin)[\s\/](\d+(?:\.\d+)?)/i ) } : /sleipnir/i . test ( de ) ? Er = { name : "Sleipnir" , sleipnir : $ , version : pe ( /(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i ) } : /k-meleon/i . test ( de ) ? Er = { name : "K-Meleon" , kMeleon : $ , version : pe ( /(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i ) } : jt ? ( Er = { name : "Windows Phone" , osname : "Windows Phone" , windowsphone : $ } , nr ? ( Er . msedge = $ , Er . version = nr ) : ( Er . msie = $ , Er . version = pe ( /iemobile\/(\d+(\.\d+)?)/i ) ) ) : /msie|trident/i . test ( de ) ? Er = { name : "Internet Explorer" , msie : $ , version : pe ( /(?:msie |rv:)(\d+(\.\d+)?)/i ) } : Ue ? Er = { name : "Chrome" , osname : "Chrome OS" , chromeos : $ , chromeBook : $ , chrome : $ , version : pe ( /(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i ) } : /edg([ea]|ios)/i . test ( de ) ? Er = { name : "Microsoft Edge" , msedge : $ , version : nr } : /vivaldi/i . test ( de ) ? Er = { name : "Vivaldi" , vivaldi : $ , version : pe ( /vivaldi\/(\d+(\.\d+)?)/i ) || ur } : Et ? Er = { name : "Sailfish" , osname : "Sailfish OS" , sailfish : $ , version : pe ( /sailfish\s?browser\/(\d+(\.\d+)?)/i ) } : /seamonkey\//i . test ( de ) ? Er = { name : "SeaMonkey" , seamonkey : $ , version : pe ( /seamonkey\/(\d+(\.\d+)?)/i ) } : /firefox|iceweasel|fxios/i . test ( de ) ? ( Er = { name : "Firefox" , firefox : $ , version : pe ( /(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i ) } , /\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i . test ( de ) && ( Er . firefoxos = $ , Er . osname = "Firefox OS" ) ) : kt ? Er = { name : "Amazon Silk" , silk : $ , version : pe ( /silk\/(\d+(\.\d+)?)/i ) } : /phantom/i . test ( de ) ? Er = { name : "PhantomJS" , phantom : $ , version : pe ( /phantomjs\/(\d+(\.\d+)?)/i ) } : /slimerjs/i . test ( de ) ? Er = { name : "SlimerJS" , slimer : $ , version : pe ( /slimerjs\/(\d+(\.\d+)?)/i ) } : /blackberry|\bbb\d+/i . test ( de ) || /rim\stablet/i . test ( de ) ? Er = { name : "BlackBerry" , osname : "BlackBerry OS" , blackberry : $ , version : ur || pe ( /blackberry[\d]+\/(\d+(\.\d+)?)/i ) } : qe ? ( Er = { name : "WebOS" , osname : "WebOS" , webos : $ , version : ur || pe ( /w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i ) } , /touchpad\//i . test ( de ) && ( Er . touchpad = $ ) ) : /bada/i . test ( de ) ? Er = { name : "Bada" , osname : "Bada" , bada : $ , version : pe ( /dolfin\/(\d+(\.\d+)?)/i ) } : Ve ? Er = { name : "Tizen" , osname : "Tizen" , tizen : $ , version : pe ( /(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i ) || ur } : /qupzilla/i . test ( de ) ? Er = { name : "QupZilla" , qupzilla : $ , version : pe ( / ( ? : q u p z
` )&&(mr="(?: "+mr+")",jr=" "+jr,gr++),_r=new RegExp("^(?:"+mr+")",Mr)),Ve&&(_r=new RegExp("^"+mr+" $ (?! \\ s)",Mr)),kt&&(hr=rr.lastIndex),Er= $ (_e,Ir?_r:rr,jr),Ir?Er?(Er.input=Ue(Er.input,gr),Er[0]=Ue(Er[0],gr),Er.index=rr.lastIndex,rr.lastIndex+=Er[0].length):rr.lastIndex=0:kt&&Er&&(rr.lastIndex=rr.global?Er.index+Er[0].length:hr),Ve&&Er&&Er.length>1&& $ (Ie,Er[0],_r,function(){for(kr=1;kr<arguments.length-2;kr++)arguments[kr]===void 0&&(Er[kr]=void 0)}),Er&&vr)for(Er.groups=xr=oe(null),kr=0;kr<vr.length;kr++)yr=vr[kr],xr[yr[0]]=Er[yr[1]];return Er}),k.exports=Ce},{"../internals/function-call":177,"../internals/function-uncurry-this":181,"../internals/internal-state":199,"../internals/object-create":229,"../internals/regexp-flags":257,"../internals/regexp-sticky-helpers":259,"../internals/regexp-unsupported-dot-all":260,"../internals/regexp-unsupported-ncg":261,"../internals/shared":269,"../internals/to-string":291}],257:[function(n,k,L){var $ =n("../internals/an-object");k.exports=function(){var j= $ (this),V="";return j.hasIndices&&(V+="d"),j.global&&(V+="g"),j.ignoreCase&&(V+="i"),j.multiline&&(V+="m"),j.dotAll&&(V+="s"),j.unicode&&(V+="u"),j.unicodeSets&&(V+="v"),j.sticky&&(V+="y"),V}},{"../internals/an-object":114}],258:[function(n,k,L){var $ =n("../internals/function-call"),j=n("../internals/has-own-property"),V=n("../internals/object-is-prototype-of"),z=n("../internals/regexp-flags"),re=RegExp.prototype;k.exports=function(ie){var oe=ie.flags;return oe===void 0&&!("flags"in re)&&!j(ie,"flags")&&V(re,ie)? $ (z,ie):oe}},{"../internals/function-call":177,"../internals/has-own-property":189,"../internals/object-is-prototype-of":238,"../internals/regexp-flags":257}],259:[function(n,k,L){var $ =n("../internals/fails"),j=n("../internals/global"),V=j.RegExp,z= $ (function(){var oe=V("a","y");return oe.lastIndex=2,oe.exec("abcd")!==null}),re=z|| $ (function(){return!V("a","y").sticky}),ie=z|| $ (function(){var oe=V("^r","gy");return oe.lastIndex=2,oe.exec("str")!==null});k.exports={BROKEN_CARET:ie,MISSED_STICKY:re,UNSUPPORTED_Y:z}},{"../internals/fails":171,"../internals/global":188}],260:[function(n,k,L){var $ =n("../internals/fails"),j=n("../internals/global"),V=j.RegExp;k.exports= $ (function(){var z=V(".","s");return!(z.dotAll&&z.test( `
` )&&z.flags==="s")})},{"../internals/fails":171,"../internals/global":188}],261:[function(n,k,L){var $ =n("../internals/fails"),j=n("../internals/global"),V=j.RegExp;k.exports= $ (function(){var z=V("(?<a>b)","g");return z.exec("b").groups.a!=="b"||"b".replace(z," $ <a>c")!=="bc"})},{"../internals/fails":171,"../internals/global":188}],262:[function(n,k,L){var $ =n("../internals/is-null-or-undefined"),j=TypeError;k.exports=function(V){if( $ (V))throw new j("Can't call method on "+V);return V}},{"../internals/is-null-or-undefined":207}],263:[function(n,k,L){var $ =n("../internals/global"),j=n("../internals/descriptors"),V=Object.getOwnPropertyDescriptor;k.exports=function(z){if(!j)return $ [z];var re=V( $ ,z);return re&&re.value}},{"../internals/descriptors":153,"../internals/global":188}],264:[function(n,k,L){k.exports=Object.is||function(j,V){return j===V?j!==0||1/j===1/V:j!==j&&V!==V}},{}],265:[function(n,k,L){var $ =n("../internals/get-built-in"),j=n("../internals/define-built-in-accessor"),V=n("../internals/well-known-symbol"),z=n("../internals/descriptors"),re=V("species");k.exports=function(ie){var oe= $ (ie);z&&oe&&!oe[re]&&j(oe,re,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":148,"../internals/descriptors":153,"../internals/get-built-in":182,"../internals/well-known-symbol":306}],266:[function(n,k,L){var $ =n("../internals/object-define-property").f,j=n("../internals/has-own-property"),V=n("../internals/well-known-symbol"),z=V("toStringTag");k.exports=function(re,ie,oe){re&&!oe&&(re=re.prototype),re&&!j(re,z)&& $ (re,z,{configurable:!0,value:ie})}},{"../internals/has-own-property":189,"../internals/object-define-property":231,"../internals/well-known-symbol":306}],267:[function(n,k,L){var $ =n("../internals/shared"),j=n("../internals/uid"),V= $ ("keys");k.exports=function(z){return V[z]||(V[z]=j(z))}},{"../internals/shared":269,"../internals/uid":299}],268:[function(n,k,L){var $ =n("../internals/global"),j=n("../internals/define-global-property"),V="__core-js_shared__",z= $ [V]||j(V,{});k.exports=z},{"../internals/define-global-property":151,"../internals/global":188}],269:[function(n,k,L){var $ =n("../internals/is-pure"),j=n("../internals/shared-store");(k.exports=function(V,z){return j[V]||(j[V]=z!==void 0?z:{})})("versions",[]).push({version:"3.35.0",mode: $ ?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":210,"../internals/shared-store":268}],270:[function(n,k,L){var $ =n("../internals/an-object"),j=n("../internals/a-constructor"),V=n("../internals/is-null-or-undefined"),z=n("../internals/well-known-symbol"),re=z("species");k.exports=function(ie,oe){var ue= $ (ie).constructor,de;return ue===void 0||V(de= $ (ue)[re])?oe:j(de)}},{"../internals/a-constructor":109,"../internals/an-object":114,"../internals/is-null-or-undefined":207,"../internals/well-known-symbol":306}],271:[function(n,k,L){var $ =n("../internals/function-uncurry-this"),j=n("../internals/to-integer-or-infinity"),V=n("../internals/to-string"),z=n("../internals/require-object-coercible"),re= $ ("".charAt),ie= $ ("".charCodeAt),oe= $ ("".slice),ue=function(de){return function(pe,Ie){var _e=V(z(pe)),Ce=j(Ie),he=_e.length,Ne,Fe;return Ce<0||Ce>=he?de?"":void 0:(Ne=ie(_e,Ce),Ne<55296||Ne>56319||Ce+1===he||(Fe=ie(_e,Ce+1))<56320||Fe>57343?de?re(_e,Ce):Ne:de?oe(_e,Ce,Ce+2):(Ne-55296<<10)+(Fe-56320)+65536)}};k.exports={codeAt:ue(!1),charAt:ue(!0)}},{"../internals/function-uncurry-this":181,"../internals/require-object-coercible":262,"../internals/to-integer-or-infinity":283,"../internals/to-string":291}],272:[function(n,k,L){var $ =n("../internals/function-name").PROPER,j=n("../internals/fails"),V=n("../internals/whitespaces"),z="
";k.exports=function(re){return j(function(){return!!V[re]()||z[re]()!==z|| $ &&V[re].name!==re})}},{"../internals/fails":171,"../internals/function-name":178,"../internals/whitespaces":307}],273:[function(n,k,L){var $ =n("../internals/function-uncurry-this"),j
\ v \ f \ r \u2028\u2029\uFEFF ` },{}],308:[function(n,k,L){var $ =n("../internals/export"),j=n("../internals/global"),V=n("../internals/array-buffer"),z=n("../internals/set-species"),re="ArrayBuffer",ie=V[re],oe=j[re]; $ ({global:!0,constructor:!0,forced:oe!==ie},{ArrayBuffer:ie}),z(re)},{"../internals/array-buffer":118,"../internals/export":170,"../internals/global":188,"../internals/set-species":265}],309:[function(n,k,L){var $ =n("../internals/export"),j=n("../internals/function-uncurry-this-clause"),V=n("../internals/fails"),z=n("../internals/array-buffer"),re=n("../internals/an-object"),ie=n("../internals/to-absolute-index"),oe=n("../internals/to-length"),ue=n("../internals/species-constructor"),de=z.ArrayBuffer,pe=z.DataView,Ie=pe.prototype,_e=j(de.prototype.slice),Ce=j(Ie.getUint8),he=j(Ie.setUint8),Ne=V(function(){return!new de(2).slice(1,void 0).byteLength}); $ ({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:Ne},{slice:function(Ue,kt){if(_e&&kt===void 0)return _e(re(this),Ue);for(var Et=re(this).byteLength,Ve=ie(Ue,Et),qe=ie(kt===void 0?Et:kt,Et),jt=new(ue(this,de))(oe(qe-Ve)),tr=new pe(this),rr=new pe(jt),ar=0;Ve<qe;)he(rr,ar++,Ce(tr,Ve++));return jt}})},{"../internals/an-object":114,"../internals/array-buffer":118,"../internals/export":170,"../internals/fails":171,"../internals/function-uncurry-this-clause":180,"../internals/species-constructor":270,"../internals/to-absolute-index":279,"../internals/to-length":284}],310:[function(n,k,L){var $ =n("../internals/export"),j=n("../internals/fails"),V=n("../internals/is-array"),z=n("../internals/is-object"),re=n("../internals/to-object"),ie=n("../internals/length-of-array-like"),oe=n("../internals/does-not-exceed-safe-integer"),ue=n("../internals/create-property"),de=n("../internals/array-species-create"),pe=n("../internals/array-method-has-species-support"),Ie=n("../internals/well-known-symbol"),_e=n("../internals/engine-v8-version"),Ce=Ie("isConcatSpreadable"),he=_e>=51||!j(function(){var Ue=[];return Ue[Ce]=!1,Ue.concat()[0]!==Ue}),Ne=function(Ue){if(!z(Ue))return!1;var kt=Ue[Ce];return kt!==void 0?!!kt:V(Ue)},Fe=!he||!pe("concat"); $ ({target:"Array",proto:!0,arity:1,forced:Fe},{concat:function(kt){var Et=re(this),Ve=de(Et,0),qe=0,jt,tr,rr,ar,nr;for(jt=-1,rr=arguments.length;jt<rr;jt++)if(nr=jt===-1?Et:arguments[jt],Ne(nr))for(ar=ie(nr),oe(qe+ar),tr=0;tr<ar;tr++,qe++)tr in nr&&ue(Ve,qe,nr[tr]);else oe(qe+1),ue(Ve,qe++,nr);return Ve.length=qe,Ve}})},{"../internals/array-method-has-species-support":127,"../internals/array-species-create":134,"../internals/create-property":147,"../internals/does-not-exceed-safe-integer":155,"../internals/engine-v8-version":167,"../internals/export":170,"../internals/fails":171,"../internals/is-array":201,"../internals/is-object":208,"../internals/length-of-array-like":219,"../internals/to-object":285,"../internals/well-known-symbol":306}],311:[function(n,k,L){var $ =n("../internals/export"),j=n("../internals/array-fill"),V=n("../internals/add-to-unscopables"); $ ({target:"Array",proto:!0},{fill:j}),V("fill")},{"../internals/add-to-unscopables":111,"../internals/array-fill":120,"../internals/export":170}],312:[function(n,k,L){var $ =n("../internals/export"),j=n("../internals/array-iteration").filter,V=n("../internals/array-method-has-species-support"),z=V("filter"); $ ({target:"Array",proto:!0,forced:!z},{filter:function(ie){return j(this,ie,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":125,"../internals/array-method-has-species-support":127,"../internals/export":170}],313:[function(n,k,L){var $ =n("../internals/export"),j=n("../internals/array-iteration").find,V=n("../internals/add-to-unscopables"),z="find",re=!0;z in[]&&Array(1)[z](function(){re=!1}), $ ({target:"Array",proto:!0,forced:re},{find:function(oe){return j(this,oe,arguments.length>1?arguments[1]:void 0)}}),V(z)},{"../internals/add-to-unscopables":111,"../internals/array-iteration":125,"../internals/export":170}],314:[function(n,k,L){var $ =n("../internals/export"),j=n("../internals/array-from"),V=n("../internals/chec
2024-08-21 13:12:53 +08:00
* Determine if an object is a Buffer
*
* @ author Feross Aboukhadijeh < https : //feross.org>
* @ license MIT
2024-08-24 19:24:09 +08:00
* /k.exports=function(V){return V!=null&&($(V)||j(V)||!!V._isBuffer)};function $(V){return!!V.constructor&&typeof V.constructor.isBuffer=="function"&&V.constructor.isBuffer(V)}function j(V){return typeof V.readFloatLE=="function"&&typeof V.slice=="function"&&$(V.slice(0,0))}},{}],412:[function(n,k,L){var $=Function.prototype.toString,j=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,V,z;if(typeof j=="function"&&typeof Object.defineProperty=="function")try{V=Object.defineProperty({},"length",{get:function(){throw z}}),z={},j(function(){throw 42},null,V)}catch(Et){Et!==z&&(j=null)}else j=null;var re=/^\s*class\b/,ie=function(Ve){try{var qe=$.call(Ve);return re.test(qe)}catch{return!1}},oe=function(Ve){try{return ie(Ve)?!1:($.call(Ve),!0)}catch{return!1}},ue=Object.prototype.toString,de="[object Object]",pe="[object Function]",Ie="[object GeneratorFunction]",_e="[object HTMLAllCollection]",Ce="[object HTML document.all class]",he="[object HTMLCollection]",Ne=typeof Symbol=="function"&&!!Symbol.toStringTag,Fe=!(0 in[,]),Ue=function(){return!1};if(typeof document=="object"){var kt=document.all;ue.call(kt)===ue.call(document.all)&&(Ue=function(Ve){if((Fe||!Ve)&&(typeof Ve>"u"||typeof Ve=="object"))try{var qe=ue.call(Ve);return(qe===_e||qe===Ce||qe===he||qe===de)&&Ve("")==null}catch{}return!1})}k.exports=j?function(Ve){if(Ue(Ve))return!0;if(!Ve||typeof Ve!="function"&&typeof Ve!="object")return!1;try{j(Ve,null,V)}catch(qe){if(qe!==z)return!1}return!ie(Ve)&&oe(Ve)}:function(Ve){if(Ue(Ve))return!0;if(!Ve||typeof Ve!="function"&&typeof Ve!="object")return!1;if(Ne)return oe(Ve);if(ie(Ve))return!1;var qe=ue.call(Ve);return qe!==pe&&qe!==Ie&&!/ ^ \ [ object HTML / . test ( qe ) ? ! 1 : oe ( Ve ) } } , { } ] , 413 : [ function ( n , k , L ) { var $ = Object . prototype . toString , j = Function . prototype . toString , V = /^\s*(?:function)?\*/ , z = n ( "has-tostringtag/shams" ) ( ) , re = Object . getPrototypeOf , ie = function ( ) { if ( ! z ) return ! 1 ; try { return Function ( "return function*() {}" ) ( ) } catch { } } , oe ; k . exports = function ( de ) { if ( typeof de != "function" ) return ! 1 ; if ( V . test ( j . call ( de ) ) ) return ! 0 ; if ( ! z ) { var pe = $ . call ( de ) ; return pe === "[object GeneratorFunction]" } if ( ! re ) return ! 1 ; if ( typeof oe > "u" ) { var Ie = ie ( ) ; oe = Ie ? re ( Ie ) : ! 1 } return re ( de ) === oe } } , { "has-tostringtag/shams" : 398 } ] , 414 : [ function ( n , k , L ) { var $ = n ( "which-typed-array" ) ; k . exports = function ( V ) { return ! ! $ ( V ) } } , { "which-typed-array" : 492 } ] , 415 : [ function ( n , k , L ) { ( function ( $ ) { ( function ( ) { ( function ( j , V ) { typeof L == "object" && typeof k < "u" ? k . exports = V ( j ) : V ( j ) } ) ( typeof self < "u" ? self : typeof window < "u" ? window : typeof $ < "u" ? $ : this , function ( j ) { j = j || { } ; var V = j . Base64 , z = "2.6.4" , re = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" , ie = function ( hr ) { for ( var Er = { } , kr = 0 , xr = hr . length ; kr < xr ; kr ++ ) Er [ hr . charAt ( kr ) ] = kr ; return Er } ( re ) , oe = String . fromCharCode , ue = function ( hr ) { if ( hr . length < 2 ) { var Er = hr . charCodeAt ( 0 ) ; return Er < 128 ? hr : Er < 2048 ? oe ( 192 | Er >>> 6 ) + oe ( 128 | Er & 63 ) : oe ( 224 | Er >>> 12 & 15 ) + oe ( 128 | Er >>> 6 & 63 ) + oe ( 128 | Er & 63 ) } else { var Er = 65536 + ( hr . charCodeAt ( 0 ) - 55296 ) * 1024 + ( hr . charCodeAt ( 1 ) - 56320 ) ; return oe ( 240 | Er >>> 18 & 7 ) + oe ( 128 | Er >>> 12 & 63 ) + oe ( 128 | Er >>> 6 & 63 ) + oe ( 128 | Er & 63 ) } } , de = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g , pe = function ( hr ) { return hr . replace ( de , ue ) } , Ie = function ( hr ) { var Er = [ 0 , 2 , 1 ] [ hr . length % 3 ] , kr = hr . charCodeAt ( 0 ) << 16 | ( hr . length > 1 ? hr . charCodeAt ( 1 ) : 0 ) << 8 | ( hr . length > 2 ? hr . charCodeAt ( 2 ) : 0 ) , xr = [ re . charAt ( kr >>> 18 ) , re . charAt ( kr >>> 12 & 63 ) , Er >= 2 ? "=" : re . charAt ( kr >>> 6 & 63 ) , Er >= 1 ? "=" : re . charAt ( kr & 63 ) ] ; return xr . join ( "" ) } , _e = j . btoa && typeof j . btoa == "function" ? function ( hr ) { return j . btoa ( hr ) } : function ( hr ) { if ( hr . match ( /[^\x00-\xFF]/ ) ) throw new RangeError ( "The string contains invalid characters." ) ; return hr . replace ( /[\s\S]{1,3}/g , Ie ) } , Ce = function ( hr ) { return _e ( pe ( String ( hr ) ) ) } , he = function ( hr ) { return hr . replace ( /[+\/]/g , function ( Er ) { return Er == "+" ? "-" : "_" } ) . replace ( /=/g , "" ) } , Ne = function ( hr , Er ) { return Er ? he ( Ce ( hr ) ) : Ce ( hr ) } , Fe = function ( hr ) { return Ne ( hr , ! 0 ) } , Ue ; j . Uint8Array && ( Ue = function ( hr , Er ) { for ( var kr = "" , xr = 0 , yr = hr . length ; xr < yr ; xr += 3 ) { var vr = hr [ xr ] , Ir = hr [ xr + 1 ] , Mr = hr [ xr + 2 ] , mr = vr << 16 | Ir << 8 | Mr ; kr += re . charAt ( mr >>> 18 ) + re . charAt ( mr >>> 12 & 63 ) + ( typeof Ir < "u" ? re . charAt ( mr >>> 6 & 63 ) : "=" ) + ( typeof Mr < "
2024-08-21 13:12:53 +08:00
` )>=0)return!1;return!0}function qa(na,Ma){var Ns;if(na.indent===" ")Ns=" ";else if(typeof na.indent=="number"&&na.indent>0)Ns=nr.call(Array(na.indent+1)," ");else return null;return{base:Ns,prev:nr.call(Array(Ma+1),Ns)}}function To(na,Ma){if(na.length===0)return"";var Ns= `
` +Ma.prev+Ma.base;return Ns+nr.call(na,","+Ns)+ `
2024-08-24 19:24:09 +08:00
` +Ma.prev}function Hi(na,Ma){var Ns=Vr(na),cs=[];if(Ns){cs.length=na.length;for(var vl=0;vl<na.length;vl++)cs[vl]=Kr(na,vl)?Ma(na[vl],na):""}var Bl=typeof hr=="function"?hr(na):[],Au;if(kr){Au={};for(var xs=0;xs<Bl.length;xs++)Au[" $ "+Bl[xs]]=Bl[xs]}for(var ju in na)Kr(na,ju)&&(Ns&&String(Number(ju))===ju&&ju<na.length||kr&&Au[" $ "+ju]instanceof Symbol||(rr.call(/[^ \w $ ]/,ju)?cs.push(Ma(ju,na)+": "+Ma(na[ju],na)):cs.push(ju+": "+Ma(na[ju],na))));if(typeof hr=="function")for(var Lu=0;Lu<Bl.length;Lu++)yr.call(na,Bl[Lu])&&cs.push("["+Ma(Bl[Lu])+"]: "+Ma(na[Bl[Lu]],na));return cs}}).call(this)}).call(this,typeof y<"u"?y:typeof self<"u"?self:typeof window<"u"?window:{})},{"./util.inspect":102}],436:[function(n,k,L){var $ ;if(!Object.keys){var j=Object.prototype.hasOwnProperty,V=Object.prototype.toString,z=n("./isArguments"),re=Object.prototype.propertyIsEnumerable,ie=!re.call({toString:null},"toString"),oe=re.call(function(){},"prototype"),ue=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],de=function(Ce){var he=Ce.constructor;return he&&he.prototype===Ce},pe={ $ applicationCache:!0, $ console:!0, $ external:!0, $ frame:!0, $ frameElement:!0, $ frames:!0, $ innerHeight:!0, $ innerWidth:!0, $ onmozfullscreenchange:!0, $ onmozfullscreenerror:!0, $ outerHeight:!0, $ outerWidth:!0, $ pageXOffset:!0, $ pageYOffset:!0, $ parent:!0, $ scrollLeft:!0, $ scrollTop:!0, $ scrollX:!0, $ scrollY:!0, $ self:!0, $ webkitIndexedDB:!0, $ webkitStorageInfo:!0, $ window:!0},Ie=function(){if(typeof window>"u")return!1;for(var Ce in window)try{if(!pe[" $ "+Ce]&&j.call(window,Ce)&&window[Ce]!==null&&typeof window[Ce]=="object")try{de(window[Ce])}catch{return!0}}catch{return!0}return!1}(),_e=function(Ce){if(typeof window>"u"||!Ie)return de(Ce);try{return de(Ce)}catch{return!1}}; $ =function(he){var Ne=he!==null&&typeof he=="object",Fe=V.call(he)==="[object Function]",Ue=z(he),kt=Ne&&V.call(he)==="[object String]",Et=[];if(!Ne&&!Fe&&!Ue)throw new TypeError("Object.keys called on a non-object");var Ve=oe&&Fe;if(kt&&he.length>0&&!j.call(he,0))for(var qe=0;qe<he.length;++qe)Et.push(String(qe));if(Ue&&he.length>0)for(var jt=0;jt<he.length;++jt)Et.push(String(jt));else for(var tr in he)!(Ve&&tr==="prototype")&&j.call(he,tr)&&Et.push(String(tr));if(ie)for(var rr=_e(he),ar=0;ar<ue.length;++ar)!(rr&&ue[ar]==="constructor")&&j.call(he,ue[ar])&&Et.push(ue[ar]);return Et}}k.exports= $ },{"./isArguments":438}],437:[function(n,k,L){var $ =Array.prototype.slice,j=n("./isArguments"),V=Object.keys,z=V?function(oe){return V(oe)}:n("./implementation"),re=Object.keys;z.shim=function(){if(Object.keys){var oe=function(){var ue=Object.keys(arguments);return ue&&ue.length===arguments.length}(1,2);oe||(Object.keys=function(de){return j(de)?re( $ .call(de)):re(de)})}else Object.keys=z;return Object.keys||z},k.exports=z},{"./implementation":436,"./isArguments":438}],438:[function(n,k,L){var $ =Object.prototype.toString;k.exports=function(V){var z= $ .call(V),re=z==="[object Arguments]";return re||(re=z!=="[object Array]"&&V!==null&&typeof V=="object"&&typeof V.length=="number"&&V.length>=0&& $ .call(V.callee)==="[object Function]"),re}},{}],439:[function(n,k,L){var $ =n("object-keys"),j=n("has-symbols/shams")(),V=n("call-bind/callBound"),z=Object,re=V("Array.prototype.push"),ie=V("Object.prototype.propertyIsEnumerable"),oe=j?Object.getOwnPropertySymbols:null;k.exports=function(de,pe){if(de==null)throw new TypeError("target must be an object");var Ie=z(de);if(arguments.length===1)return Ie;for(var _e=1;_e<arguments.length;++_e){var Ce=z(arguments[_e]),he= $ (Ce),Ne=j&&(Object.getOwnPropertySymbols||oe);if(Ne)for(var Fe=Ne(Ce),Ue=0;Ue<Fe.length;++Ue){var kt=Fe[Ue];ie(Ce,kt)&&re(he,kt)}for(var Et=0;Et<he.length;++Et){var Ve=he[Et];if(ie(Ce,Ve)){var qe=Ce[Ve];Ie[Ve]=qe}}}return Ie}},{"call-bind/callBound":105,"has-symbols/shams":397,"object-keys":437}],440:[function(n,k,L){var $ =n("./implementation"),j=function(){if(!Object.assign)return!1;for(var z="abcdefghijklmnopqrst",re=z.split(""),ie={},oe=0;oe<re.length;++oe)ie[re[oe]]=re[oe];var ue=Object.assign({},ie),de="";for(var pe in ue
` ||Tr===" \r "||Tr===" "}function jt(Tr){return Tr==='"'||Tr==="'"}function tr(Tr){return Tr===">"||qe(Tr)}function rr(Tr,Cr){return Tr.test(Cr)}function ar(Tr,Cr){return!rr(Tr,Cr)}var nr=0;j.STATE={BEGIN:nr++,BEGIN_WHITESPACE:nr++,TEXT:nr++,TEXT_ENTITY:nr++,OPEN_WAKA:nr++,SGML_DECL:nr++,SGML_DECL_QUOTED:nr++,DOCTYPE:nr++,DOCTYPE_QUOTED:nr++,DOCTYPE_DTD:nr++,DOCTYPE_DTD_QUOTED:nr++,COMMENT_STARTING:nr++,COMMENT:nr++,COMMENT_ENDING:nr++,COMMENT_ENDED:nr++,CDATA:nr++,CDATA_ENDING:nr++,CDATA_ENDING_2:nr++,PROC_INST:nr++,PROC_INST_BODY:nr++,PROC_INST_ENDING:nr++,OPEN_TAG:nr++,OPEN_TAG_SLASH:nr++,ATTRIB:nr++,ATTRIB_NAME:nr++,ATTRIB_NAME_SAW_WHITE:nr++,ATTRIB_VALUE:nr++,ATTRIB_VALUE_QUOTED:nr++,ATTRIB_VALUE_CLOSED:nr++,ATTRIB_VALUE_UNQUOTED:nr++,ATTRIB_VALUE_ENTITY_Q:nr++,ATTRIB_VALUE_ENTITY_U:nr++,CLOSE_TAG:nr++,CLOSE_TAG_SAW_WHITE:nr++,SCRIPT:nr++,SCRIPT_ENDING:nr++},j.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},j.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(j.ENTITIES).forEach(function(Tr){var Cr=j.ENTITIES[Tr],Br=typeof Cr=="number"?String.fromCharCode(Cr):Cr;j.ENTITIES[Tr]=Br});for(var ur in j.STATE)j.STATE[j.STATE[ur]]=ur;nr=j.STATE;function cr(Tr,Cr,Br){Tr[Cr]&&Tr[Cr](Br)}function _r(Tr,Cr,Br){Tr.textNode&&hr(Tr),cr(Tr,Cr,Br)}function hr(Tr){Tr.textNode=Er(Tr.opt,Tr.textNode),Tr.textNode&&cr(Tr,"ontext",Tr.textNode),Tr.textNode=""}function Er(Tr,Cr){return Tr.trim&&(Cr=Cr.trim()),Tr.normalize&&(Cr=Cr.replace(/ \s +/g," ")),Cr}function kr(Tr,Cr){return hr(Tr),Tr.trackPosition&&(Cr+= `
2024-08-22 19:23:55 +08:00
Line : ` +Tr.line+ `
Column : ` +Tr.column+ `
2024-08-24 19:24:09 +08:00
Char : ` +Tr.c),Cr=new Error(Cr),Tr.error=Cr,cr(Tr,"onerror",Cr),Tr}function xr(Tr){return Tr.sawRoot&&!Tr.closedRoot&&yr(Tr,"Unclosed root tag"),Tr.state!==nr.BEGIN&&Tr.state!==nr.BEGIN_WHITESPACE&&Tr.state!==nr.TEXT&&kr(Tr,"Unexpected end"),hr(Tr),Tr.c="",Tr.closed=!0,cr(Tr,"onend"),z.call(Tr,Tr.strict,Tr.opt),Tr}function yr(Tr,Cr){if(typeof Tr!="object"||!(Tr instanceof z))throw new Error("bad call to strictFail");Tr.strict&&kr(Tr,Cr)}function vr(Tr){Tr.strict||(Tr.tagName=Tr.tagName[Tr.looseCase]());var Cr=Tr.tags[Tr.tags.length-1]||Tr,Br=Tr.tag={name:Tr.tagName,attributes:{}};Tr.opt.xmlns&&(Br.ns=Cr.ns),Tr.attribList.length=0,_r(Tr,"onopentagstart",Br)}function Ir(Tr,Cr){var Br=Tr.indexOf(":"),br=Br<0?["",Tr]:Tr.split(":"),Sr=br[0],Dr=br[1];return Cr&&Tr==="xmlns"&&(Sr="xmlns",Dr=""),{prefix:Sr,local:Dr}}function Mr(Tr){if(Tr.strict||(Tr.attribName=Tr.attribName[Tr.looseCase]()),Tr.attribList.indexOf(Tr.attribName)!==-1||Tr.tag.attributes.hasOwnProperty(Tr.attribName)){Tr.attribName=Tr.attribValue="";return}if(Tr.opt.xmlns){var Cr=Ir(Tr.attribName,!0),Br=Cr.prefix,br=Cr.local;if(Br==="xmlns")if(br==="xml"&&Tr.attribValue!==he)yr(Tr,"xml: prefix must be bound to "+he+ `
2024-08-22 19:23:55 +08:00
Actual : ` +Tr.attribValue);else if(br==="xmlns"&&Tr.attribValue!==Ne)yr(Tr,"xmlns: prefix must be bound to "+Ne+ `
2024-08-24 19:24:09 +08:00
Actual : ` +Tr.attribValue);else{var Sr=Tr.tag,Dr=Tr.tags[Tr.tags.length-1]||Tr;Sr.ns===Dr.ns&&(Sr.ns=Object.create(Dr.ns)),Sr.ns[br]=Tr.attribValue}Tr.attribList.push([Tr.attribName,Tr.attribValue])}else Tr.tag.attributes[Tr.attribName]=Tr.attribValue,_r(Tr,"onattribute",{name:Tr.attribName,value:Tr.attribValue});Tr.attribName=Tr.attribValue=""}function mr(Tr,Cr){if(Tr.opt.xmlns){var Br=Tr.tag,br=Ir(Tr.tagName);Br.prefix=br.prefix,Br.local=br.local,Br.uri=Br.ns[br.prefix]||"",Br.prefix&&!Br.uri&&(yr(Tr,"Unbound namespace prefix: "+JSON.stringify(Tr.tagName)),Br.uri=br.prefix);var Sr=Tr.tags[Tr.tags.length-1]||Tr;Br.ns&&Sr.ns!==Br.ns&&Object.keys(Br.ns).forEach(function(Go){_r(Tr,"onopennamespace",{prefix:Go,uri:Br.ns[Go]})});for(var Dr=0,Rr=Tr.attribList.length;Dr<Rr;Dr++){var Wr=Tr.attribList[Dr],Kr=Wr[0],Nr=Wr[1],Fr=Ir(Kr,!0),Qr=Fr.prefix,ca=Fr.local,Po=Qr===""?"":Br.ns[Qr]||"",Wa={name:Kr,value:Nr,prefix:Qr,local:ca,uri:Po};Qr&&Qr!=="xmlns"&&!Po&&(yr(Tr,"Unbound namespace prefix: "+JSON.stringify(Qr)),Wa.uri=Qr),Tr.tag.attributes[Kr]=Wa,_r(Tr,"onattribute",Wa)}Tr.attribList.length=0}Tr.tag.isSelfClosing=!!Cr,Tr.sawRoot=!0,Tr.tags.push(Tr.tag),_r(Tr,"onopentag",Tr.tag),Cr||(!Tr.noscript&&Tr.tagName.toLowerCase()==="script"?Tr.state=nr.SCRIPT:Tr.state=nr.TEXT,Tr.tag=null,Tr.tagName=""),Tr.attribName=Tr.attribValue="",Tr.attribList.length=0}function gr(Tr){if(!Tr.tagName){yr(Tr,"Weird empty close tag."),Tr.textNode+="</>",Tr.state=nr.TEXT;return}if(Tr.script){if(Tr.tagName!=="script"){Tr.script+="</"+Tr.tagName+">",Tr.tagName="",Tr.state=nr.SCRIPT;return}_r(Tr,"onscript",Tr.script),Tr.script=""}var Cr=Tr.tags.length,Br=Tr.tagName;Tr.strict||(Br=Br[Tr.looseCase]());for(var br=Br;Cr--;){var Sr=Tr.tags[Cr];if(Sr.name!==br)yr(Tr,"Unexpected close tag");else break}if(Cr<0){yr(Tr,"Unmatched closing tag: "+Tr.tagName),Tr.textNode+="</"+Tr.tagName+">",Tr.state=nr.TEXT;return}Tr.tagName=Br;for(var Dr=Tr.tags.length;Dr-- >Cr;){var Rr=Tr.tag=Tr.tags.pop();Tr.tagName=Tr.tag.name,_r(Tr,"onclosetag",Tr.tagName);var Wr={};for(var Kr in Rr.ns)Wr[Kr]=Rr.ns[Kr];var Nr=Tr.tags[Tr.tags.length-1]||Tr;Tr.opt.xmlns&&Rr.ns!==Nr.ns&&Object.keys(Rr.ns).forEach(function(Fr){var Qr=Rr.ns[Fr];_r(Tr,"onclosenamespace",{prefix:Fr,uri:Qr})})}Cr===0&&(Tr.closedRoot=!0),Tr.tagName=Tr.attribValue=Tr.attribName="",Tr.attribList.length=0,Tr.state=nr.TEXT}function jr(Tr){var Cr=Tr.entity,Br=Cr.toLowerCase(),br,Sr="";return Tr.ENTITIES[Cr]?Tr.ENTITIES[Cr]:Tr.ENTITIES[Br]?Tr.ENTITIES[Br]:(Cr=Br,Cr.charAt(0)==="#"&&(Cr.charAt(1)==="x"?(Cr=Cr.slice(2),br=parseInt(Cr,16),Sr=br.toString(16)):(Cr=Cr.slice(1),br=parseInt(Cr,10),Sr=br.toString(10))),Cr=Cr.replace(/^0+/,""),isNaN(br)||Sr.toLowerCase()!==Cr?(yr(Tr,"Invalid character entity"),"&"+Tr.entity+";"):String.fromCodePoint(br))}function Hr(Tr,Cr){Cr==="<"?(Tr.state=nr.OPEN_WAKA,Tr.startTagPosition=Tr.position):qe(Cr)||(yr(Tr,"Non-whitespace before first tag."),Tr.textNode=Cr,Tr.state=nr.TEXT)}function Vr(Tr,Cr){var Br="";return Cr<Tr.length&&(Br=Tr.charAt(Cr)),Br}function zr(Tr){var Cr=this;if(this.error)throw this.error;if(Cr.closed)return kr(Cr,"Cannot write after close. Assign an onready handler.");if(Tr===null)return xr(Cr);typeof Tr=="object"&&(Tr=Tr.toString());for(var Br=0,br="";br=Vr(Tr,Br++),Cr.c=br,!!br;)switch(Cr.trackPosition&&(Cr.position++,br=== `
2024-08-22 19:23:55 +08:00
` ?(Cr.line++,Cr.column=0):Cr.column++),Cr.state){case nr.BEGIN:if(Cr.state=nr.BEGIN_WHITESPACE,br===" \u FEFF")continue;Hr(Cr,br);continue;case nr.BEGIN_WHITESPACE:Hr(Cr,br);continue;case nr.TEXT:if(Cr.sawRoot&&!Cr.closedRoot){for(var Sr=Br-1;br&&br!=="<"&&br!=="&";)br=Vr(Tr,Br++),br&&Cr.trackPosition&&(Cr.position++,br=== `
2024-08-24 19:24:09 +08:00
` ?(Cr.line++,Cr.column=0):Cr.column++);Cr.textNode+=Tr.substring(Sr,Br-1)}br==="<"&&!(Cr.sawRoot&&Cr.closedRoot&&!Cr.strict)?(Cr.state=nr.OPEN_WAKA,Cr.startTagPosition=Cr.position):(!qe(br)&&(!Cr.sawRoot||Cr.closedRoot)&&yr(Cr,"Text data outside of root node."),br==="&"?Cr.state=nr.TEXT_ENTITY:Cr.textNode+=br);continue;case nr.SCRIPT:br==="<"?Cr.state=nr.SCRIPT_ENDING:Cr.script+=br;continue;case nr.SCRIPT_ENDING:br==="/"?Cr.state=nr.CLOSE_TAG:(Cr.script+="<"+br,Cr.state=nr.SCRIPT);continue;case nr.OPEN_WAKA:if(br==="!")Cr.state=nr.SGML_DECL,Cr.sgmlDecl="";else if(!qe(br))if(rr(Ue,br))Cr.state=nr.OPEN_TAG,Cr.tagName=br;else if(br==="/")Cr.state=nr.CLOSE_TAG,Cr.tagName="";else if(br==="?")Cr.state=nr.PROC_INST,Cr.procInstName=Cr.procInstBody="";else{if(yr(Cr,"Unencoded <"),Cr.startTagPosition+1<Cr.position){var Dr=Cr.position-Cr.startTagPosition;br=new Array(Dr).join(" ")+br}Cr.textNode+="<"+br,Cr.state=nr.TEXT}continue;case nr.SGML_DECL:(Cr.sgmlDecl+br).toUpperCase()===_e?(_r(Cr,"onopencdata"),Cr.state=nr.CDATA,Cr.sgmlDecl="",Cr.cdata=""):Cr.sgmlDecl+br==="--"?(Cr.state=nr.COMMENT,Cr.comment="",Cr.sgmlDecl=""):(Cr.sgmlDecl+br).toUpperCase()===Ce?(Cr.state=nr.DOCTYPE,(Cr.doctype||Cr.sawRoot)&&yr(Cr,"Inappropriately located doctype declaration"),Cr.doctype="",Cr.sgmlDecl=""):br===">"?(_r(Cr,"onsgmldeclaration",Cr.sgmlDecl),Cr.sgmlDecl="",Cr.state=nr.TEXT):(jt(br)&&(Cr.state=nr.SGML_DECL_QUOTED),Cr.sgmlDecl+=br);continue;case nr.SGML_DECL_QUOTED:br===Cr.q&&(Cr.state=nr.SGML_DECL,Cr.q=""),Cr.sgmlDecl+=br;continue;case nr.DOCTYPE:br===">"?(Cr.state=nr.TEXT,_r(Cr,"ondoctype",Cr.doctype),Cr.doctype=!0):(Cr.doctype+=br,br==="["?Cr.state=nr.DOCTYPE_DTD:jt(br)&&(Cr.state=nr.DOCTYPE_QUOTED,Cr.q=br));continue;case nr.DOCTYPE_QUOTED:Cr.doctype+=br,br===Cr.q&&(Cr.q="",Cr.state=nr.DOCTYPE);continue;case nr.DOCTYPE_DTD:Cr.doctype+=br,br==="]"?Cr.state=nr.DOCTYPE:jt(br)&&(Cr.state=nr.DOCTYPE_DTD_QUOTED,Cr.q=br);continue;case nr.DOCTYPE_DTD_QUOTED:Cr.doctype+=br,br===Cr.q&&(Cr.state=nr.DOCTYPE_DTD,Cr.q="");continue;case nr.COMMENT:br==="-"?Cr.state=nr.COMMENT_ENDING:Cr.comment+=br;continue;case nr.COMMENT_ENDING:br==="-"?(Cr.state=nr.COMMENT_ENDED,Cr.comment=Er(Cr.opt,Cr.comment),Cr.comment&&_r(Cr,"oncomment",Cr.comment),Cr.comment=""):(Cr.comment+="-"+br,Cr.state=nr.COMMENT);continue;case nr.COMMENT_ENDED:br!==">"?(yr(Cr,"Malformed comment"),Cr.comment+="--"+br,Cr.state=nr.COMMENT):Cr.state=nr.TEXT;continue;case nr.CDATA:br==="]"?Cr.state=nr.CDATA_ENDING:Cr.cdata+=br;continue;case nr.CDATA_ENDING:br==="]"?Cr.state=nr.CDATA_ENDING_2:(Cr.cdata+="]"+br,Cr.state=nr.CDATA);continue;case nr.CDATA_ENDING_2:br===">"?(Cr.cdata&&_r(Cr,"oncdata",Cr.cdata),_r(Cr,"onclosecdata"),Cr.cdata="",Cr.state=nr.TEXT):br==="]"?Cr.cdata+="]":(Cr.cdata+="]]"+br,Cr.state=nr.CDATA);continue;case nr.PROC_INST:br==="?"?Cr.state=nr.PROC_INST_ENDING:qe(br)?Cr.state=nr.PROC_INST_BODY:Cr.procInstName+=br;continue;case nr.PROC_INST_BODY:if(!Cr.procInstBody&&qe(br))continue;br==="?"?Cr.state=nr.PROC_INST_ENDING:Cr.procInstBody+=br;continue;case nr.PROC_INST_ENDING:br===">"?(_r(Cr,"onprocessinginstruction",{name:Cr.procInstName,body:Cr.procInstBody}),Cr.procInstName=Cr.procInstBody="",Cr.state=nr.TEXT):(Cr.procInstBody+="?"+br,Cr.state=nr.PROC_INST_BODY);continue;case nr.OPEN_TAG:rr(kt,br)?Cr.tagName+=br:(vr(Cr),br===">"?mr(Cr):br==="/"?Cr.state=nr.OPEN_TAG_SLASH:(qe(br)||yr(Cr,"Invalid character in tag name"),Cr.state=nr.ATTRIB));continue;case nr.OPEN_TAG_SLASH:br===">"?(mr(Cr,!0),gr(Cr)):(yr(Cr,"Forward-slash in opening tag not followed by >"),Cr.state=nr.ATTRIB);continue;case nr.ATTRIB:if(qe(br))continue;br===">"?mr(Cr):br==="/"?Cr.state=nr.OPEN_TAG_SLASH:rr(Ue,br)?(Cr.attribName=br,Cr.attribValue="",Cr.state=nr.ATTRIB_NAME):yr(Cr,"Invalid attribute name");continue;case nr.ATTRIB_NAME:br==="="?Cr.state=nr.ATTRIB_VALUE:br===">"?(yr(Cr,"Attribute without value"),Cr.attribValue=Cr.attribName,Mr(Cr),mr(Cr)):qe(br)?Cr.state=nr.ATTRIB_NAME_SAW_WHITE:rr(kt,br)?Cr.attribName+=br:yr(Cr,"Invalid attribute name");continue;case nr.ATTRIB_NAME_SAW_WHITE:if(br==="=")Cr.state=nr.ATTRI
2024-08-22 19:23:55 +08:00
` )>-1&&(Tr?Br=Br.split( `
` ).map(function(Sr){return" "+Sr}).join( `
2024-08-21 13:12:53 +08:00
` ).slice(2):Br= `
` +Br.split( `
2024-08-22 19:23:55 +08:00
` ).map(function(Sr){return" "+Sr}).join( `
` ))):Br=gr.stylize("[Circular]","special")),rr(Cr)){if(Tr&&zr.match(/^ \d + $ /))return Br;Cr=JSON.stringify(""+zr),Cr.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)" $ /)?(Cr=Cr.slice(1,-1),Cr=gr.stylize(Cr,"name")):(Cr=Cr.replace(/'/g," \\ '").replace(/ \\ "/g,'"').replace(/(^"|" $ )/g,"'"),Cr=gr.stylize(Cr,"string"))}return Cr+": "+Br}function Fe(gr,jr,Hr){var Vr=gr.reduce(function(zr,Tr){return Tr.indexOf( `
` )>=0,zr+Tr.replace(/ \u 001b \[ \d \d ?m/g,"").length+1},0);return Vr>60?Hr[0]+(jr===""?"":jr+ `
2024-08-21 13:12:53 +08:00
` )+" "+gr.join( ` ,
2024-08-24 19:24:09 +08:00
` )+" "+Hr[1]:Hr[0]+jr+" "+gr.join(", ")+" "+Hr[1]}L.types=n("./support/types");function Ue(gr){return Array.isArray(gr)}L.isArray=Ue;function kt(gr){return typeof gr=="boolean"}L.isBoolean=kt;function Et(gr){return gr===null}L.isNull=Et;function Ve(gr){return gr==null}L.isNullOrUndefined=Ve;function qe(gr){return typeof gr=="number"}L.isNumber=qe;function jt(gr){return typeof gr=="string"}L.isString=jt;function tr(gr){return typeof gr=="symbol"}L.isSymbol=tr;function rr(gr){return gr===void 0}L.isUndefined=rr;function ar(gr){return nr(gr)&&Er(gr)==="[object RegExp]"}L.isRegExp=ar,L.types.isRegExp=ar;function nr(gr){return typeof gr=="object"&&gr!==null}L.isObject=nr;function ur(gr){return nr(gr)&&Er(gr)==="[object Date]"}L.isDate=ur,L.types.isDate=ur;function cr(gr){return nr(gr)&&(Er(gr)==="[object Error]"||gr instanceof Error)}L.isError=cr,L.types.isNativeError=cr;function _r(gr){return typeof gr=="function"}L.isFunction=_r;function hr(gr){return gr===null||typeof gr=="boolean"||typeof gr=="number"||typeof gr=="string"||typeof gr=="symbol"||typeof gr>"u"}L.isPrimitive=hr,L.isBuffer=n("./support/isBuffer");function Er(gr){return Object.prototype.toString.call(gr)}function kr(gr){return gr<10?"0"+gr.toString(10):gr.toString(10)}var xr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function yr(){var gr=new Date,jr=[kr(gr.getHours()),kr(gr.getMinutes()),kr(gr.getSeconds())].join(":");return[gr.getDate(),xr[gr.getMonth()],jr].join(" ")}L.log=function(){console.log("%s - %s",yr(),L.format.apply(L,arguments))},L.inherits=n("inherits"),L._extend=function(gr,jr){if(!jr||!nr(jr))return gr;for(var Hr=Object.keys(jr),Vr=Hr.length;Vr--;)gr[Hr[Vr]]=jr[Hr[Vr]];return gr};function vr(gr,jr){return Object.prototype.hasOwnProperty.call(gr,jr)}var Ir=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;L.promisify=function(jr){if(typeof jr!="function")throw new TypeError('The "original" argument must be of type Function');if(Ir&&jr[Ir]){var Hr=jr[Ir];if(typeof Hr!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Hr,Ir,{value:Hr,enumerable:!1,writable:!1,configurable:!0}),Hr}function Hr(){for(var Vr,zr,Tr=new Promise(function(br,Sr){Vr=br,zr=Sr}),Cr=[],Br=0;Br<arguments.length;Br++)Cr.push(arguments[Br]);Cr.push(function(br,Sr){br?zr(br):Vr(Sr)});try{jr.apply(this,Cr)}catch(br){zr(br)}return Tr}return Object.setPrototypeOf(Hr,Object.getPrototypeOf(jr)),Ir&&Object.defineProperty(Hr,Ir,{value:Hr,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Hr,j(jr))},L.promisify.custom=Ir;function Mr(gr,jr){if(!gr){var Hr=new Error("Promise was rejected with a falsy value");Hr.reason=gr,gr=Hr}return jr(gr)}function mr(gr){if(typeof gr!="function")throw new TypeError('The "original" argument must be of type Function');function jr(){for(var Hr=[],Vr=0;Vr<arguments.length;Vr++)Hr.push(arguments[Vr]);var zr=Hr.pop();if(typeof zr!="function")throw new TypeError("The last argument must be of type Function");var Tr=this,Cr=function(){return zr.apply(Tr,arguments)};gr.apply(this,Hr).then(function(Br){ $ .nextTick(Cr.bind(null,null,Br))},function(Br){ $ .nextTick(Mr.bind(null,Br,Cr))})}return Object.setPrototypeOf(jr,Object.getPrototypeOf(gr)),Object.defineProperties(jr,j(gr)),jr}L.callbackify=mr}).call(this)}).call(this,n("_process"))},{"./support/isBuffer":489,"./support/types":490,_process:540,inherits:409}],492:[function(n,k,L){(function( $ ){(function(){var j=n("for-each"),V=n("available-typed-arrays"),z=n("call-bind"),re=n("call-bind/callBound"),ie=n("gopd"),oe=re("Object.prototype.toString"),ue=n("has-tostringtag/shams")(),de=typeof globalThis>"u"? $ :globalThis,pe=V(),Ie=re("String.prototype.slice"),_e=Object.getPrototypeOf,Ce=re("Array.prototype.indexOf",!0)||function(kt,Et){for(var Ve=0;Ve<kt.length;Ve+=1)if(kt[Ve]===Et)return Ve;return-1},he={__proto__:null};ue&&ie&&_e?j(pe,function(Ue){var kt=new de[Ue];if(Symbol.toStringTag in kt){var Et=_e(kt),Ve=ie(Et,Symbol.toStringTag);if(!Ve){var qe=_e(Et);Ve=ie(qe,Symbol.toStringTag)}he[" $ "+
` },headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],496:[function(n,k,L){(function(){var $ ,j,V,z,re,ie,oe,ue,de,pe=function(Ce,he){return function(){return Ce.apply(he,arguments)}},Ie=function(Ce,he){for(var Ne in he)_e.call(he,Ne)&&(Ce[Ne]=he[Ne]);function Fe(){this.constructor=Ce}return Fe.prototype=he.prototype,Ce.prototype=new Fe,Ce.__super__=he.prototype,Ce},_e={}.hasOwnProperty;ue=n("sax"),z=n("events"), $ =n("./bom"),oe=n("./processors"),de=n("timers").setImmediate,j=n("./defaults").defaults,re=function(Ce){return typeof Ce=="object"&&Ce!=null&&Object.keys(Ce).length===0},ie=function(Ce,he,Ne){var Fe,Ue,kt;for(Fe=0,Ue=Ce.length;Fe<Ue;Fe++)kt=Ce[Fe],he=kt(he,Ne);return he},V=function(Ce,he,Ne){var Fe;return Fe=Object.create(null),Fe.value=Ne,Fe.writable=!0,Fe.enumerable=!0,Fe.configurable=!0,Object.defineProperty(Ce,he,Fe)},L.Parser=function(Ce){Ie(he,Ce);function he(Ne){this.parseStringPromise=pe(this.parseStringPromise,this),this.parseString=pe(this.parseString,this),this.reset=pe(this.reset,this),this.assignOrPush=pe(this.assignOrPush,this),this.processAsync=pe(this.processAsync,this);var Fe,Ue,kt;if(!(this instanceof L.Parser))return new L.Parser(Ne);this.options={},Ue=j["0.2"];for(Fe in Ue)_e.call(Ue,Fe)&&(kt=Ue[Fe],this.options[Fe]=kt);for(Fe in Ne)_e.call(Ne,Fe)&&(kt=Ne[Fe],this.options[Fe]=kt);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(oe.normalize)),this.reset()}return he.prototype.processAsync=function(){var Ne,Fe;try{return this.remaining.length<=this.options.chunkSize?(Ne=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(Ne),this.saxParser.close()):(Ne=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(Ne),de(this.processAsync))}catch(Ue){if(Fe=Ue,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(Fe)}},he.prototype.assignOrPush=function(Ne,Fe,Ue){return Fe in Ne?(Ne[Fe]instanceof Array||V(Ne,Fe,[Ne[Fe]]),Ne[Fe].push(Ue)):this.options.explicitArray?V(Ne,Fe,[Ue]):V(Ne,Fe,Ue)},he.prototype.reset=function(){var Ne,Fe,Ue,kt;return this.removeAllListeners(),this.saxParser=ue.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(Et){return function(Ve){if(Et.saxParser.resume(),!Et.saxParser.errThrown)return Et.saxParser.errThrown=!0,Et.emit("error",Ve)}}(this),this.saxParser.onend=function(Et){return function(){if(!Et.saxParser.ended)return Et.saxParser.ended=!0,Et.emit("end",Et.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,kt=[],Ne=this.options.attrkey,Fe=this.options.charkey,this.saxParser.onopentag=function(Et){return function(Ve){var qe,jt,tr,rr,ar;if(tr={},tr[Fe]="",!Et.options.ignoreAttrs){ar=Ve.attributes;for(qe in ar)_e.call(ar,qe)&&(!(Ne in tr)&&!Et.options.mergeAttrs&&(tr[Ne]={}),jt=Et.options.attrValueProcessors?ie(Et.options.attrValueProcessors,Ve.attributes[qe],qe):Ve.attributes[qe],rr=Et.options.attrNameProcessors?ie(Et.options.attrNameProcessors,qe):qe,Et.options.mergeAttrs?Et.assignOrPush(tr,rr,jt):V(tr[Ne],rr,jt))}return tr["#name"]=Et.options.tagNameProcessors?ie(Et.options.tagNameProcessors,Ve.name):Ve.name,Et.options.xmlns&&(tr[Et.options.xmlnskey]={uri:Ve.uri,local:Ve.local}),kt.push(tr)}}(this),this.saxParser.onclosetag=function(Et){return function(){var Ve,qe,jt,tr,rr,ar,nr,ur,cr,_r;if(ar=kt.pop(),rr=ar["#name"],(!Et.options.explicitChildren||!Et.options.preserveChildrenOrder)&&delete ar["#name"],ar.cdata===!0&&(Ve=ar.cdata,delete ar.cdata),cr=kt[kt.length-1],ar[Fe].match(/^ \s * $ /)&&!Ve?(qe=ar[Fe],delete ar[Fe]):(Et.options.trim&&(ar[Fe]=ar[Fe].trim()),Et.options.normalize&&(ar[Fe]=ar[Fe].replace(/ \s {2,}/g," ").trim()),ar[Fe]=Et.options.valueProcessors?ie(Et.options.valueProcessors,ar[Fe],rr):ar[Fe],Object
` ,oe.offset=(pe=ie.offset)!=null?pe:0,oe.dontPrettyTextNodes=(Ie=(_e=ie.dontPrettyTextNodes)!=null?_e:ie.dontprettytextnodes)!=null?Ie:0,oe.spaceBeforeSlash=(Ce=(he=ie.spaceBeforeSlash)!=null?he:ie.spacebeforeslash)!=null?Ce:"",oe.spaceBeforeSlash===!0&&(oe.spaceBeforeSlash=" "),oe.suppressPrettyCount=0,oe.user={},oe.state=j.None,oe},re.prototype.indent=function(ie,oe,ue){var de;return!oe.pretty||oe.suppressPrettyCount?"":oe.pretty&&(de=(ue||0)+oe.offset+1,de>0)?new Array(de).join(oe.indent):""},re.prototype.endline=function(ie,oe,ue){return!oe.pretty||oe.suppressPrettyCount?"":oe.newline},re.prototype.attribute=function(ie,oe,ue){var de;return this.openAttribute(ie,oe,ue),de=" "+ie.name+'="'+ie.value+'"',this.closeAttribute(ie,oe,ue),de},re.prototype.cdata=function(ie,oe,ue){var de;return this.openNode(ie,oe,ue),oe.state=j.OpenTag,de=this.indent(ie,oe,ue)+"<![CDATA[",oe.state=j.InsideTag,de+=ie.value,oe.state=j.CloseTag,de+="]]>"+this.endline(ie,oe,ue),oe.state=j.None,this.closeNode(ie,oe,ue),de},re.prototype.comment=function(ie,oe,ue){var de;return this.openNode(ie,oe,ue),oe.state=j.OpenTag,de=this.indent(ie,oe,ue)+"<!-- ",oe.state=j.InsideTag,de+=ie.value,oe.state=j.CloseTag,de+=" -->"+this.endline(ie,oe,ue),oe.state=j.None,this.closeNode(ie,oe,ue),de},re.prototype.declaration=function(ie,oe,ue){var de;return this.openNode(ie,oe,ue),oe.state=j.OpenTag,de=this.indent(ie,oe,ue)+"<?xml",oe.state=j.InsideTag,de+=' version="'+ie.version+'"',ie.encoding!=null&&(de+=' encoding="'+ie.encoding+'"'),ie.standalone!=null&&(de+=' standalone="'+ie.standalone+'"'),oe.state=j.CloseTag,de+=oe.spaceBeforeSlash+"?>",de+=this.endline(ie,oe,ue),oe.state=j.None,this.closeNode(ie,oe,ue),de},re.prototype.docType=function(ie,oe,ue){var de,pe,Ie,_e,Ce;if(ue||(ue=0),this.openNode(ie,oe,ue),oe.state=j.OpenTag,_e=this.indent(ie,oe,ue),_e+="<!DOCTYPE "+ie.root().name,ie.pubID&&ie.sysID?_e+=' PUBLIC "'+ie.pubID+'" "'+ie.sysID+'"':ie.sysID&&(_e+=' SYSTEM "'+ie.sysID+'"'),ie.children.length>0){for(_e+=" [",_e+=this.endline(ie,oe,ue),oe.state=j.InsideTag,Ce=ie.children,pe=0,Ie=Ce.length;pe<Ie;pe++)de=Ce[pe],_e+=this.writeChildNode(de,oe,ue+1);oe.state=j.CloseTag,_e+="]"}return oe.state=j.CloseTag,_e+=oe.spaceBeforeSlash+">",_e+=this.endline(ie,oe,ue),oe.state=j.None,this.closeNode(ie,oe,ue),_e},re.prototype.element=function(ie,oe,ue){var de,pe,Ie,_e,Ce,he,Ne,Fe,Ue,kt,Et,Ve,qe,jt;ue||(ue=0),kt=!1,Et="",this.openNode(ie,oe,ue),oe.state=j.OpenTag,Et+=this.indent(ie,oe,ue)+"<"+ie.name,Ve=ie.attribs;for(Ue in Ve)z.call(Ve,Ue)&&(de=Ve[Ue],Et+=this.attribute(de,oe,ue));if(Ie=ie.children.length,_e=Ie===0?null:ie.children[0],Ie===0||ie.children.every(function(tr){return(tr.type=== $ .Text||tr.type=== $ .Raw)&&tr.value===""}))oe.allowEmpty?(Et+=">",oe.state=j.CloseTag,Et+="</"+ie.name+">"+this.endline(ie,oe,ue)):(oe.state=j.CloseTag,Et+=oe.spaceBeforeSlash+"/>"+this.endline(ie,oe,ue));else if(oe.pretty&&Ie===1&&(_e.type=== $ .Text||_e.type=== $ .Raw)&&_e.value!=null)Et+=">",oe.state=j.InsideTag,oe.suppressPrettyCount++,kt=!0,Et+=this.writeChildNode(_e,oe,ue+1),oe.suppressPrettyCount--,kt=!1,oe.state=j.CloseTag,Et+="</"+ie.name+">"+this.endline(ie,oe,ue);else{if(oe.dontPrettyTextNodes){for(qe=ie.children,Ce=0,Ne=qe.length;Ce<Ne;Ce++)if(pe=qe[Ce],(pe.type=== $ .Text||pe.type=== $ .Raw)&&pe.value!=null){oe.suppressPrettyCount++,kt=!0;break}}for(Et+=">"+this.endline(ie,oe,ue),oe.state=j.InsideTag,jt=ie.children,he=0,Fe=jt.length;he<Fe;he++)pe=jt[he],Et+=this.writeChildNode(pe,oe,ue+1);oe.state=j.CloseTag,Et+=this.indent(ie,oe,ue)+"</"+ie.name+">",kt&&oe.suppressPrettyCount--,Et+=this.endline(ie,oe,ue),oe.state=j.None}return this.closeNode(ie,oe,ue),Et},re.prototype.writeChildNode=function(ie,oe,ue){switch(ie.type){case $ .CData:return this.cdata(ie,oe,ue);case $ .Comment:return this.comment(ie,oe,ue);case $ .Element:return this.element(ie,oe,ue);case $ .Raw:return this.raw(ie,oe,ue);case $ .Text:return this.text(ie,oe,ue);case $ .ProcessingInstruction:return this.processingInstruction(ie,oe,ue);case $ .Dummy:return"";case $ .Declaration:return this.declaration(ie,oe,ue);case $ .DocTyp
` ))}L.createHash=function(Ie){return de(Ie)},L.createHmac=function(Ie,_e){return de(Ie,_e)},L.createCredentials=function(){pe("sorry,createCredentials is not implemented yet")},L.createCipher=function(){pe("sorry,createCipher is not implemented yet")},L.createCipheriv=function(){pe("sorry,createCipheriv is not implemented yet")},L.createDecipher=function(){pe("sorry,createDecipher is not implemented yet")},L.createDecipheriv=function(){pe("sorry,createDecipheriv is not implemented yet")},L.createSign=function(){pe("sorry,createSign is not implemented yet")},L.createVerify=function(){pe("sorry,createVerify is not implemented yet")},L.createDiffieHellman=function(){pe("sorry,createDiffieHellman is not implemented yet")},L.pbkdf2=function(){pe("sorry,pbkdf2 is not implemented yet")}},{"./md5":535,"./sha":536,"./sha256":537,buffer:103,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.fill.js":311,"core-js/modules/es.array.join.js":317,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.object.to-string.js":331,"core-js/modules/es.regexp.to-string.js":341}],534:[function(n,k,L){n("core-js/modules/es.array.fill.js"),n("core-js/modules/es.array.concat.js");var $ =n("buffer").Buffer,j=4,V= $ .alloc(j);V.fill(0);var z=8;function re(ue,de){if(ue.length%j!==0){var pe=ue.length+(j-ue.length%j);ue= $ .concat([ue,V],pe)}for(var Ie=[],_e=de?ue.readInt32BE:ue.readInt32LE,Ce=0;Ce<ue.length;Ce+=j)Ie.push(_e.call(ue,Ce));return Ie}function ie(ue,de,pe){for(var Ie= $ .alloc(de),_e=pe?Ie.writeInt32BE:Ie.writeInt32LE,Ce=0;Ce<ue.length;Ce++)_e.call(Ie,ue[Ce],Ce*4,!0);return Ie}function oe(ue,de,pe,Ie){ $ .isBuffer(ue)||(ue= $ .from(ue));var _e=de(re(ue,Ie),ue.length*z);return ie(_e,pe,Ie)}k.exports={hash:oe}},{buffer:103,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.fill.js":311}],535:[function(n,k,L){var $ =n("./helpers");function j(pe,Ie){pe[Ie>>5]|=128<<Ie%32,pe[(Ie+64>>>9<<4)+14]=Ie;for(var _e=1732584193,Ce=-271733879,he=-1732584194,Ne=271733878,Fe=0;Fe<pe.length;Fe+=16){var Ue=_e,kt=Ce,Et=he,Ve=Ne;_e=z(_e,Ce,he,Ne,pe[Fe+0],7,-680876936),Ne=z(Ne,_e,Ce,he,pe[Fe+1],12,-389564586),he=z(he,Ne,_e,Ce,pe[Fe+2],17,606105819),Ce=z(Ce,he,Ne,_e,pe[Fe+3],22,-1044525330),_e=z(_e,Ce,he,Ne,pe[Fe+4],7,-176418897),Ne=z(Ne,_e,Ce,he,pe[Fe+5],12,1200080426),he=z(he,Ne,_e,Ce,pe[Fe+6],17,-1473231341),Ce=z(Ce,he,Ne,_e,pe[Fe+7],22,-45705983),_e=z(_e,Ce,he,Ne,pe[Fe+8],7,1770035416),Ne=z(Ne,_e,Ce,he,pe[Fe+9],12,-1958414417),he=z(he,Ne,_e,Ce,pe[Fe+10],17,-42063),Ce=z(Ce,he,Ne,_e,pe[Fe+11],22,-1990404162),_e=z(_e,Ce,he,Ne,pe[Fe+12],7,1804603682),Ne=z(Ne,_e,Ce,he,pe[Fe+13],12,-40341101),he=z(he,Ne,_e,Ce,pe[Fe+14],17,-1502002290),Ce=z(Ce,he,Ne,_e,pe[Fe+15],22,1236535329),_e=re(_e,Ce,he,Ne,pe[Fe+1],5,-165796510),Ne=re(Ne,_e,Ce,he,pe[Fe+6],9,-1069501632),he=re(he,Ne,_e,Ce,pe[Fe+11],14,643717713),Ce=re(Ce,he,Ne,_e,pe[Fe+0],20,-373897302),_e=re(_e,Ce,he,Ne,pe[Fe+5],5,-701558691),Ne=re(Ne,_e,Ce,he,pe[Fe+10],9,38016083),he=re(he,Ne,_e,Ce,pe[Fe+15],14,-660478335),Ce=re(Ce,he,Ne,_e,pe[Fe+4],20,-405537848),_e=re(_e,Ce,he,Ne,pe[Fe+9],5,568446438),Ne=re(Ne,_e,Ce,he,pe[Fe+14],9,-1019803690),he=re(he,Ne,_e,Ce,pe[Fe+3],14,-187363961),Ce=re(Ce,he,Ne,_e,pe[Fe+8],20,1163531501),_e=re(_e,Ce,he,Ne,pe[Fe+13],5,-1444681467),Ne=re(Ne,_e,Ce,he,pe[Fe+2],9,-51403784),he=re(he,Ne,_e,Ce,pe[Fe+7],14,1735328473),Ce=re(Ce,he,Ne,_e,pe[Fe+12],20,-1926607734),_e=ie(_e,Ce,he,Ne,pe[Fe+5],4,-378558),Ne=ie(Ne,_e,Ce,he,pe[Fe+8],11,-2022574463),he=ie(he,Ne,_e,Ce,pe[Fe+11],16,1839030562),Ce=ie(Ce,he,Ne,_e,pe[Fe+14],23,-35309556),_e=ie(_e,Ce,he,Ne,pe[Fe+1],4,-1530992060),Ne=ie(Ne,_e,Ce,he,pe[Fe+4],11,1272893353),he=ie(he,Ne,_e,Ce,pe[Fe+7],16,-155497632),Ce=ie(Ce,he,Ne,_e,pe[Fe+10],23,-1094730640),_e=ie(_e,Ce,he,Ne,pe[Fe+13],4,681279174),Ne=ie(Ne,_e,Ce,he,pe[Fe+0],11,-358537222),he=ie(he,Ne,_e,Ce,pe[Fe+3],16,-722521979),Ce=ie(Ce,he,Ne,_e,pe[Fe+6],23,76029189),_e=ie(_e,Ce,he,Ne,pe[Fe+9],4,-640364487),Ne=ie(Ne,_e,Ce,he,pe[Fe+12],11,-421815835),he=ie(he,Ne,_e,Ce,pe[Fe+15],16,530742520),Ce=ie(Ce,he,Ne,_e,pe[Fe+2],23,-995338651),_e=oe(_e,Ce,he,Ne,pe[Fe+0],6,-198630844),Ne=oe(Ne,_e
` ," "],pe=["{","}","|"," \\ ","^"," ` "].concat(de),Ie=[" '"].concat(pe),_e=["%","/","?",";","#"].concat(Ie),Ce=["/","?","#"],he=255,Ne=/^[+a-z0-9A-Z_-]{0,63}$/,Fe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ue={javascript:!0,"javascript:":!0},kt={javascript:!0,"javascript:":!0},Et={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ve=n("querystring");function qe(ar,nr,ur){if(ar&&z.isObject(ar)&&ar instanceof re)return ar;var cr=new re;return cr.parse(ar,nr,ur),cr}re.prototype.parse=function(ar,nr,ur){if(!z.isString(ar))throw new TypeError("Parameter ' url ' must be a string , not "+(0,j.default)(ar));var cr=ar.indexOf(" ? "),_r=cr!==-1&&cr<ar.indexOf(" # ")?" ? ":" # ",hr=ar.split(_r),Er=/\\/g;hr[0]=hr[0].replace(Er," / "),ar=hr.join(_r);var kr=ar;if(kr=kr.trim(),!ur&&ar.split(" # ").length===1){var xr=ue.exec(kr);if(xr)return this.path=kr,this.href=kr,this.pathname=xr[1],xr[2]?(this.search=xr[2],nr?this.query=Ve.parse(this.search.substr(1)):this.query=this.search.substr(1)):nr&&(this.search=" ",this.query={}),this}var yr=ie.exec(kr);if(yr){yr=yr[0];var vr=yr.toLowerCase();this.protocol=vr,kr=kr.substr(yr.length)}if(ur||yr||kr.match(/^\/\/[^@\/]+@[^@\/]+/)){var Ir=kr.substr(0,2)===" //";Ir&&!(yr&&kt[yr])&&(kr=kr.substr(2),this.slashes=!0)}if(!kt[yr]&&(Ir||yr&&!Et[yr])){for(var Mr=-1,mr=0;mr<Ce.length;mr++){var gr=kr.indexOf(Ce[mr]);gr!==-1&&(Mr===-1||gr<Mr)&&(Mr=gr)}var jr,Hr;Mr===-1?Hr=kr.lastIndexOf("@"):Hr=kr.lastIndexOf("@",Mr),Hr!==-1&&(jr=kr.slice(0,Hr),kr=kr.slice(Hr+1),this.auth=decodeURIComponent(jr)),Mr=-1;for(var mr=0;mr<_e.length;mr++){var gr=kr.indexOf(_e[mr]);gr!==-1&&(Mr===-1||gr<Mr)&&(Mr=gr)}Mr===-1&&(Mr=kr.length),this.host=kr.slice(0,Mr),kr=kr.slice(Mr),this.parseHost(),this.hostname=this.hostname||"";var Vr=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Vr)for(var zr=this.hostname.split("."),mr=0,Tr=zr.length;mr<Tr;mr++){var Cr=zr[mr];if(Cr&&!Cr.match(Ne)){for(var Br="",br=0,Sr=Cr.length;br<Sr;br++)Cr.charCodeAt(br)>127?Br+="x":Br+=Cr[br];if(!Br.match(Ne)){var Dr=zr.slice(0,mr),Rr=zr.slice(mr+1),Wr=Cr.match(Fe);Wr&&(Dr.push(Wr[1]),Rr.unshift(Wr[2])),Rr.length&&(kr="/"+Rr.join(".")+kr),this.hostname=Dr.join(".");break}}}this.hostname.length>he?this.hostname="":this.hostname=this.hostname.toLowerCase(),Vr||(this.hostname=V.toASCII(this.hostname));var Kr=this.port?":"+this.port:"",Nr=this.hostname||"";this.host=Nr+Kr,this.href+=this.host,Vr&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),kr[0]!=="/"&&(kr="/"+kr))}if(!Ue[vr])for(var mr=0,Tr=Ie.length;mr<Tr;mr++){var Fr=Ie[mr];if(kr.indexOf(Fr)!==-1){var Qr=encodeURIComponent(Fr);Qr===Fr&&(Qr=escape(Fr)),kr=kr.split(Fr).join(Qr)}}var ca=kr.indexOf("#");ca!==-1&&(this.hash=kr.substr(ca),kr=kr.slice(0,ca));var Po=kr.indexOf("?");if(Po!==-1?(this.search=kr.substr(Po),this.query=kr.substr(Po+1),nr&&(this.query=Ve.parse(this.query)),kr=kr.slice(0,Po)):nr&&(this.search="",this.query={}),kr&&(this.pathname=kr),Et[vr]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Kr=this.pathname||"",Wa=this.search||"";this.path=Kr+Wa}return this.href=this.format(),this};function jt(ar){return z.isString(ar)&&(ar=qe(ar)),ar instanceof re?ar.format():re.prototype.format.call(ar)}re.prototype.format=function(){var ar=this.auth||"";ar&&(ar=encodeURIComponent(ar),ar=ar.replace(/%3A/i,":"),ar+="@");var nr=this.protocol||"",ur=this.pathname||"",cr=this.hash||"",_r=!1,hr="";this.host?_r=ar+this.host:this.hostname&&(_r=ar+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(_r+=":"+this.port)),this.query&&z.isObject(this.query)&&Object.keys(this.query).length&&(hr=Ve.stringify(this.query));var Er=this.search||hr&&"?"+hr||"";return nr&&nr.substr(-1)!==":"&&(nr+=":"),this.slashes||(!nr||Et[nr])&&_r!==!1?(_r="//"+(_r||""),ur&&ur.charAt(0)!=="/"&&(ur="/"+ur)):_r||(_r=""),cr&&cr.charAt(0)!=="#"&&(cr="#"+cr),Er&&Er.charAt(0)!=="?"&&(Er="?"+Er),ur=ur.replace(/[?#]/g,function(kr){return encodeURIComponent(kr)}),Er=Er.replace("#","%23"),nr+_r+ur+Er+cr};function tr(ar,nr){retur
stack : % s ` ,Date(),tr, $ .pid,Ar.name,Ar.message,Ar.stack);return}var Sa=qe;qe=null;var sa={};In&&(Cr=In.statusCode,sa=In.headers);var qa=Date.now()-ar;Dr&&(Dr.contentDownload=qa),de("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",qa,Tr,Cr,kr.method,kr.host,kr.path,zr,Dr);var To={status:Cr,statusCode:Cr,headers:sa,size:Tr,aborted:Br,rt:qa,keepAliveSocket:zr,data:On,requestUrls:Ve.requestUrls,timing:Dr,remoteAddress:br,remotePort:Sr};if(Ar){var Hi="";hr&&typeof hr.getCurrentStatus=="function"&&(Hi=", agent status: "+JSON.stringify(hr.getCurrentStatus())),Ar.message+=", "+kr.method+" "+Et+" "+Cr+" (connected: "+Vr+", keepalive socket: "+zr+Hi+ ` )
2024-08-25 08:49:45 +08:00
headers : ` +JSON.stringify(sa),Ar.data=On,Ar.path=kr.path,Ar.status=Cr,Ar.headers=sa,Ar.res=To}Sa(Ar,On,Ve.streaming?In:To),Ve.emitter&&(rr.url=Et,rr.socket=Kn&&Kn.connection,rr.options=kr,rr.size=Mr,Ve.emitter.emit("response",{requestId:tr,error:Ar,ctx:Ve.ctx,req:rr,res:To}))}function Nr(Ar){var On=null;if(Ve.followRedirect&&statuses.redirect[Ar.statusCode]){Ve._followRedirectCount=(Ve._followRedirectCount||0)+1;var In=Ar.headers.location;if(!In)On=new Error("Got statusCode "+Ar.statusCode+" but cannot resolve next location from headers"),On.name="FollowRedirectError";else if(Ve._followRedirectCount>Ve.maxRedirects)On=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Et),On.name="MaxRedirectError";else{var Sa=Ve.formatRedirectUrl?Ve.formatRedirectUrl(Et,In):ie.resolve(Et,In);de("Request#%d %s: ` redirected ` from %s to %s",tr,kr.path,Et,Sa),Wr(),Ve.headers&&Ve.headers.Host&&Ce.test(In)&&(Ve.headers.Host=null);var sa=qe;return qe=null,L.requestWithCallback(Sa,Ve,sa),{redirect:!0,error:null}}}return{redirect:!1,error:On}}Ve.gzip&&!kr.headers["Accept-Encoding"]&&!kr.headers["accept-encoding"]&&(kr.headers["Accept-Encoding"]="gzip");function Fr(Ar,On,In){var Sa=Ar.headers["content-encoding"];return In(null,On,Sa)}var Qr=Ve.writeStream;de("Request#%d %s %s with headers %j, options.path: %s",tr,ur,Et,kr.headers,kr.path),Ve.requestUrls.push(Et);function ca(Ar){if(Dr&&(Dr.waiting=Date.now()-ar),de("Request#%d %s ` req response ` event emit: status %d, headers: %j",tr,Et,Ar.statusCode,Ar.headers),Ve.streaming){var On=Nr(Ar);if(On.redirect){Ar.resume();return}return On.error?(Ar.resume(),Kr(On.error,null,Ar)):Kr(null,null,Ar)}if(Ar.on("close",function(){de("Request#%d %s: ` res close ` event emit, total size %d",tr,Et,Tr)}),Ar.on("error",function(){de("Request#%d %s: ` res error ` event emit, total size %d",tr,Et,Tr)}),Ar.on("aborted",function(){Br=!0,de("Request#%d %s: ` res aborted ` event emit, total size %d",tr,Et,Tr)}),Qr){var In=Nr(Ar);if(In.redirect){Ar.resume();return}return In.error?(Ar.resume(),Qr.end(),Kr(In.error,null,Ar)):(Ve.consumeWriteStream===!1?Ar.on("end",Kr.bind(null,null,null,Ar)):Qr.on("close",function(){de("Request#%d %s: writeStream close event emitted",tr,Et),Kr(Hr||null,null,Ar)}),Ar.pipe(Qr))}var Sa=[];Ar.on("data",function(sa){de("Request#%d %s: ` res data ` event emit, size %d",tr,Et,sa.length),Tr+=sa.length,Sa.push(sa)}),Ar.on("end",function(){var sa=j.concat(Sa,Tr);if(de("Request#%d %s: ` res end ` event emit, total size %d, _dumped: %s",tr,Et,Tr,Ar._dumped),Hr)return Kr(Hr,sa,Ar);var qa=Nr(Ar);if(qa.error)return Kr(qa.error,sa,Ar);qa.redirect||Fr(Ar,sa,function(To,Hi,na){if(To)return Kr(To,sa,Ar);if(!na&&Ue.indexOf(Ve.dataType)>=0){try{Hi=decodeBodyByCharset(Hi,Ar)}catch(Ns){return de("decodeBodyByCharset error: %s",Ns),Kr(null,Hi,Ar)}if(Ve.dataType==="json")if(Tr===0)Hi=null;else{var Ma=parseJSON(Hi,Er);Ma.error?To=Ma.error:Hi=Ma.data}}Br&&de("Request#%d %s: Remote socket was terminated before ` response . end ( ) ` was called",tr,Et),Kr(To,Hi,Ar)})})}var Po,Wa;Array.isArray(Ve.timeout)?(Po=pe(Ve.timeout[0]),Wa=pe(Ve.timeout[1])):Po=Wa=pe(Ve.timeout),de("ConnectTimeout: %d, ResponseTimeout: %d",Po,Wa);function Go(){de("Connect timer ticking, timeout: %d",Po),gr=setTimeout(function(){gr=null,Cr===-1&&(Cr=-2);var Ar="Connect timeout for "+Po+"ms",On="ConnectionTimeoutError";Kn.socket||(On="SocketAssignTimeoutError",Ar+=", working sockets is full"),Hr=new Error(Ar),Hr.name=On,Hr.requestId=tr,de("ConnectTimeout: Request#%d %s %s: %s, connected: %s",tr,Et,Hr.name,Ar,Vr),Gr()},Po)}function us(){de("Response timer ticking, timeout: %d",Wa),jr=setTimeout(function(){jr=null;var Ar="Response timeout for "+Wa+"ms",On="ResponseTimeoutError";Hr=new Error(Ar),Hr.name=On,Hr.requestId=tr,de("ResponseTimeout: Request#%d %s %s: %s, connected: %s",tr,Et,Hr.name,Ar,Vr),Gr()},Wa)}var Kn;kr.mode=Ve.mode?Ve.mode:"";try{Kn=_r.request(kr,ca)}catch(Ar){return Kr(Ar)}typeof window>"u"?Go():Kn.on("requestTimeout",function(){Cr===-1&&(Cr=-2);var Ar="Connect timeout for "+Po+"ms",On="ConnectionTimeoutError";Hr=new Error(Ar),Hr
2024-08-21 13:12:53 +08:00
* The buffer module from node . js , for the browser .
*
* @ author Feross Aboukhadijeh < https : //feross.org>
* @ license MIT
2024-08-25 08:49:45 +08:00
* / ( f u n c t i o n ( e ) { v a r t = b a s e 6 4 J s , y = i e e e 7 5 4 , n = t y p e o f S y m b o l = = " f u n c t i o n " & & t y p e o f S y m b o l . f o r = = " f u n c t i o n " ? S y m b o l . f o r ( " n o d e j s . u t i l . i n s p e c t . c u s t o m " ) : n u l l ; e . B u f f e r = j , e . S l o w B u f f e r = C e , e . I N S P E C T _ M A X _ B Y T E S = 5 0 ; v a r k = 2 1 4 7 4 8 3 6 4 7 ; e . k M a x L e n g t h = k , j . T Y P E D _ A R R A Y _ S U P P O R T = L ( ) , ! j . T Y P E D _ A R R A Y _ S U P P O R T & & t y p e o f c o n s o l e < " u " & & t y p e o f c o n s o l e . e r r o r = = " f u n c t i o n " & & c o n s o l e . e r r o r ( " T h i s b r o w s e r l a c k s t y p e d a r r a y ( U i n t 8 A r r a y ) s u p p o r t w h i c h i s r e q u i r e d b y ` b u f f e r ` v 5 . x . U s e ` b u f f e r ` v 4 . x i f y o u r e q u i r e o l d b r o w s e r s u p p o r t . " ) ; f u n c t i o n L ( ) { t r y { v a r b r = n e w U i n t 8 A r r a y ( 1 ) , S r = { f o o : f u n c t i o n ( ) { r e t u r n 4 2 } } ; r e t u r n O b j e c t . s e t P r o t o t y p e O f ( S r , U i n t 8 A r r a y . p r o t o t y p e ) , O b j e c t . s e t P r o t o t y p e O f ( b r , S r ) , b r . f o o ( ) = = = 4 2 } c a t c h { r e t u r n ! 1 } } O b j e c t . d e f i n e P r o p e r t y ( j . p r o t o t y p e , " p a r e n t " , { e n u m e r a b l e : ! 0 , g e t : f u n c t i o n ( ) { i f ( j . i s B u f f e r ( t h i s ) ) r e t u r n t h i s . b u f f e r } } ) , O b j e c t . d e f i n e P r o p e r t y ( j . p r o t o t y p e , " o f f s e t " , { e n u m e r a b l e : ! 0 , g e t : f u n c t i o n ( ) { i f ( j . i s B u f f e r ( t h i s ) ) r e t u r n t h i s . b y t e O f f s e t } } ) ; f u n c t i o n $ ( b r ) { i f ( b r > k ) t h r o w n e w R a n g e E r r o r ( ' T h e v a l u e " ' + b r + ' " i s i n v a l i d f o r o p t i o n " s i z e " ' ) ; v a r S r = n e w U i n t 8 A r r a y ( b r ) ; r e t u r n O b j e c t . s e t P r o t o t y p e O f ( S r , j . p r o t o t y p e ) , S r } f u n c t i o n j ( b r , S r , D r ) { i f ( t y p e o f b r = = " n u m b e r " ) { i f ( t y p e o f S r = = " s t r i n g " ) t h r o w n e w T y p e E r r o r ( ' T h e " s t r i n g " a r g u m e n t m u s t b e o f t y p e s t r i n g . R e c e i v e d t y p e n u m b e r ' ) ; r e t u r n i e ( b r ) } r e t u r n V ( b r , S r , D r ) } j . p o o l S i z e = 8 1 9 2 ; f u n c t i o n V ( b r , S r , D r ) { i f ( t y p e o f b r = = " s t r i n g " ) r e t u r n o e ( b r , S r ) ; i f ( A r r a y B u f f e r . i s V i e w ( b r ) ) r e t u r n d e ( b r ) ; i f ( b r = = n u l l ) t h r o w n e w T y p e E r r o r ( " T h e f i r s t a r g u m e n t m u s t b e o n e o f t y p e s t r i n g , B u f f e r , A r r a y B u f f e r , A r r a y , o r A r r a y - l i k e O b j e c t . R e c e i v e d t y p e " + t y p e o f b r ) ; i f ( T r ( b r , A r r a y B u f f e r ) | | b r & & T r ( b r . b u f f e r , A r r a y B u f f e r ) | | t y p e o f S h a r e d A r r a y B u f f e r < " u " & & ( T r ( b r , S h a r e d A r r a y B u f f e r ) | | b r & & T r ( b r . b u f f e r , S h a r e d A r r a y B u f f e r ) ) ) r e t u r n p e ( b r , S r , D r ) ; i f ( t y p e o f b r = = " n u m b e r " ) t h r o w n e w T y p e E r r o r ( ' T h e " v a l u e " a r g u m e n t m u s t n o t b e o f t y p e n u m b e r . R e c e i v e d t y p e n u m b e r ' ) ; v a r R r = b r . v a l u e O f & & b r . v a l u e O f ( ) ; i f ( R r ! = n u l l & & R r ! = = b r ) r e t u r n j . f r o m ( R r , S r , D r ) ; v a r W r = I e ( b r ) ; i f ( W r ) r e t u r n W r ; i f ( t y p e o f S y m b o l < " u " & & S y m b o l . t o P r i m i t i v e ! = n u l l & & t y p e o f b r [ S y m b o l . t o P r i m i t i v e ] = = " f u n c t i o n " ) r e t u r n j . f r o m ( b r [ S y m b o l . t o P r i m i t i v e ] ( " s t r i n g " ) , S r , D r ) ; t h r o w n e w T y p e E r r o r ( " T h e f i r s t a r g u m e n t m u s t b e o n e o f t y p e s t r i n g , B u f f e r , A r r a y B u f f e r , A r r a y , o r A r r a y - l i k e O b j e c t . R e c e i v e d t y p e " + t y p e o f b r ) } j . f r o m = f u n c t i o n ( b r , S r , D r ) { r e t u r n V ( b r , S r , D r ) } , O b j e c t . s e t P r o t o t y p e O f ( j . p r o t o t y p e , U i n t 8 A r r a y . p r o t o t y p e ) , O b j e c t . s e t P r o t o t y p e O f ( j , U i n t 8 A r r a y ) ; f u n c t i o n z ( b r ) { i f ( t y p e o f b r ! = " n u m b e r " ) t h r o w n e w T y p e E r r o r ( ' " s i z e " a r g u m e n t m u s t b e o f t y p e n u m b e r ' ) ; i f ( b r < 0 ) t h r o w n e w R a n g e E r r o r ( ' T h e v a l u e " ' + b r + ' " i s i n v a l i d f o r o p t i o n " s i z e " ' ) } f u n c t i o n r e ( b r , S r , D r ) { r e t u r n z ( b r ) , b r < = 0 ? $ ( b r ) : S r ! = = v o i d 0 ? t y p e o f D r = = " s t r i n g " ? $ ( b r ) . f i l l ( S r , D r ) : $ ( b r ) . f i l l ( S r ) : $ ( b r ) } j . a l l o c = f u n c t i o n ( b r , S r , D r ) { r e t u r n r e ( b r , S r , D r ) } ; f u n c t i o n i e ( b r ) { r e t u r n z ( b r ) , $ ( b r < 0 ? 0 : _ e ( b r ) | 0 ) } j . a l l o c U n s a f e = f u n c t i o n ( b r ) { r e t u r n i e ( b r ) } , j . a l l o c U n s a f e S l o w = f u n c t i o n ( b r ) { r e t u r n i e ( b r ) } ; f u n c t i o n o e ( b r , S r ) { i f ( ( t y p e o f S r ! = " s t r i n g " | | S r = = = " " ) & & ( S r = " u t f 8 " ) , ! j . i s E n c o d i n g ( S r ) ) t h r o w n e w T y p e E r r o r ( " U n k n o w n e n c o d i n g : " + S r ) ; v a r D r = h e ( b r , S r ) | 0 , R r = $ ( D r ) , W r = R r . w r i t e ( b r , S r ) ; r e t u r n W r ! = = D r & & ( R r = R r . s l i c e ( 0 , W r ) ) , R r } f u n c t i o n u e ( b r ) { f o r ( v a r S r = b r . l e n g t h < 0 ? 0 : _ e ( b r . l e n g t h ) | 0 , D r = $ ( S r ) , R r = 0 ; R r < S r ; R r + = 1 ) D r [ R r ] = b r [ R r ] & 2 5 5 ; r e t u r n D r } f u n c t i o n d e ( b r ) { i f ( T r ( b r , U i n t 8 A r r a y ) ) { v a r S r = n e w U i n t 8 A r r a y ( b r ) ; r e t u r n p e ( S r . b u f f e r , S r . b y t e O f f s e t , S r . b y t e L e n g t h ) } r e t u r n u e ( b r ) } f u n c t i o n p e ( b r , S r , D r ) { i f ( S r < 0 | | b r . b y t e L e n g t h < S r ) t h r o w n e w R a n g e E r r o r ( ' " o f f s e t " i s o u t s i d e o f b u f f e r b o u n d s ' ) ; i f ( b r . b y t e L e n g t h < S r + ( D r | | 0 ) ) t h r o w n e w R a n g e E r r o r ( ' " l e n g t h " i s o u t s i d e o f b u f f e r b o u n d s ' ) ; v a r R r ; r e t u r n S r = = = v o i d 0 & & D r = = = v o i d 0 ? R r = n e w U i n t 8 A r r a y ( b r ) : D r = = = v o i d 0 ? R r = n e w U i n t 8 A r r a y ( b r , S r ) : R r = n e w U i n t 8 A r r a y ( b r , S r , D r ) , O b j e c t . s e t P r o t o t y p e O f ( R r , j . p r o t o t y p e ) , R r } f u n c t i o n I e ( b r ) { i f ( j . i s B u f f e r ( b r ) ) { v a r S r = _ e ( b r . l e n g t h ) | 0 , D r = $ ( S r ) ; r e t u r n D r . l e n g t h = = = 0 | | b r . c o p y ( D r , 0 , 0 , S r ) , D r } i f ( b r . l e n g t h ! = = v o i d 0 ) r e t u r n t y p e o f b r . l e n g t h ! = " n u m b e r " | | C r ( b r . l e n g t h ) ? $ ( 0 ) : u e ( b r ) ; i f ( b r . t y p e = = = " B u f f e r " & & A r r a y . i s A r r a y ( b r . d a t a ) ) r e t u r n u e ( b r . d a t a ) } f u n c t i o n _ e ( b r ) { i f ( b r > = k ) t h r o w n e w R a n g e E r r o r ( " A t t e m p t t o a l l o c a t e B u f f e r l a r g e r t h a n m a x i m u m s i z e : 0 x " + k . t o S t r i n g ( 1 6 ) + " b y t e s " ) ; r e t u r n b r | 0 } f u n c t i o n C e ( b r ) { r e t u r n + b r ! = b r & & (
2024-08-21 13:12:53 +08:00
` )>-1&&(jr?Vr=Vr.split( `
2024-08-22 19:23:55 +08:00
` ).map(function(Tr){return" "+Tr}).join( `
2024-08-21 13:12:53 +08:00
` ).slice(2):Vr= `
` +Vr.split( `
2024-08-22 19:23:55 +08:00
` ).map(function(Tr){return" "+Tr}).join( `
2024-08-24 19:24:09 +08:00
` ))):Vr=vr.stylize("[Circular]","special")),Ve(Hr)){if(jr&&gr.match(/^ \d + $ /))return Vr;Hr=JSON.stringify(""+gr),Hr.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)" $ /)?(Hr=Hr.slice(1,-1),Hr=vr.stylize(Hr,"name")):(Hr=Hr.replace(/'/g," \\ '").replace(/ \\ "/g,'"').replace(/(^"|" $ )/g,"'"),Hr=vr.stylize(Hr,"string"))}return Hr+": "+Vr}function _e(vr,Ir,Mr){var mr=vr.reduce(function(gr,jr){return jr.indexOf( `
` )>=0,gr+jr.replace(/ \u 001b \[ \d \d ?m/g,"").length+1},0);return mr>60?Mr[0]+(Ir===""?"":Ir+ `
2024-08-21 13:12:53 +08:00
` )+" "+vr.join( ` ,
2024-08-25 08:49:45 +08:00
` )+" "+Mr[1]:Mr[0]+Ir+" "+vr.join(", ")+" "+Mr[1]}e.types=types;function Ce(vr){return Array.isArray(vr)}e.isArray=Ce;function he(vr){return typeof vr=="boolean"}e.isBoolean=he;function Ne(vr){return vr===null}e.isNull=Ne;function Fe(vr){return vr==null}e.isNullOrUndefined=Fe;function Ue(vr){return typeof vr=="number"}e.isNumber=Ue;function kt(vr){return typeof vr=="string"}e.isString=kt;function Et(vr){return typeof vr=="symbol"}e.isSymbol=Et;function Ve(vr){return vr===void 0}e.isUndefined=Ve;function qe(vr){return jt(vr)&&ur(vr)==="[object RegExp]"}e.isRegExp=qe,e.types.isRegExp=qe;function jt(vr){return typeof vr=="object"&&vr!==null}e.isObject=jt;function tr(vr){return jt(vr)&&ur(vr)==="[object Date]"}e.isDate=tr,e.types.isDate=tr;function rr(vr){return jt(vr)&&(ur(vr)==="[object Error]"||vr instanceof Error)}e.isError=rr,e.types.isNativeError=rr;function ar(vr){return typeof vr=="function"}e.isFunction=ar;function nr(vr){return vr===null||typeof vr=="boolean"||typeof vr=="number"||typeof vr=="string"||typeof vr=="symbol"||typeof vr>"u"}e.isPrimitive=nr,e.isBuffer=isBufferBrowser;function ur(vr){return Object.prototype.toString.call(vr)}function cr(vr){return vr<10?"0"+vr.toString(10):vr.toString(10)}var _r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function hr(){var vr=new Date,Ir=[cr(vr.getHours()),cr(vr.getMinutes()),cr(vr.getSeconds())].join(":");return[vr.getDate(),_r[vr.getMonth()],Ir].join(" ")}e.log=function(){console.log("%s - %s",hr(),e.format.apply(e,arguments))},e.inherits=inherits_browserExports,e._extend=function(vr,Ir){if(!Ir||!jt(Ir))return vr;for(var Mr=Object.keys(Ir),mr=Mr.length;mr--;)vr[Mr[mr]]=Ir[Mr[mr]];return vr};function Er(vr,Ir){return Object.prototype.hasOwnProperty.call(vr,Ir)}var kr=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(Ir){if(typeof Ir!="function")throw new TypeError('The "original" argument must be of type Function');if(kr&&Ir[kr]){var Mr=Ir[kr];if(typeof Mr!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Mr,kr,{value:Mr,enumerable:!1,writable:!1,configurable:!0}),Mr}function Mr(){for(var mr,gr,jr=new Promise(function(zr,Tr){mr=zr,gr=Tr}),Hr=[],Vr=0;Vr<arguments.length;Vr++)Hr.push(arguments[Vr]);Hr.push(function(zr,Tr){zr?gr(zr):mr(Tr)});try{Ir.apply(this,Hr)}catch(zr){gr(zr)}return jr}return Object.setPrototypeOf(Mr,Object.getPrototypeOf(Ir)),kr&&Object.defineProperty(Mr,kr,{value:Mr,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Mr,n(Ir))},e.promisify.custom=kr;function xr(vr,Ir){if(!vr){var Mr=new Error("Promise was rejected with a falsy value");Mr.reason=vr,vr=Mr}return Ir(vr)}function yr(vr){if(typeof vr!="function")throw new TypeError('The "original" argument must be of type Function');function Ir(){for(var Mr=[],mr=0;mr<arguments.length;mr++)Mr.push(arguments[mr]);var gr=Mr.pop();if(typeof gr!="function")throw new TypeError("The last argument must be of type Function");var jr=this,Hr=function(){return gr.apply(jr,arguments)};vr.apply(this,Mr).then(function(Vr){t.nextTick(Hr.bind(null,null,Vr))},function(Vr){t.nextTick(xr.bind(null,Vr,Hr))})}return Object.setPrototypeOf(Ir,Object.getPrototypeOf(vr)),Object.defineProperties(Ir,n(vr)),Ir}e.callbackify=yr})(util $ 5);var buffer_list,hasRequiredBuffer_list;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;hasRequiredBuffer_list=1;function e(de,pe){var Ie=Object.keys(de);if(Object.getOwnPropertySymbols){var _e=Object.getOwnPropertySymbols(de);pe&&(_e=_e.filter(function(Ce){return Object.getOwnPropertyDescriptor(de,Ce).enumerable})),Ie.push.apply(Ie,_e)}return Ie}function t(de){for(var pe=1;pe<arguments.length;pe++){var Ie=arguments[pe]!=null?arguments[pe]:{};pe%2?e(Object(Ie),!0).forEach(function(_e){y(de,_e,Ie[_e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(de,Object.getOwnPropertyDescriptors(Ie)):e(Object(Ie)).forEach(function(_e){Object.defineProperty(de,_e,Object.getOwnPropertyDescriptor(Ie,_e))})}return de}function y(de
2024-08-21 13:12:53 +08:00
` ,y);y=k===-1?e.length:k}else if(n!==-1&&e[y]==="/"&&e[y+1]==="*"){let k=e.indexOf("*/",y);k!==-1?(y=k+2,n=e.indexOf("*/",y)):(t+=e[y],y++)}else t+=e[y],y++;return t}function parseParams(e){const t=stripComments(e.toString());let y=t.match(FN_ARGS);if(y||(y=t.match(ARROW_FN_ARGS)),!y)throw new Error( ` could not parse args in autoInject
Source :
2024-08-24 19:24:09 +08:00
` +t);let[,n]=y;return n.replace(/ \s /g,"").split(FN_ARG_SPLIT).map(k=>k.replace(FN_ARG,"").trim())}function autoInject(e,t){var y={};return Object.keys(e).forEach(n=>{var k=e[n],L, $ =isAsync(k),j=! $ &&k.length===1|| $ &&k.length===0;if(Array.isArray(k))L=[...k],k=L.pop(),y[n]=L.concat(L.length>0?V:k);else if(j)y[n]=k;else{if(L=parseParams(k),k.length===0&&! $ &&L.length===0)throw new Error("autoInject task functions require explicit parameters."); $ ||L.pop(),y[n]=L.concat(V)}function V(z,re){var ie=L.map(oe=>z[oe]);ie.push(re),wrapAsync(k)(...ie)}}),auto(y,t)}class DLL{constructor(){this.head=this.tail=null,this.length=0}removeLink(t){return t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev,t.prev=t.next=null,this.length-=1,t}empty(){for(;this.head;)this.shift();return this}insertAfter(t,y){y.prev=t,y.next=t.next,t.next?t.next.prev=y:this.tail=y,t.next=y,this.length+=1}insertBefore(t,y){y.prev=t.prev,y.next=t,t.prev?t.prev.next=y:this.head=y,t.prev=y,this.length+=1}unshift(t){this.head?this.insertBefore(this.head,t):setInitial(this,t)}push(t){this.tail?this.insertAfter(this.tail,t):setInitial(this,t)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var t=this.head;t;)yield t.data,t=t.next}remove(t){for(var y=this.head;y;){var{next:n}=y;t(y)&&this.removeLink(y),y=n}return this}}function setInitial(e,t){e.length=1,e.head=e.tail=t}function queue $ 1(e,t,y){if(t==null)t=1;else if(t===0)throw new RangeError("Concurrency must not be zero");var n=wrapAsync(e),k=0,L=[];const $ ={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ce,he){ $ [Ce].push(he)}function V(Ce,he){const Ne=(...Fe)=>{z(Ce,Ne),he(...Fe)}; $ [Ce].push(Ne)}function z(Ce,he){if(!Ce)return Object.keys( $ ).forEach(Ne=> $ [Ne]=[]);if(!he)return $ [Ce]=[]; $ [Ce]= $ [Ce].filter(Ne=>Ne!==he)}function re(Ce,...he){ $ [Ce].forEach(Ne=>Ne(...he))}var ie=!1;function oe(Ce,he,Ne,Fe){if(Fe!=null&&typeof Fe!="function")throw new Error("task callback must be a function");_e.started=!0;var Ue,kt;function Et(qe,...jt){if(qe)return Ne?kt(qe):Ue();if(jt.length<=1)return Ue(jt[0]);Ue(jt)}var Ve=_e._createTaskItem(Ce,Ne?Et:Fe||Et);if(he?_e._tasks.unshift(Ve):_e._tasks.push(Ve),ie||(ie=!0,setImmediate $ 1 $ 1(()=>{ie=!1,_e.process()})),Ne||!Fe)return new Promise((qe,jt)=>{Ue=qe,kt=jt})}function ue(Ce){return function(he,...Ne){k-=1;for(var Fe=0,Ue=Ce.length;Fe<Ue;Fe++){var kt=Ce[Fe],Et=L.indexOf(kt);Et===0?L.shift():Et>0&&L.splice(Et,1),kt.callback(he,...Ne),he!=null&&re("error",he,kt.data)}k<=_e.concurrency-_e.buffer&&re("unsaturated"),_e.idle()&&re("drain"),_e.process()}}function de(Ce){return Ce.length===0&&_e.idle()?(setImmediate $ 1 $ 1(()=>re("drain")),!0):!1}const pe=Ce=>he=>{if(!he)return new Promise((Ne,Fe)=>{V(Ce,(Ue,kt)=>{if(Ue)return Fe(Ue);Ne(kt)})});z(Ce),j(Ce,he)};var Ie=!1,_e={_tasks:new DLL,_createTaskItem(Ce,he){return{data:Ce,callback:he}},*[Symbol.iterator](){yield*_e._tasks[Symbol.iterator]()},concurrency:t,payload:y,buffer:t/4,started:!1,paused:!1,push(Ce,he){return Array.isArray(Ce)?de(Ce)?void 0:Ce.map(Ne=>oe(Ne,!1,!1,he)):oe(Ce,!1,!1,he)},pushAsync(Ce,he){return Array.isArray(Ce)?de(Ce)?void 0:Ce.map(Ne=>oe(Ne,!1,!0,he)):oe(Ce,!1,!0,he)},kill(){z(),_e._tasks.empty()},unshift(Ce,he){return Array.isArray(Ce)?de(Ce)?void 0:Ce.map(Ne=>oe(Ne,!0,!1,he)):oe(Ce,!0,!1,he)},unshiftAsync(Ce,he){return Array.isArray(Ce)?de(Ce)?void 0:Ce.map(Ne=>oe(Ne,!0,!0,he)):oe(Ce,!0,!0,he)},remove(Ce){_e._tasks.remove(Ce)},process(){if(!Ie){for(Ie=!0;!_e.paused&&k<_e.concurrency&&_e._tasks.length;){var Ce=[],he=[],Ne=_e._tasks.length;_e.payload&&(Ne=Math.min(Ne,_e.payload));for(var Fe=0;Fe<Ne;Fe++){var Ue=_e._tasks.shift();Ce.push(Ue),L.push(Ue),he.push(Ue.data)}k+=1,_e._tasks.length===0&&re("empty"),k===_e.concurrency&&re("saturated");var kt=onlyOnce(ue(Ce));n(he,kt)}Ie=!1}},length(){return _e._tasks.length},running(){return k},workersList(){return L},idle(){return _e._tasks.length+k===0},pause(){_e.paused=!0},resume(){_e.paused!==!1&&(_e.paused=!1,setImme
2024-08-21 13:12:53 +08:00
* @ license
* Lodash < https : //lodash.com/>
* Copyright OpenJS Foundation and other contributors < https : //openjsf.org/>
* Released under MIT license < https : //lodash.com/license>
* Based on Underscore . js 1.8 . 3 < http : //underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas , DocumentCloud and Investigative Reporters & Editors
2024-08-24 19:24:09 +08:00
* /lodash.exports;(function(e,t){(function(){var y,n="4.17.21",k=200,L="Unsupported core-js use. Try https:/ / npms . io / search ? q = ponyfill . ",$=" Expected a function ",j=" Invalid ` variable ` option passed into ` _.template ` ",V=" _ _lodash _hash _undefined _ _ ",z=500,re=" _ _lodash _placeholder _ _ ",ie=1,oe=2,ue=4,de=1,pe=2,Ie=1,_e=2,Ce=4,he=8,Ne=16,Fe=32,Ue=64,kt=128,Et=256,Ve=512,qe=30,jt=" ... ",tr=800,rr=16,ar=1,nr=2,ur=3,cr=1/0,_r=9007199254740991,hr=17976931348623157e292,Er=NaN,kr=4294967295,xr=kr-1,yr=kr>>>1,vr=[[" ary ",kt],[" bind ",Ie],[" bindKey ",_e],[" curry ",he],[" curryRight ",Ne],[" flip ",Ve],[" partial ",Fe],[" partialRight ",Ue],[" rearg ",Et]],Ir=" [ object Arguments ] ",Mr=" [ object Array ] ",mr=" [ object AsyncFunction ] ",gr=" [ object Boolean ] ",jr=" [ object Date ] ",Hr=" [ object DOMException ] ",Vr=" [ object Error ] ",zr=" [ object Function ] ",Tr=" [ object GeneratorFunction ] ",Cr=" [ object Map ] ",Br=" [ object Number ] ",br=" [ object Null ] ",Sr=" [ object Object ] ",Dr=" [ object Promise ] ",Rr=" [ object Proxy ] ",Wr=" [ object RegExp ] ",Kr=" [ object Set ] ",Nr=" [ object String ] ",Fr=" [ object Symbol ] ",Qr=" [ object Undefined ] ",ca=" [ object WeakMap ] ",Po=" [ object WeakSet ] ",Wa=" [ object ArrayBuffer ] ",Go=" [ object DataView ] ",us=" [ object Float32Array ] ",Kn=" [ object Float64Array ] ",Gr=" [ object Int8Array ] ",Ar=" [ object Int16Array ] ",On=" [ object Int32Array ] ",In=" [ object Uint8Array ] ",Sa=" [ object Uint8ClampedArray ] ",sa=" [ object Uint16Array ] ",qa=" [ object Uint32Array ] ",To=/\b__p \+= '';/g,Hi=/\b(__p \+=) '' \+/g,na=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ma=/&(?:amp|lt|gt|quot|#39);/g,Ns=/[&<>" ']/g,cs=RegExp(Ma.source),vl=RegExp(Ns.source),Bl=/<%-([\s\S]+?)%>/g,Au=/<%([\s\S]+?)%>/g,xs=/<%=([\s\S]+?)%>/g,ju=/\.|\[(?:[^[\]]*|(["' ] ) ( ? : ( ? ! \ 1 ) [ ^ \ \ ] | \ \ . ) * ? \ 1 ) \ ] / , Lu = /^\w*$/ , Pc = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g , Nc = /[\\^$.*+?()[\]{}|]/g , gc = RegExp ( Nc . source ) , Wl = /^\s+/ , ps = /\s/ , Ds = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/ , Us = /\{\n\/\* \[wrapped with (.+)\] \*/ , Vs = /,? & / , Lr = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g , Zn = /[()=,{}\[\]\/\s]/ , hn = /\\(\\)?/g , Ln = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g , Vi = /\w*$/ , Wi = /^[-+]0x[0-9a-f]+$/i , pa = /^0b[01]+$/i , Ki = /^\[object .+?Constructor\]$/ , Yo = /^0o[0-7]+$/i , Eo = /^(?:0|[1-9]\d*)$/ , Fo = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g , hs = /($^)/ , An = /['\n\r\u2028\u2029\\]/g , Uo = "\\ud800-\\udfff" , cu = "\\u0300-\\u036f" , Io = "\\ufe20-\\ufe2f" , vu = "\\u20d0-\\u20ff" , Ul = cu + Io + vu , tc = "\\u2700-\\u27bf" , Fu = "a-z\\xdf-\\xf6\\xf8-\\xff" , Ku = "\\xac\\xb1\\xd7\\xf7" , kn = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf" , rs = "\\u2000-\\u206f" , Vl = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000" , Eu = "A-Z\\xc0-\\xd6\\xd8-\\xde" , ml = "\\ufe0e\\ufe0f" , Uu = Ku + kn + rs + Vl , Ac = "['’ ]" , od = "[" + Uo + "]" , ld = "[" + Uu + "]" , _p = "[" + Ul + "]" , cp = "\\d+" , Oc = "[" + tc + "]" , Hd = "[" + Fu + "]" , nd = "[^" + Uo + Uu + cp + tc + Fu + Eu + "]" , Dp = "\\ud83c[\\udffb-\\udfff]" , Cp = "(?:" + _p + "|" + Dp + ")" , Tf = "[^" + Uo + "]" , Df = "(?:\\ud83c[\\udde6-\\uddff]){2}" , uf = "[\\ud800-\\udbff][\\udc00-\\udfff]" , Rp = "[" + Eu + "]" , lm = "\\u200d" , Of = "(?:" + Hd + "|" + nd + ")" , yc = "(?:" + Rp + "|" + nd + ")" , Cf = "(?:" + Ac + "(?:d|ll|m|re|s|t|ve))?" , Sp = "(?:" + Ac + "(?:D|LL|M|RE|S|T|VE))?" , cf = Cp + "?" , Uf = "[" + ml + "]?" , wf = "(?:" + lm + "(?:" + [ Tf , Df , uf ] . join ( "|" ) + ")" + Uf + cf + ")*" , Vf = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])" , zp = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])" , um = Uf + cf + wf , Cm = "(?:" + [ Oc , Df , uf ] . join ( "|" ) + ")" + um , Qp = "(?:" + [ Tf + _p + "?" , _p , Df , uf , od ] . join ( "|" ) + ")" , Jf = RegExp ( Ac , "g" ) , Rf = RegExp ( _p , "g" ) , rh = RegExp ( Dp + "(?=" + Dp + ")|" + Qp + um , "g" ) , kf = RegExp ( [ Rp + "?" + Hd + "+" + Cf + "(?=" + [ ld , Rp , "$" ] . join ( "|" ) + ")" , yc + "+" + Sp + "(?=" + [ ld , Rp + Of , "$" ] . join ( "|" ) + ")" , Rp + "?" + Of + "+" + Cf , Rp + "+" + Sp , zp , Vf , cp , Cm ] . join ( "|" ) , "g" ) , Oh = RegExp ( "[" + lm + Uo + Ul + ml + "]" ) , cm = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/ , wm = [ "Array" , "Buffer" , "DataView" , "Date" , "Error" , "Float32Array" , "Float64Array" , "Function" , "Int8Array" , "Int16Array" , "Int32Array" , "Map" , "Math" , "Object" , "Promise" , "RegExp" , "Set" , "String" , "Symbol" , "TypeError" , "Uint8Array" , "Uint8ClampedArray" , "Uint16Array" , "Uint32Array" , "WeakMap" , "_" , "clearTimeout" , " isF
2024-08-21 13:12:53 +08:00
/* [wrapped with `+fr+`] */
2024-08-24 19:24:09 +08:00
` )}function er(sr){return Ad(sr)||c0(sr)||!!(Nh&&sr&&sr[Nh])}function ir(sr,fr){var Ur=typeof sr;return fr=fr??_r,!!fr&&(Ur=="number"||Ur!="symbol"&&Eo.test(sr))&&sr>-1&&sr%1==0&&sr<fr}function lr(sr,fr,Ur){if(!Xp(Ur))return!1;var Li=typeof fr;return(Li=="number"?Xm(Ur)&&ir(fr,Ur.length):Li=="string"&&fr in Ur)?Uh(Ur[fr],sr):!1}function dr(sr,fr){if(Ad(sr))return!1;var Ur=typeof sr;return Ur=="number"||Ur=="symbol"||Ur=="boolean"||sr==null||hh(sr)?!0:Lu.test(sr)||!ju.test(sr)||fr!=null&&sr in zd(fr)}function $ r(sr){var fr=typeof sr;return fr=="string"||fr=="number"||fr=="symbol"||fr=="boolean"?sr!=="__proto__":sr===null}function Zr(sr){var fr=Fs(sr),Ur=Ka[fr];if(typeof Ur!="function"||!(fr in $ l.prototype))return!1;if(sr===Ur)return!0;var Li=fs(Ur);return!!Li&&sr===Li[0]}function Hn(sr){return!!Dd&&Dd in sr}var mi=Wf?t0:F0;function ma(sr){var fr=sr&&sr.constructor,Ur=typeof fr=="function"&&fr.prototype||vf;return sr===Ur}function io(sr){return sr===sr&&!Xp(sr)}function ms(sr,fr){return function(Ur){return Ur==null?!1:Ur[sr]===fr&&(fr!==y||sr in zd(Ur))}}function gs(sr){var fr=y0(sr,function(Li){return Ur.size===z&&Ur.clear(),Li}),Ur=fr.cache;return fr}function Cs(sr,fr){var Ur=sr[1],Li=fr[1],Qa=Ur|Li,is=Qa<(Ie|_e|kt),Ps=Li==kt&&Ur==he||Li==kt&&Ur==Et&&sr[7].length<=fr[8]||Li==(kt|Et)&&fr[7].length<=fr[8]&&Ur==he;if(!(is||Ps))return sr;Li&Ie&&(sr[2]=fr[2],Qa|=Ur&Ie?0:Ce);var Ks=fr[3];if(Ks){var yl=sr[3];sr[3]=yl?ji(yl,Ks,fr[4]):Ks,sr[4]=yl?xp(sr[3],re):fr[4]}return Ks=fr[5],Ks&&(yl=sr[5],sr[5]=yl?oa(yl,Ks,fr[6]):Ks,sr[6]=yl?xp(sr[5],re):fr[6]),Ks=fr[7],Ks&&(sr[7]=Ks),Li&kt&&(sr[8]=sr[8]==null?fr[8]:Is(sr[8],fr[8])),sr[9]==null&&(sr[9]=fr[9]),sr[0]=fr[0],sr[1]=Qa,sr}function Js(sr){var fr=[];if(sr!=null)for(var Ur in zd(sr))fr.push(Ur);return fr}function Hl(sr){return Wp.call(sr)}function sl(sr,fr,Ur){return fr=ds(fr===y?sr.length-1:fr,0),function(){for(var Li=arguments,Qa=-1,is=ds(Li.length-fr,0),Ps=Pl(is);++Qa<is;)Ps[Qa]=Li[fr+Qa];Qa=-1;for(var Ks=Pl(fr+1);++Qa<fr;)Ks[Qa]=Li[Qa];return Ks[fr]=Ur(Ps),Du(sr,this,Ks)}}function pu(sr,fr){return fr.length<2?sr:ss(sr,Yp(fr,0,-1))}function gu(sr,fr){for(var Ur=sr.length,Li=Is(fr.length,Ur),Qa=Ra(sr);Li--;){var is=fr[Li];sr[Li]=ir(is,Ur)?Qa[is]:y}return sr}function vs(sr,fr){if(!(fr==="constructor"&&typeof sr[fr]=="function")&&fr!="__proto__")return sr[fr]}var pc=zc(Qh),vc=eo||function(sr,fr){return Bd.setTimeout(sr,fr)}, $ u=zc(i0);function dc(sr,fr,Ur){var Li=fr+"";return $ u(sr, $ e(Li,jc(Qo(Li),Ur)))}function zc(sr){var fr=0,Ur=0;return function(){var Li=Gs(),Qa=rr-(Li-Ur);if(Ur=Li,Qa>0){if(++fr>=tr)return arguments[0]}else fr=0;return sr.apply(y,arguments)}}function Vd(sr,fr){var Ur=-1,Li=sr.length,Qa=Li-1;for(fr=fr===y?Li:fr;++Ur<fr;){var is=Af(Ur,Qa),Ps=sr[is];sr[is]=sr[Ur],sr[Ur]=Ps}return sr.length=fr,sr}var co=gs(function(sr){var fr=[];return sr.charCodeAt(0)===46&&fr.push(""),sr.replace(Pc,function(Ur,Li,Qa,is){fr.push(Qa?is.replace(hn," $ 1"):Li||Ur)}),fr});function rl(sr){if(typeof sr=="string"||hh(sr))return sr;var fr=sr+"";return fr=="0"&&1/sr==-cr?"-0":fr}function Ju(sr){if(sr!=null){try{return km.call(sr)}catch{}try{return sr+""}catch{}}return""}function jc(sr,fr){return id(vr,function(Ur){var Li="_."+Ur[0];fr&Ur[1]&&!Dm(sr,Li)&&sr.push(Li)}),sr.sort()}function Wc(sr){if(sr instanceof $ l)return sr.clone();var fr=new Tu(sr.__wrapped__,sr.__chain__);return fr.__actions__=Ra(sr.__actions__),fr.__index__=sr.__index__,fr.__values__=sr.__values__,fr}function Xd(sr,fr,Ur){(Ur?lr(sr,fr,Ur):fr===y)?fr=1:fr=ds(Id(fr),0);var Li=sr==null?0:sr.length;if(!Li||fr<1)return[];for(var Qa=0,is=0,Ps=Pl(So(Li/fr));Qa<Li;)Ps[is++]=Yp(sr,Qa,Qa+=fr);return Ps}function yd(sr){for(var fr=-1,Ur=sr==null?0:sr.length,Li=0,Qa=[];++fr<Ur;){var is=sr[fr];is&&(Qa[Li++]=is)}return Qa}function kd(){var sr=arguments.length;if(!sr)return[];for(var fr=Pl(sr-1),Ur=arguments[0],Li=sr;Li--;)fr[Li-1]=arguments[Li];return zf(Ad(Ur)?Ra(Ur):[Ur],zn(fr,1))}var Ld=Zc(function(sr,fr){return Ef(sr)?Na(sr,zn(fr,1,Ef,!0)):[]}), $ d=Zc(function(sr,fr){var Ur=Ah(fr);return Ef(Ur)&&(Ur=y),Ef(sr)?Na(sr,zn(fr,1,Ef,!0),Hs(Ur,
` ;sr.replace(xc,function(hd,qd,Jd,gh, $ m,bh){return Jd||(Jd=gh),Vu+=sr.slice(ku,bh).replace(An,tm),qd&&(Ks=!0,Vu+= ` ' +
2024-08-21 13:12:53 +08:00
_ _e ( ` +qd+ ` ) +
2024-08-22 19:23:55 +08:00
'`),$m&&(yl=!0,Vu+=`' ;
` + $ m+ ` ;
2024-08-21 13:12:53 +08:00
_ _p += '`),Jd&&(Vu+=`' +
( ( _ _t = ( ` +Jd+ ` ) ) == null ? '' : _ _t ) +
2024-08-24 19:24:09 +08:00
'`),ku=bh+hd.length,hd}),Vu+=`' ;
2024-08-21 13:12:53 +08:00
` ;var ud=Nd.call(fr,"variable")&&fr.variable;if(!ud)Vu= ` with ( obj ) {
` +Vu+ `
}
` ;else if(Zn.test(ud))throw new Ec(j);Vu=(yl?Vu.replace(To,""):Vu).replace(Hi," $ 1").replace(na," $ 1;"),Vu="function("+(ud||"obj")+ ` ) {
` +(ud?"": ` obj || ( obj = { } ) ;
` )+"var __t, __p = ''"+(Ks?", __e = _.escape":"")+(yl? ` , _ _j = Array . prototype . join ;
function print ( ) { _ _p += _ _j . call ( arguments , '' ) }
` : ` ;
` )+Vu+ ` return _ _p
2024-08-25 08:49:45 +08:00
} ` ;var Md=v1(function(){return wd(is,Qc+"return "+Vu).apply(y,Ps)});if(Md.source=Vu,O0(Md))throw Md;return Md}function Rv(sr){return gp(sr).toLowerCase()}function kv(sr){return gp(sr).toUpperCase()}function Iv(sr,fr,Ur){if(sr=gp(sr),sr&&(Ur||fr===y))return Hm(sr);if(!sr||!(fr=sm(fr)))return sr;var Li=Pf(sr),Qa=Pf(fr),is=Jp(Li,Qa),Ps=qf(Li,Qa)+1;return Fn(Li,is,Ps).join("")}function Mv(sr,fr,Ur){if(sr=gp(sr),sr&&(Ur||fr===y))return sr.slice(0,Lh(sr)+1);if(!sr||!(fr=sm(fr)))return sr;var Li=Pf(sr),Qa=qf(Li,Pf(fr))+1;return Fn(Li,0,Qa).join("")}function Bv(sr,fr,Ur){if(sr=gp(sr),sr&&(Ur||fr===y))return sr.replace(Wl,"");if(!sr||!(fr=sm(fr)))return sr;var Li=Pf(sr),Qa=Jp(Li,Pf(fr));return Fn(Li,Qa).join("")}function Pv(sr,fr){var Ur=qe,Li=jt;if(Xp(fr)){var Qa="separator"in fr?fr.separator:Qa;Ur="length"in fr?Id(fr.length):Ur,Li="omission"in fr?sm(fr.omission):Li}sr=gp(sr);var is=sr.length;if(gf(sr)){var Ps=Pf(sr);is=Ps.length}if(Ur>=is)return sr;var Ks=Ur-zm(Li);if(Ks<1)return Li;var yl=Ps?Fn(Ps,0,Ks).join(""):sr.slice(0,Ks);if(Qa===y)return yl+Li;if(Ps&&(Ks+=yl.length-Ks),R0(Qa)){if(sr.slice(Ks).search(Qa)){var ku,Iu=yl;for(Qa.global||(Qa=qm(Qa.source,gp(Vi.exec(Qa))+"g")),Qa.lastIndex=0;ku=Qa.exec(Iu);)var Vu=ku.index;yl=yl.slice(0,Vu===y?Ks:Vu)}}else if(sr.indexOf(sm(Qa),Ks)!=Ks){var xc=yl.lastIndexOf(Qa);xc>-1&&(yl=yl.slice(0,xc))}return yl+Li}function Lv(sr){return sr=gp(sr),sr&&cs.test(sr)?sr.replace(Ma, $ h):sr}var $ v=Fi(function(sr,fr,Ur){return sr+(Ur?" ":"")+fr.toUpperCase()}),M0=Ta("toUpperCase");function _1(sr,fr,Ur){return sr=gp(sr),fr=Ur?y:fr,fr===y?Mh(sr)?Gh(sr):Yh(sr):sr.match(fr)||[]}var v1=Zc(function(sr,fr){try{return Du(sr,y,fr)}catch(Ur){return O0(Ur)?Ur:new Ec(Ur)}}),jv=al(function(sr,fr){return id(fr,function(Ur){Ur=rl(Ur),am(sr,Ur,A0(sr[Ur],sr))}),sr});function Fv(sr){var fr=sr==null?0:sr.length,Ur=Hs();return sr=fr?rp(sr,function(Li){if(typeof Li[1]!="function")throw new _f( $ );return[Ur(Li[0]),Li[1]]}):[],Zc(function(Li){for(var Qa=-1;++Qa<fr;){var is=sr[Qa];if(Du(is[0],this,Li))return Du(is[1],this,Li)}})}function Uv(sr){return Mn(Up(sr,ie))}function B0(sr){return function(){return sr}}function Vv(sr,fr){return sr==null||sr!==sr?fr:sr}var Hv=ra(),zv=ra(!0);function Zm(sr){return sr}function P0(sr){return Ed(typeof sr=="function"?sr:Up(sr,ie))}function Gv(sr){return Yc(Up(sr,ie))}function qv(sr,fr){return Zs(sr,Up(fr,ie))}var Wv=Zc(function(sr,fr){return function(Ur){return Mc(Ur,sr,fr)}}),Kv=Zc(function(sr,fr){return function(Ur){return Mc(sr,Ur,fr)}});function L0(sr,fr,Ur){var Li=Qf(fr),Qa=xo(fr,Li);Ur==null&&!(Xp(fr)&&(Qa.length||!Li.length))&&(Ur=fr,fr=sr,sr=this,Qa=xo(fr,Qf(fr)));var is=!(Xp(Ur)&&"chain"in Ur)||!!Ur.chain,Ps=t0(sr);return id(Qa,function(Ks){var yl=fr[Ks];sr[Ks]=yl,Ps&&(sr.prototype[Ks]=function(){var ku=this.__chain__;if(is||ku){var Iu=sr(this.__wrapped__),Vu=Iu.__actions__=Ra(this.__actions__);return Vu.push({func:yl,args:arguments,thisArg:sr}),Iu.__chain__=ku,Iu}return yl.apply(sr,zf([this.value()],arguments))})}),sr}function Yv(){return Bd._===this&&(Bd._=Ip),this}function $ 0(){}function Xv(sr){return sr=Id(sr),Zc(function(fr){return Wu(fr,sr)})}var Qv=to(rp),Jv=to(mf),Zv=to(Om);function b1(sr){return dr(sr)?kh(rl(sr)):Pp(sr)}function eb(sr){return function(fr){return sr==null?y:ss(sr,fr)}}var tb=Mo(),rb=Mo(!0);function j0(){return[]}function F0(){return!1}function nb(){return{}}function ib(){return""}function ab(){return!0}function ob(sr,fr){if(sr=Id(sr),sr<1||sr>_r)return[];var Ur=kr,Li=Is(sr,kr);fr=Hs(fr),sr-=kr;for(var Qa=em(Li,fr);++Ur<sr;)fr(Ur);return Qa}function sb(sr){return Ad(sr)?rp(sr,rl):hh(sr)?[sr]:Ra(co(gp(sr)))}function lb(sr){var fr=++Wh;return gp(sr)+fr}var ub=Aa(function(sr,fr){return sr+fr},0),cb=Bs("ceil"),db=Aa(function(sr,fr){return sr/fr},1),pb=Bs("floor");function fb(sr){return sr&&sr.length?vo(sr,Zm,js):y}function mb(sr,fr){return sr&&sr.length?vo(sr,Hs(fr,2),js):y}function hb(sr){return hm(sr,Zm)}function gb(sr,fr){return hm(sr,Hs(fr,2))}function _b(sr){return sr&&sr.length?vo(sr,Zm,Vc):y}function vb(sr,fr){return sr&&sr.length?vo(sr,Hs(fr,2),Vc):y}v
2024-08-21 13:12:53 +08:00
` :"")),y&&y()}function L( $ ){return $ .interrupt?( $ .interrupt.append=e, $ .interrupt.end=k, $ .interrupt=!1,e(!0),!0):!1}if(e(!1,t.indents+(t.name?"<"+t.name:"")+(t.attributes.length?" "+t.attributes.join(" "):"")+(n?t.name?">":"":t.name?"/>":"")+(t.indent&&n>1? `
` :"")),!n)return e(!1,t.indent? `
` :"");L(t)||k()}function attribute(e,t){return e+'="'+escapeForXML(t)+'"'}xml $ 2.exports=xml $ 1;xml $ 2.exports.element=xml $ 2.exports.Element=element;var xmlExports=xml $ 2.exports;const Xml=getDefaultExportFromCjs(xmlExports);var xml2js={},defaults $ 1={},hasRequiredDefaults;function requireDefaults(){return hasRequiredDefaults||(hasRequiredDefaults=1,(function(){defaults $ 1.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:" $ ",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:" $ $ ",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline: `
2024-08-24 19:24:09 +08:00
` },headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(commonjsGlobal)),defaults $ 1}var builder={},lib $ 1={},Utility={},hasRequiredUtility;function requireUtility(){return hasRequiredUtility||(hasRequiredUtility=1,(function(){var e,t,y,n,k,L, $ ,j=[].slice,V={}.hasOwnProperty;e=function(){var z,re,ie,oe,ue,de;if(de=arguments[0],ue=2<=arguments.length?j.call(arguments,1):[],k(Object.assign))Object.assign.apply(null,arguments);else for(z=0,ie=ue.length;z<ie;z++)if(oe=ue[z],oe!=null)for(re in oe)V.call(oe,re)&&(de[re]=oe[re]);return de},k=function(z){return!!z&&Object.prototype.toString.call(z)==="[object Function]"},L=function(z){var re;return!!z&&((re=typeof z)=="function"||re==="object")},y=function(z){return k(Array.isArray)?Array.isArray(z):Object.prototype.toString.call(z)==="[object Array]"},n=function(z){var re;if(y(z))return!z.length;for(re in z)if(V.call(z,re))return!1;return!0}, $ =function(z){var re,ie;return L(z)&&(ie=Object.getPrototypeOf(z))&&(re=ie.constructor)&&typeof re=="function"&&re instanceof re&&Function.prototype.toString.call(re)===Function.prototype.toString.call(Object)},t=function(z){return k(z.valueOf)?z.valueOf():z},Utility.assign=e,Utility.isFunction=k,Utility.isObject=L,Utility.isArray=y,Utility.isEmpty=n,Utility.isPlainObject= $ ,Utility.getValue=t}).call(commonjsGlobal)),Utility}var XMLDOMImplementation={exports:{}},hasRequiredXMLDOMImplementation;function requireXMLDOMImplementation(){return hasRequiredXMLDOMImplementation||(hasRequiredXMLDOMImplementation=1,(function(){XMLDOMImplementation.exports=function(){function e(){}return e.prototype.hasFeature=function(t,y){return!0},e.prototype.createDocumentType=function(t,y,n){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(t,y,n){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(t){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(t,y){throw new Error("This DOM method is not implemented.")},e}()}).call(commonjsGlobal)),XMLDOMImplementation.exports}var XMLDocument={exports:{}},XMLDOMConfiguration={exports:{}},XMLDOMErrorHandler={exports:{}},hasRequiredXMLDOMErrorHandler;function requireXMLDOMErrorHandler(){return hasRequiredXMLDOMErrorHandler||(hasRequiredXMLDOMErrorHandler=1,(function(){XMLDOMErrorHandler.exports=function(){function e(){}return e.prototype.handleError=function(t){throw new Error(t)},e}()}).call(commonjsGlobal)),XMLDOMErrorHandler.exports}var XMLDOMStringList={exports:{}},hasRequiredXMLDOMStringList;function requireXMLDOMStringList(){return hasRequiredXMLDOMStringList||(hasRequiredXMLDOMStringList=1,(function(){XMLDOMStringList.exports=function(){function e(t){this.arr=t||[]}return Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(t){return this.arr[t]||null},e.prototype.contains=function(t){return this.arr.indexOf(t)!==-1},e}()}).call(commonjsGlobal)),XMLDOMStringList.exports}var hasRequiredXMLDOMConfiguration;function requireXMLDOMConfiguration(){return hasRequiredXMLDOMConfiguration||(hasRequiredXMLDOMConfiguration=1,(function(){var e,t;e=requireXMLDOMErrorHandler(),t=requireXMLDOMStringList(),XMLDOMConfiguration.exports=function(){function y(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(y.prototype,"parameterNames",{get:function(){return new t(Object.keys(this.defaultParams))}}),y.prototype.getParameter=function(n){return this.params.hasOwnProperty(n)?this.params[n]:null},y.prototype.canSetParameter=function(n,k){return!0},y.prototype.setParameter=function(n,k){return k!=null?this.params[n]=k:delete this.params[n]},y}()}).call(commonjsGlobal)),XMLDOMConfi
` , $ .offset=(z=L.offset)!=null?z:0, $ .dontPrettyTextNodes=(re=(ie=L.dontPrettyTextNodes)!=null?ie:L.dontprettytextnodes)!=null?re:0, $ .spaceBeforeSlash=(oe=(ue=L.spaceBeforeSlash)!=null?ue:L.spacebeforeslash)!=null?oe:"", $ .spaceBeforeSlash===!0&&( $ .spaceBeforeSlash=" "), $ .suppressPrettyCount=0, $ .user={}, $ .state=t.None, $ },k.prototype.indent=function(L, $ ,j){var V;return! $ .pretty|| $ .suppressPrettyCount?"": $ .pretty&&(V=(j||0)+ $ .offset+1,V>0)?new Array(V).join( $ .indent):""},k.prototype.endline=function(L, $ ,j){return! $ .pretty|| $ .suppressPrettyCount?"": $ .newline},k.prototype.attribute=function(L, $ ,j){var V;return this.openAttribute(L, $ ,j),V=" "+L.name+'="'+L.value+'"',this.closeAttribute(L, $ ,j),V},k.prototype.cdata=function(L, $ ,j){var V;return this.openNode(L, $ ,j), $ .state=t.OpenTag,V=this.indent(L, $ ,j)+"<![CDATA[", $ .state=t.InsideTag,V+=L.value, $ .state=t.CloseTag,V+="]]>"+this.endline(L, $ ,j), $ .state=t.None,this.closeNode(L, $ ,j),V},k.prototype.comment=function(L, $ ,j){var V;return this.openNode(L, $ ,j), $ .state=t.OpenTag,V=this.indent(L, $ ,j)+"<!-- ", $ .state=t.InsideTag,V+=L.value, $ .state=t.CloseTag,V+=" -->"+this.endline(L, $ ,j), $ .state=t.None,this.closeNode(L, $ ,j),V},k.prototype.declaration=function(L, $ ,j){var V;return this.openNode(L, $ ,j), $ .state=t.OpenTag,V=this.indent(L, $ ,j)+"<?xml", $ .state=t.InsideTag,V+=' version="'+L.version+'"',L.encoding!=null&&(V+=' encoding="'+L.encoding+'"'),L.standalone!=null&&(V+=' standalone="'+L.standalone+'"'), $ .state=t.CloseTag,V+= $ .spaceBeforeSlash+"?>",V+=this.endline(L, $ ,j), $ .state=t.None,this.closeNode(L, $ ,j),V},k.prototype.docType=function(L, $ ,j){var V,z,re,ie,oe;if(j||(j=0),this.openNode(L, $ ,j), $ .state=t.OpenTag,ie=this.indent(L, $ ,j),ie+="<!DOCTYPE "+L.root().name,L.pubID&&L.sysID?ie+=' PUBLIC "'+L.pubID+'" "'+L.sysID+'"':L.sysID&&(ie+=' SYSTEM "'+L.sysID+'"'),L.children.length>0){for(ie+=" [",ie+=this.endline(L, $ ,j), $ .state=t.InsideTag,oe=L.children,z=0,re=oe.length;z<re;z++)V=oe[z],ie+=this.writeChildNode(V, $ ,j+1); $ .state=t.CloseTag,ie+="]"}return $ .state=t.CloseTag,ie+= $ .spaceBeforeSlash+">",ie+=this.endline(L, $ ,j), $ .state=t.None,this.closeNode(L, $ ,j),ie},k.prototype.element=function(L, $ ,j){var V,z,re,ie,oe,ue,de,pe,Ie,_e,Ce,he,Ne,Fe;j||(j=0),_e=!1,Ce="",this.openNode(L, $ ,j), $ .state=t.OpenTag,Ce+=this.indent(L, $ ,j)+"<"+L.name,he=L.attribs;for(Ie in he)n.call(he,Ie)&&(V=he[Ie],Ce+=this.attribute(V, $ ,j));if(re=L.children.length,ie=re===0?null:L.children[0],re===0||L.children.every(function(Ue){return(Ue.type===e.Text||Ue.type===e.Raw)&&Ue.value===""})) $ .allowEmpty?(Ce+=">", $ .state=t.CloseTag,Ce+="</"+L.name+">"+this.endline(L, $ ,j)):( $ .state=t.CloseTag,Ce+= $ .spaceBeforeSlash+"/>"+this.endline(L, $ ,j));else if( $ .pretty&&re===1&&(ie.type===e.Text||ie.type===e.Raw)&&ie.value!=null)Ce+=">", $ .state=t.InsideTag, $ .suppressPrettyCount++,_e=!0,Ce+=this.writeChildNode(ie, $ ,j+1), $ .suppressPrettyCount--,_e=!1, $ .state=t.CloseTag,Ce+="</"+L.name+">"+this.endline(L, $ ,j);else{if( $ .dontPrettyTextNodes){for(Ne=L.children,oe=0,de=Ne.length;oe<de;oe++)if(z=Ne[oe],(z.type===e.Text||z.type===e.Raw)&&z.value!=null){ $ .suppressPrettyCount++,_e=!0;break}}for(Ce+=">"+this.endline(L, $ ,j), $ .state=t.InsideTag,Fe=L.children,ue=0,pe=Fe.length;ue<pe;ue++)z=Fe[ue],Ce+=this.writeChildNode(z, $ ,j+1); $ .state=t.CloseTag,Ce+=this.indent(L, $ ,j)+"</"+L.name+">",_e&& $ .suppressPrettyCount--,Ce+=this.endline(L, $ ,j), $ .state=t.None}return this.closeNode(L, $ ,j),Ce},k.prototype.writeChildNode=function(L, $ ,j){switch(L.type){case e.CData:return this.cdata(L, $ ,j);case e.Comment:return this.comment(L, $ ,j);case e.Element:return this.element(L, $ ,j);case e.Raw:return this.raw(L, $ ,j);case e.Text:return this.text(L, $ ,j);case e.ProcessingInstruction:return this.processingInstruction(L, $ ,j);case e.Dummy:return"";case e.Declaration:return this.declaration(L, $ ,j);case e.DocType:return this.docType(L, $ ,j);case e.AttributeDeclaration:return this.dtdAttList(L, $ ,j);case e.ElementDeclaration:return this.dtdElement(L, $ ,j);case e.EntityDeclaration:return this.dtdEntity(L, $ ,j);case e.NotationDeclaration:return this.dtdNotation(L, $ ,j);default:throw new Error("Unkno
` ||mr===" \r "||mr===" "}function Fe(mr){return mr==='"'||mr==="'"}function Ue(mr){return mr===">"||Ne(mr)}function kt(mr,gr){return mr.test(gr)}function Et(mr,gr){return!kt(mr,gr)}var Ve=0;t.STATE={BEGIN:Ve++,BEGIN_WHITESPACE:Ve++,TEXT:Ve++,TEXT_ENTITY:Ve++,OPEN_WAKA:Ve++,SGML_DECL:Ve++,SGML_DECL_QUOTED:Ve++,DOCTYPE:Ve++,DOCTYPE_QUOTED:Ve++,DOCTYPE_DTD:Ve++,DOCTYPE_DTD_QUOTED:Ve++,COMMENT_STARTING:Ve++,COMMENT:Ve++,COMMENT_ENDING:Ve++,COMMENT_ENDED:Ve++,CDATA:Ve++,CDATA_ENDING:Ve++,CDATA_ENDING_2:Ve++,PROC_INST:Ve++,PROC_INST_BODY:Ve++,PROC_INST_ENDING:Ve++,OPEN_TAG:Ve++,OPEN_TAG_SLASH:Ve++,ATTRIB:Ve++,ATTRIB_NAME:Ve++,ATTRIB_NAME_SAW_WHITE:Ve++,ATTRIB_VALUE:Ve++,ATTRIB_VALUE_QUOTED:Ve++,ATTRIB_VALUE_CLOSED:Ve++,ATTRIB_VALUE_UNQUOTED:Ve++,ATTRIB_VALUE_ENTITY_Q:Ve++,ATTRIB_VALUE_ENTITY_U:Ve++,CLOSE_TAG:Ve++,CLOSE_TAG_SAW_WHITE:Ve++,SCRIPT:Ve++,SCRIPT_ENDING:Ve++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(mr){var gr=t.ENTITIES[mr],jr=typeof gr=="number"?String.fromCharCode(gr):gr;t.ENTITIES[mr]=jr});for(var qe in t.STATE)t.STATE[t.STATE[qe]]=qe;Ve=t.STATE;function jt(mr,gr,jr){mr[gr]&&mr[gr](jr)}function tr(mr,gr,jr){mr.textNode&&rr(mr),jt(mr,gr,jr)}function rr(mr){mr.textNode=ar(mr.opt,mr.textNode),mr.textNode&&jt(mr,"ontext",mr.textNode),mr.textNode=""}function ar(mr,gr){return mr.trim&&(gr=gr.trim()),mr.normalize&&(gr=gr.replace(/ \s +/g," ")),gr}function nr(mr,gr){return rr(mr),mr.trackPosition&&(gr+= `
2024-08-21 13:12:53 +08:00
Line : ` +mr.line+ `
Column : ` +mr.column+ `
2024-08-24 19:24:09 +08:00
Char : ` +mr.c),gr=new Error(gr),mr.error=gr,jt(mr,"onerror",gr),mr}function ur(mr){return mr.sawRoot&&!mr.closedRoot&&cr(mr,"Unclosed root tag"),mr.state!==Ve.BEGIN&&mr.state!==Ve.BEGIN_WHITESPACE&&mr.state!==Ve.TEXT&&nr(mr,"Unexpected end"),rr(mr),mr.c="",mr.closed=!0,jt(mr,"onend"),n.call(mr,mr.strict,mr.opt),mr}function cr(mr,gr){if(typeof mr!="object"||!(mr instanceof n))throw new Error("bad call to strictFail");mr.strict&&nr(mr,gr)}function _r(mr){mr.strict||(mr.tagName=mr.tagName[mr.looseCase]());var gr=mr.tags[mr.tags.length-1]||mr,jr=mr.tag={name:mr.tagName,attributes:{}};mr.opt.xmlns&&(jr.ns=gr.ns),mr.attribList.length=0,tr(mr,"onopentagstart",jr)}function hr(mr,gr){var jr=mr.indexOf(":"),Hr=jr<0?["",mr]:mr.split(":"),Vr=Hr[0],zr=Hr[1];return gr&&mr==="xmlns"&&(Vr="xmlns",zr=""),{prefix:Vr,local:zr}}function Er(mr){if(mr.strict||(mr.attribName=mr.attribName[mr.looseCase]()),mr.attribList.indexOf(mr.attribName)!==-1||mr.tag.attributes.hasOwnProperty(mr.attribName)){mr.attribName=mr.attribValue="";return}if(mr.opt.xmlns){var gr=hr(mr.attribName,!0),jr=gr.prefix,Hr=gr.local;if(jr==="xmlns")if(Hr==="xml"&&mr.attribValue!==ue)cr(mr,"xml: prefix must be bound to "+ue+ `
2024-08-21 13:12:53 +08:00
Actual : ` +mr.attribValue);else if(Hr==="xmlns"&&mr.attribValue!==de)cr(mr,"xmlns: prefix must be bound to "+de+ `
2024-08-24 19:24:09 +08:00
Actual : ` +mr.attribValue);else{var Vr=mr.tag,zr=mr.tags[mr.tags.length-1]||mr;Vr.ns===zr.ns&&(Vr.ns=Object.create(zr.ns)),Vr.ns[Hr]=mr.attribValue}mr.attribList.push([mr.attribName,mr.attribValue])}else mr.tag.attributes[mr.attribName]=mr.attribValue,tr(mr,"onattribute",{name:mr.attribName,value:mr.attribValue});mr.attribName=mr.attribValue=""}function kr(mr,gr){if(mr.opt.xmlns){var jr=mr.tag,Hr=hr(mr.tagName);jr.prefix=Hr.prefix,jr.local=Hr.local,jr.uri=jr.ns[Hr.prefix]||"",jr.prefix&&!jr.uri&&(cr(mr,"Unbound namespace prefix: "+JSON.stringify(mr.tagName)),jr.uri=Hr.prefix);var Vr=mr.tags[mr.tags.length-1]||mr;jr.ns&&Vr.ns!==jr.ns&&Object.keys(jr.ns).forEach(function(Nr){tr(mr,"onopennamespace",{prefix:Nr,uri:jr.ns[Nr]})});for(var zr=0,Tr=mr.attribList.length;zr<Tr;zr++){var Cr=mr.attribList[zr],Br=Cr[0],br=Cr[1],Sr=hr(Br,!0),Dr=Sr.prefix,Rr=Sr.local,Wr=Dr===""?"":jr.ns[Dr]||"",Kr={name:Br,value:br,prefix:Dr,local:Rr,uri:Wr};Dr&&Dr!=="xmlns"&&!Wr&&(cr(mr,"Unbound namespace prefix: "+JSON.stringify(Dr)),Kr.uri=Dr),mr.tag.attributes[Br]=Kr,tr(mr,"onattribute",Kr)}mr.attribList.length=0}mr.tag.isSelfClosing=!!gr,mr.sawRoot=!0,mr.tags.push(mr.tag),tr(mr,"onopentag",mr.tag),gr||(!mr.noscript&&mr.tagName.toLowerCase()==="script"?mr.state=Ve.SCRIPT:mr.state=Ve.TEXT,mr.tag=null,mr.tagName=""),mr.attribName=mr.attribValue="",mr.attribList.length=0}function xr(mr){if(!mr.tagName){cr(mr,"Weird empty close tag."),mr.textNode+="</>",mr.state=Ve.TEXT;return}if(mr.script){if(mr.tagName!=="script"){mr.script+="</"+mr.tagName+">",mr.tagName="",mr.state=Ve.SCRIPT;return}tr(mr,"onscript",mr.script),mr.script=""}var gr=mr.tags.length,jr=mr.tagName;mr.strict||(jr=jr[mr.looseCase]());for(var Hr=jr;gr--;){var Vr=mr.tags[gr];if(Vr.name!==Hr)cr(mr,"Unexpected close tag");else break}if(gr<0){cr(mr,"Unmatched closing tag: "+mr.tagName),mr.textNode+="</"+mr.tagName+">",mr.state=Ve.TEXT;return}mr.tagName=jr;for(var zr=mr.tags.length;zr-- >gr;){var Tr=mr.tag=mr.tags.pop();mr.tagName=mr.tag.name,tr(mr,"onclosetag",mr.tagName);var Cr={};for(var Br in Tr.ns)Cr[Br]=Tr.ns[Br];var br=mr.tags[mr.tags.length-1]||mr;mr.opt.xmlns&&Tr.ns!==br.ns&&Object.keys(Tr.ns).forEach(function(Sr){var Dr=Tr.ns[Sr];tr(mr,"onclosenamespace",{prefix:Sr,uri:Dr})})}gr===0&&(mr.closedRoot=!0),mr.tagName=mr.attribValue=mr.attribName="",mr.attribList.length=0,mr.state=Ve.TEXT}function yr(mr){var gr=mr.entity,jr=gr.toLowerCase(),Hr,Vr="";return mr.ENTITIES[gr]?mr.ENTITIES[gr]:mr.ENTITIES[jr]?mr.ENTITIES[jr]:(gr=jr,gr.charAt(0)==="#"&&(gr.charAt(1)==="x"?(gr=gr.slice(2),Hr=parseInt(gr,16),Vr=Hr.toString(16)):(gr=gr.slice(1),Hr=parseInt(gr,10),Vr=Hr.toString(10))),gr=gr.replace(/^0+/,""),isNaN(Hr)||Vr.toLowerCase()!==gr?(cr(mr,"Invalid character entity"),"&"+mr.entity+";"):String.fromCodePoint(Hr))}function vr(mr,gr){gr==="<"?(mr.state=Ve.OPEN_WAKA,mr.startTagPosition=mr.position):Ne(gr)||(cr(mr,"Non-whitespace before first tag."),mr.textNode=gr,mr.state=Ve.TEXT)}function Ir(mr,gr){var jr="";return gr<mr.length&&(jr=mr.charAt(gr)),jr}function Mr(mr){var gr=this;if(this.error)throw this.error;if(gr.closed)return nr(gr,"Cannot write after close. Assign an onready handler.");if(mr===null)return ur(gr);typeof mr=="object"&&(mr=mr.toString());for(var jr=0,Hr="";Hr=Ir(mr,jr++),gr.c=Hr,!!Hr;)switch(gr.trackPosition&&(gr.position++,Hr=== `
` ?(gr.line++,gr.column=0):gr.column++),gr.state){case Ve.BEGIN:if(gr.state=Ve.BEGIN_WHITESPACE,Hr===" \u FEFF")continue;vr(gr,Hr);continue;case Ve.BEGIN_WHITESPACE:vr(gr,Hr);continue;case Ve.TEXT:if(gr.sawRoot&&!gr.closedRoot){for(var Vr=jr-1;Hr&&Hr!=="<"&&Hr!=="&";)Hr=Ir(mr,jr++),Hr&&gr.trackPosition&&(gr.position++,Hr=== `
2024-08-25 08:49:45 +08:00
` ?(gr.line++,gr.column=0):gr.column++);gr.textNode+=mr.substring(Vr,jr-1)}Hr==="<"&&!(gr.sawRoot&&gr.closedRoot&&!gr.strict)?(gr.state=Ve.OPEN_WAKA,gr.startTagPosition=gr.position):(!Ne(Hr)&&(!gr.sawRoot||gr.closedRoot)&&cr(gr,"Text data outside of root node."),Hr==="&"?gr.state=Ve.TEXT_ENTITY:gr.textNode+=Hr);continue;case Ve.SCRIPT:Hr==="<"?gr.state=Ve.SCRIPT_ENDING:gr.script+=Hr;continue;case Ve.SCRIPT_ENDING:Hr==="/"?gr.state=Ve.CLOSE_TAG:(gr.script+="<"+Hr,gr.state=Ve.SCRIPT);continue;case Ve.OPEN_WAKA:if(Hr==="!")gr.state=Ve.SGML_DECL,gr.sgmlDecl="";else if(!Ne(Hr))if(kt(Ie,Hr))gr.state=Ve.OPEN_TAG,gr.tagName=Hr;else if(Hr==="/")gr.state=Ve.CLOSE_TAG,gr.tagName="";else if(Hr==="?")gr.state=Ve.PROC_INST,gr.procInstName=gr.procInstBody="";else{if(cr(gr,"Unencoded <"),gr.startTagPosition+1<gr.position){var zr=gr.position-gr.startTagPosition;Hr=new Array(zr).join(" ")+Hr}gr.textNode+="<"+Hr,gr.state=Ve.TEXT}continue;case Ve.SGML_DECL:if(gr.sgmlDecl+Hr==="--"){gr.state=Ve.COMMENT,gr.comment="",gr.sgmlDecl="";continue}gr.doctype&&gr.doctype!==!0&&gr.sgmlDecl?(gr.state=Ve.DOCTYPE_DTD,gr.doctype+="<!"+gr.sgmlDecl+Hr,gr.sgmlDecl=""):(gr.sgmlDecl+Hr).toUpperCase()===ie?(tr(gr,"onopencdata"),gr.state=Ve.CDATA,gr.sgmlDecl="",gr.cdata=""):(gr.sgmlDecl+Hr).toUpperCase()===oe?(gr.state=Ve.DOCTYPE,(gr.doctype||gr.sawRoot)&&cr(gr,"Inappropriately located doctype declaration"),gr.doctype="",gr.sgmlDecl=""):Hr===">"?(tr(gr,"onsgmldeclaration",gr.sgmlDecl),gr.sgmlDecl="",gr.state=Ve.TEXT):(Fe(Hr)&&(gr.state=Ve.SGML_DECL_QUOTED),gr.sgmlDecl+=Hr);continue;case Ve.SGML_DECL_QUOTED:Hr===gr.q&&(gr.state=Ve.SGML_DECL,gr.q=""),gr.sgmlDecl+=Hr;continue;case Ve.DOCTYPE:Hr===">"?(gr.state=Ve.TEXT,tr(gr,"ondoctype",gr.doctype),gr.doctype=!0):(gr.doctype+=Hr,Hr==="["?gr.state=Ve.DOCTYPE_DTD:Fe(Hr)&&(gr.state=Ve.DOCTYPE_QUOTED,gr.q=Hr));continue;case Ve.DOCTYPE_QUOTED:gr.doctype+=Hr,Hr===gr.q&&(gr.q="",gr.state=Ve.DOCTYPE);continue;case Ve.DOCTYPE_DTD:Hr==="]"?(gr.doctype+=Hr,gr.state=Ve.DOCTYPE):Hr==="<"?(gr.state=Ve.OPEN_WAKA,gr.startTagPosition=gr.position):Fe(Hr)?(gr.doctype+=Hr,gr.state=Ve.DOCTYPE_DTD_QUOTED,gr.q=Hr):gr.doctype+=Hr;continue;case Ve.DOCTYPE_DTD_QUOTED:gr.doctype+=Hr,Hr===gr.q&&(gr.state=Ve.DOCTYPE_DTD,gr.q="");continue;case Ve.COMMENT:Hr==="-"?gr.state=Ve.COMMENT_ENDING:gr.comment+=Hr;continue;case Ve.COMMENT_ENDING:Hr==="-"?(gr.state=Ve.COMMENT_ENDED,gr.comment=ar(gr.opt,gr.comment),gr.comment&&tr(gr,"oncomment",gr.comment),gr.comment=""):(gr.comment+="-"+Hr,gr.state=Ve.COMMENT);continue;case Ve.COMMENT_ENDED:Hr!==">"?(cr(gr,"Malformed comment"),gr.comment+="--"+Hr,gr.state=Ve.COMMENT):gr.doctype&&gr.doctype!==!0?gr.state=Ve.DOCTYPE_DTD:gr.state=Ve.TEXT;continue;case Ve.CDATA:Hr==="]"?gr.state=Ve.CDATA_ENDING:gr.cdata+=Hr;continue;case Ve.CDATA_ENDING:Hr==="]"?gr.state=Ve.CDATA_ENDING_2:(gr.cdata+="]"+Hr,gr.state=Ve.CDATA);continue;case Ve.CDATA_ENDING_2:Hr===">"?(gr.cdata&&tr(gr,"oncdata",gr.cdata),tr(gr,"onclosecdata"),gr.cdata="",gr.state=Ve.TEXT):Hr==="]"?gr.cdata+="]":(gr.cdata+="]]"+Hr,gr.state=Ve.CDATA);continue;case Ve.PROC_INST:Hr==="?"?gr.state=Ve.PROC_INST_ENDING:Ne(Hr)?gr.state=Ve.PROC_INST_BODY:gr.procInstName+=Hr;continue;case Ve.PROC_INST_BODY:if(!gr.procInstBody&&Ne(Hr))continue;Hr==="?"?gr.state=Ve.PROC_INST_ENDING:gr.procInstBody+=Hr;continue;case Ve.PROC_INST_ENDING:Hr===">"?(tr(gr,"onprocessinginstruction",{name:gr.procInstName,body:gr.procInstBody}),gr.procInstName=gr.procInstBody="",gr.state=Ve.TEXT):(gr.procInstBody+="?"+Hr,gr.state=Ve.PROC_INST_BODY);continue;case Ve.OPEN_TAG:kt(_e,Hr)?gr.tagName+=Hr:(_r(gr),Hr===">"?kr(gr):Hr==="/"?gr.state=Ve.OPEN_TAG_SLASH:(Ne(Hr)||cr(gr,"Invalid character in tag name"),gr.state=Ve.ATTRIB));continue;case Ve.OPEN_TAG_SLASH:Hr===">"?(kr(gr,!0),xr(gr)):(cr(gr,"Forward-slash in opening tag not followed by >"),gr.state=Ve.ATTRIB);continue;case Ve.ATTRIB:if(Ne(Hr))continue;Hr===">"?kr(gr):Hr==="/"?gr.state=Ve.OPEN_TAG_SLASH:kt(Ie,Hr)?(gr.attribName=Hr,gr.attribValue="",gr.state=Ve.ATTRIB_NAME):cr(gr,"Invalid attribute name");continue;case Ve.ATTRIB_NAME:Hr==="="?gr.state
2024-08-21 13:12:53 +08:00
` &&e[L]!==" \r ";L++)V+=e[L];if(V=V.trim(),V[V.length-1]==="/"&&(V=V.substring(0,V.length-1),L--),!validateTagName(V)){let ie;return V.trim().length===0?ie="Invalid space after '<'.":ie="Tag '"+V+"' is an invalid name.",getErrorObject("InvalidTag",ie,getLineNumberForPosition(e,L))}const z=readAttributeStr(e,L);if(z===!1)return getErrorObject("InvalidAttr","Attributes for '"+V+"' have open quote.",getLineNumberForPosition(e,L));let re=z.value;if(L=z.index,re[re.length-1]==="/"){const ie=L-re.length;re=re.substring(0,re.length-1);const oe=validateAttributeString(re,t);if(oe===!0)n=!0;else return getErrorObject(oe.err.code,oe.err.msg,getLineNumberForPosition(e,ie+oe.err.line))}else if(j)if(z.tagClosed){if(re.trim().length>0)return getErrorObject("InvalidTag","Closing tag '"+V+"' can't have attributes or invalid starting.",getLineNumberForPosition(e, $ ));if(y.length===0)return getErrorObject("InvalidTag","Closing tag '"+V+"' has not been opened.",getLineNumberForPosition(e, $ ));{const ie=y.pop();if(V!==ie.tagName){let oe=getLineNumberForPosition(e,ie.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+ie.tagName+"' (opened in line "+oe.line+", col "+oe.col+") instead of closing tag '"+V+"'.",getLineNumberForPosition(e, $ ))}y.length==0&&(k=!0)}}else return getErrorObject("InvalidTag","Closing tag '"+V+"' doesn't have proper closing.",getLineNumberForPosition(e,L));else{const ie=validateAttributeString(re,t);if(ie!==!0)return getErrorObject(ie.err.code,ie.err.msg,getLineNumberForPosition(e,L-re.length+ie.err.line));if(k===!0)return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(e,L));t.unpairedTags.indexOf(V)!==-1||y.push({tagName:V,tagStartPos: $ }),n=!0}for(L++;L<e.length;L++)if(e[L]==="<")if(e[L+1]==="!"){L++,L=readCommentAndCDATA(e,L);continue}else if(e[L+1]==="?"){if(L=readPI(e,++L),L.err)return L}else break;else if(e[L]==="&"){const ie=validateAmpersand(e,L);if(ie==-1)return getErrorObject("InvalidChar","char '&' is not expected.",getLineNumberForPosition(e,L));L=ie}else if(k===!0&&!isWhiteSpace(e[L]))return getErrorObject("InvalidXml","Extra text at the end",getLineNumberForPosition(e,L));e[L]==="<"&&L--}}else{if(isWhiteSpace(e[L]))continue;return getErrorObject("InvalidChar","char '"+e[L]+"' is not expected.",getLineNumberForPosition(e,L))}if(n){if(y.length==1)return getErrorObject("InvalidTag","Unclosed tag '"+y[0].tagName+"'.",getLineNumberForPosition(e,y[0].tagStartPos));if(y.length>0)return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(y.map(L=>L.tagName),null,4).replace(/ \r ? \n /g,"")+"' found.",{line:1,col:1})}else return getErrorObject("InvalidXml","Start tag expected.",1);return!0};function isWhiteSpace(e){return e===" "||e===" "||e=== `
` ||e===" \r "}function readPI(e,t){const y=t;for(;t<e.length;t++)if(e[t]=="?"||e[t]==" "){const n=e.substr(y,t-y);if(t>5&&n==="xml")return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}else continue}return t}function readCommentAndCDATA(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t<e.length;t++)if(e[t]==="-"&&e[t+1]==="-"&&e[t+2]===">"){t+=2;break}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let y=1;for(t+=8;t<e.length;t++)if(e[t]==="<")y++;else if(e[t]===">"&&(y--,y===0))break}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t<e.length;t++)if(e[t]==="]"&&e[t+1]==="]"&&e[t+2]===">"){t+=2;break}}return t}const doubleQuote='"',singleQuote="'";function readAttributeStr(e,t){let y="",n="",k=!1;for(;t<e.length;t++){if(e[t]===doubleQuote||e[t]===singleQuote)n===""?n=e[t]:n!==e[t]||(n="");else if(e[t]===">"&&n===""){k=!0;break}y+=e[t]}return n!==""?!1:{value:y,index:t,tagClosed:k}}const validAttrStrRegxp=new RegExp( ` ( \ \ s * ) ( [ ^ \ \ s = ] + ) ( \ \ s *= ) ? ( \ \ s * ( [ '"])(([\\s\\S])*?)\\5)?`,"g");function validateAttributeString(e,t){const y=util$3.getAllMatches(e,validAttrStrRegxp),n={};for(let k=0;k<y.length;k++){if(y[k][1].length===0)return getErrorObject("InvalidAttr","Attribute ' "+y[k][2]+" ' has no space in starting.",getPositionFromMatch(y[k]));if(y[k][3]!==void 0&&y[k][4]===void 0)return getErrorObject("InvalidAttr","Attribute ' "+y[k][2]+" ' is without value.",getPositionFromMatch(y[k]));if(y[k][3]===void 0&&!t.allowBooleanAttributes)return getErrorObject("InvalidAttr","boolean attribute ' "+y[k][2]+" ' is not allowed.",getPositionFromMatch(y[k]));const L=y[k][2];if(!validateAttrName(L))return getErrorObject("InvalidAttr","Attribute ' "+L+" ' is an invalid name.",getPositionFromMatch(y[k]));if(!n.hasOwnProperty(L))n[L]=1;else return getErrorObject("InvalidAttr","Attribute ' "+L+" ' is repeated . ",getPositionFromMatch(y[k]))}return!0}function validateNumberAmpersand(e,t){let y=/\d/;for(e[t]===" x "&&(t++,y=/[\da-fA-F]/);t<e.length;t++){if(e[t]===" ; ")return t;if(!e[t].match(y))break}return-1}function validateAmpersand(e,t){if(t++,e[t]===" ; ")return-1;if(e[t]===" # ")return t++,validateNumberAmpersand(e,t);let y=0;for(;t<e.length;t++,y++)if(!(e[t].match(/\w/)&&y<20)){if(e[t]===" ; ")break;return-1}return t}function getErrorObject(e,t,y){return{err:{code:e,msg:t,line:y.line||y,col:y.col}}}function validateAttrName(e){return util$3.isName(e)}function validateTagName(e){return util$3.isName(e)}function getLineNumberForPosition(e,t){const y=e.substring(0,t).split(/\r?\n/);return{line:y.length,col:y[y.length-1].length+1}}function getPositionFromMatch(e){return e.startIndex+e[1].length}var OptionsBuilder={};const defaultOptions$1={preserveOrder:!1,attributeNamePrefix:" @ _ ",attributesGroupName:!1,textNodeName:" # text ",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,y){return e}},buildOptions$1=function(e){return Object.assign({},defaultOptions$1,e)};OptionsBuilder.buildOptions=buildOptions$1;OptionsBuilder.defaultOptions=defaultOptions$1;class XmlNode{constructor(t){this.tagname=t,this.child=[],this[" : @ "]={}}add(t,y){t===" _ _proto _ _ "&&(t=" # _ _proto _ _ "),this.child.push({[t]:y})}addChild(t){t.tagname===" _ _proto _ _ "&&(t.tagname=" # _ _proto _ _ "),t[" : @ "]&&Object.keys(t[" : @ "]).length>0?this.child.push({[t.tagname]:t.child," : @ ":t[" : @ " ] } ) : this . child . push ( { [ t . tagname ] : t . child } ) } } var xmlNode$1 = XmlNode ; const util$2 = util$4 ; function readDocType$1 ( e , t ) { const
` );const t=new xmlNode("!xml");let y=t,n="",k="";for(let L=0;L<e.length;L++)if(e[L]==="<")if(e[L+1]==="/"){const j=findClosingIndex(e,">",L,"Closing Tag is not closed.");let V=e.substring(L+2,j).trim();if(this.options.removeNSPrefix){const ie=V.indexOf(":");ie!==-1&&(V=V.substr(ie+1))}this.options.transformTagName&&(V=this.options.transformTagName(V)),y&&(n=this.saveTextToParentTag(n,y,k));const z=k.substring(k.lastIndexOf(".")+1);if(V&&this.options.unpairedTags.indexOf(V)!==-1)throw new Error( ` Unpaired tag can not be used as closing tag : < /${V}>`);let re=0;z&&this.options.unpairedTags.indexOf(z)!==-1?(re=k.lastIndexOf(".",k.lastIndexOf(".")-1),this.tagsNodeStack.pop()):re=k.lastIndexOf("."),k=k.substring(0,re),y=this.tagsNodeStack.pop(),n="",L=j}else if(e[L+1]==="?"){let j=readTagExp(e,L,!1,"?>");if(!j)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,y,k),!(this.options.ignoreDeclaration&&j.tagName==="?xml"||this.options.ignorePiTags)){const V=new xmlNode(j.tagName);V.add(this.options.textNodeName,""),j.tagName!==j.tagExp&&j.attrExpPresent&&(V[":@"]=this.buildAttributesMap(j.tagExp,k,j.tagName)),this.addChild(y,V,k)}L=j.closeIndex+1}else if(e.substr(L+1,3)==="!--"){const j=findClosingIndex(e,"-->",L+4,"Comment is not closed.");if(this.options.commentPropName){const V=e.substring(L+4,j-2);n=this.saveTextToParentTag(n,y,k),y.add(this.options.commentPropName,[{[this.options.textNodeName]:V}])}L=j}else if(e.substr(L+1,2)==="!D"){const j=readDocType(e,L);this.docTypeEntities=j.entities,L=j.i}else if(e.substr(L+1,2)==="!["){const j=findClosingIndex(e,"]]>",L,"CDATA is not closed.")-2,V=e.substring(L+9,j);n=this.saveTextToParentTag(n,y,k);let z=this.parseTextData(V,y.tagname,k,!0,!1,!0,!0);z==null&&(z=""),this.options.cdataPropName?y.add(this.options.cdataPropName,[{[this.options.textNodeName]:V}]):y.add(this.options.textNodeName,z),L=j+2}else{let j=readTagExp(e,L,this.options.removeNSPrefix),V=j.tagName;const z=j.rawTagName;let re=j.tagExp,ie=j.attrExpPresent,oe=j.closeIndex;this.options.transformTagName&&(V=this.options.transformTagName(V)),y&&n&&y.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,y,k,!1));const ue=y;if(ue&&this.options.unpairedTags.indexOf(ue.tagname)!==-1&&(y=this.tagsNodeStack.pop(),k=k.substring(0,k.lastIndexOf("."))),V!==t.tagname&&(k+=k?"."+V:V),this.isItStopNode(this.options.stopNodes,k,V)){let de="";if(re.length>0&&re.lastIndexOf("/ ")===re.length-1)V[V.length-1]===" / "?(V=V.substr(0,V.length-1),k=k.substr(0,k.length-1),re=V):re=re.substr(0,re.length-1),L=j.closeIndex;else if(this.options.unpairedTags.indexOf(V)!==-1)L=j.closeIndex;else{const Ie=this.readStopNodeData(e,z,oe+1);if(!Ie)throw new Error(`Unexpected end of ${z}`);L=Ie.i,de=Ie.tagContent}const pe=new xmlNode(V);V!==re&&ie&&(pe[" : @ "]=this.buildAttributesMap(re,k,V)),de&&(de=this.parseTextData(de,V,k,!0,ie,!0,!0)),k=k.substr(0,k.lastIndexOf(" . ")),pe.add(this.options.textNodeName,de),this.addChild(y,pe,k)}else{if(re.length>0&&re.lastIndexOf(" / ")===re.length-1){V[V.length-1]===" / "?(V=V.substr(0,V.length-1),k=k.substr(0,k.length-1),re=V):re=re.substr(0,re.length-1),this.options.transformTagName&&(V=this.options.transformTagName(V));const de=new xmlNode(V);V!==re&&ie&&(de[" : @ "]=this.buildAttributesMap(re,k,V)),this.addChild(y,de,k),k=k.substr(0,k.lastIndexOf(" . "))}else{const de=new xmlNode(V);this.tagsNodeStack.push(y),V!==re&&ie&&(de[" : @ "]=this.buildAttributesMap(re,k,V)),this.addChild(y,de,k),y=de}n=" ",L=oe}}else n+=e[L];return t.child};function addChild(e,t,y){const n=this.options.updateTag(t.tagname,y,t[" : @ "]);n===!1||(typeof n==" string " && ( t . tagname = n ) , e . addChild ( t ) ) } const replaceEntitiesValue$1 = function ( e ) { if ( this . options . processEntities ) { for ( let t in this . docTypeEntities ) { const y = this . docTypeEntities [ t ] ; e = e . replace ( y . regx , y . val ) } for ( let t in this . lastEntities ) { const y = this . lastEntities [ t ] ; e = e . replace ( y . regex , y . val ) } if ( this . options . htmlEntities ) for ( let t in this . htmlEntities ) { const y = this . htmlEntities [ t ] ; e = e . replace ( y . regex , y . val ) } e = e . replace ( this . ampEntity . regex , this . ampEntity . val ) } return e } ; function saveTextToParentTa
` ;function toXml(e,t){let y="";return t.format&&t.indentBy.length>0&&(y=EOL),arrToStr(e,t,"",y)}function arrToStr(e,t,y,n){let k="",L=!1;for(let $ =0; $ <e.length; $ ++){const j=e[ $ ],V=propName(j);if(V===void 0)continue;let z="";if(y.length===0?z=V:z= ` $ { y } . $ { V } ` ,V===t.textNodeName){let de=j[V];isStopNode(z,t)||(de=t.tagValueProcessor(V,de),de=replaceEntitiesValue(de,t)),L&&(k+=n),k+=de,L=!1;continue}else if(V===t.cdataPropName){L&&(k+=n),k+= ` < ! [ CDATA [ $ { j [ V ] [ 0 ] [ t . textNodeName ] } ] ] > ` ,L=!1;continue}else if(V===t.commentPropName){k+=n+ ` <!-- $ { j [ V ] [ 0 ] [ t . textNodeName ] } -- > ` ,L=!0;continue}else if(V[0]==="?"){const de=attr_to_str(j[":@"],t),pe=V==="?xml"?"":n;let Ie=j[V][0][t.textNodeName];Ie=Ie.length!==0?" "+Ie:"",k+=pe+ ` < $ { V } $ { Ie } $ { de } ? > ` ,L=!0;continue}let re=n;re!==""&&(re+=t.indentBy);const ie=attr_to_str(j[":@"],t),oe=n+ ` < $ { V } $ { ie } ` ,ue=arrToStr(j[V],t,z,re);t.unpairedTags.indexOf(V)!==-1?t.suppressUnpairedNode?k+=oe+">":k+=oe+"/>":(!ue||ue.length===0)&&t.suppressEmptyNode?k+=oe+"/>":ue&&ue.endsWith(">")?k+=oe+ ` > $ { ue } $ { n } < /${V}>`:(k+=oe+">",ue&&n!==""&&(ue.includes("/ > ")||ue.includes(" < /"))?k+=n+t.indentBy+ue+n:k+=ue,k+=`</ $ { V } > ` ),L=!0}return k}function propName(e){const t=Object.keys(e);for(let y=0;y<t.length;y++){const n=t[y];if(e.hasOwnProperty(n)&&n!==":@")return n}}function attr_to_str(e,t){let y="";if(e&&!t.ignoreAttributes)for(let n in e){if(!e.hasOwnProperty(n))continue;let k=t.attributeValueProcessor(n,e[n]);k=replaceEntitiesValue(k,t),k===!0&&t.suppressBooleanAttributes?y+= ` $ { n . substr ( t . attributeNamePrefix . length ) } ` :y+= ` $ { n . substr ( t . attributeNamePrefix . length ) } = "${k}" ` }return y}function isStopNode(e,t){e=e.substr(0,e.length-t.textNodeName.length-1);let y=e.substr(e.lastIndexOf(".")+1);for(let n in t.stopNodes)if(t.stopNodes[n]===e||t.stopNodes[n]==="*."+y)return!0;return!1}function replaceEntitiesValue(e,t){if(e&&e.length>0&&t.processEntities)for(let y=0;y<t.entities.length;y++){const n=t.entities[y];e=e.replace(n.regex,n.val)}return e}var orderedJs2Xml=toXml;const buildFromOrderedJs=orderedJs2Xml,defaultOptions={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function Builder(e){this.options=Object.assign({},defaultOptions,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=isAttribute),this.processTextOrObjNode=processTextOrObjNode,this.options.format?(this.indentate=indentate,this.tagEndChar= ` >
` ,this.newLine= `
2024-08-24 19:24:09 +08:00
` ):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Builder.prototype.build=function(e){return this.options.preserveOrder?buildFromOrderedJs(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)};Builder.prototype.j2x=function(e,t){let y="",n="";for(let k in e)if(Object.prototype.hasOwnProperty.call(e,k))if(typeof e[k]>"u")this.isAttribute(k)&&(n+="");else if(e[k]===null)this.isAttribute(k)?n+="":k[0]==="?"?n+=this.indentate(t)+"<"+k+"?"+this.tagEndChar:n+=this.indentate(t)+"<"+k+"/"+this.tagEndChar;else if(e[k]instanceof Date)n+=this.buildTextValNode(e[k],k,"",t);else if(typeof e[k]!="object"){const L=this.isAttribute(k);if(L)y+=this.buildAttrPairStr(L,""+e[k]);else if(k===this.options.textNodeName){let $ =this.options.tagValueProcessor(k,""+e[k]);n+=this.replaceEntitiesValue( $ )}else n+=this.buildTextValNode(e[k],k,"",t)}else if(Array.isArray(e[k])){const L=e[k].length;let $ ="",j="";for(let V=0;V<L;V++){const z=e[k][V];if(!(typeof z>"u"))if(z===null)k[0]==="?"?n+=this.indentate(t)+"<"+k+"?"+this.tagEndChar:n+=this.indentate(t)+"<"+k+"/"+this.tagEndChar;else if(typeof z=="object")if(this.options.oneListGroup){const re=this.j2x(z,t+1); $ +=re.val,this.options.attributesGroupName&&z.hasOwnProperty(this.options.attributesGroupName)&&(j+=re.attrStr)}else $ +=this.processTextOrObjNode(z,k,t);else if(this.options.oneListGroup){let re=this.options.tagValueProcessor(k,z);re=this.replaceEntitiesValue(re), $ +=re}else $ +=this.buildTextValNode(z,k,"",t)}this.options.oneListGroup&&( $ =this.buildObjectNode( $ ,k,j,t)),n+= $ }else if(this.options.attributesGroupName&&k===this.options.attributesGroupName){const L=Object.keys(e[k]), $ =L.length;for(let j=0;j< $ ;j++)y+=this.buildAttrPairStr(L[j],""+e[k][L[j]])}else n+=this.processTextOrObjNode(e[k],k,t);return{attrStr:y,val:n}};Builder.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&t==="true"?" "+e:" "+e+'="'+t+'"'};function processTextOrObjNode(e,t,y){const n=this.j2x(e,y+1);return e[this.options.textNodeName]!==void 0&&Object.keys(e).length===1?this.buildTextValNode(e[this.options.textNodeName],t,n.attrStr,y):this.buildObjectNode(n.val,t,n.attrStr,y)}Builder.prototype.buildObjectNode=function(e,t,y,n){if(e==="")return t[0]==="?"?this.indentate(n)+"<"+t+y+"?"+this.tagEndChar:this.indentate(n)+"<"+t+y+this.closeTag(t)+this.tagEndChar;{let k="</"+t+this.tagEndChar,L="";return t[0]==="?"&&(L="?",k=""),(y||y==="")&&e.indexOf("<")===-1?this.indentate(n)+"<"+t+y+L+">"+e+k:this.options.commentPropName!==!1&&t===this.options.commentPropName&&L.length===0?this.indentate(n)+ ` <!-- $ { e } -- > ` +this.newLine:this.indentate(n)+"<"+t+y+L+this.tagEndChar+e+this.indentate(n)+k}};Builder.prototype.closeTag=function(e){let t="";return this.options.unpairedTags.indexOf(e)!==-1?this.options.suppressUnpairedNode||(t="/"):this.options.suppressEmptyNode?t="/":t= ` > < /${e}`,t};Builder.prototype.buildTextValNode=function(e,t,y,n){if(this.options.cdataPropName!==!1&&t===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${e}]]>`+this.newLine;if(this.options.commentPropName!==!1&&t===this.options.commentPropName)return this.indentate(n)+`<!--${e}-->`+this.newLine;if(t[0]==="?")return this.indentate(n)+"<"+t+y+"?"+this.tagEndChar;{let k=this.options.tagValueProcessor(t,e);return k=this.replaceEntitiesValue(k),k===""?this.indentate(n)+"<"+t+y+this.closeTag(t)+this.tagEndChar:this.indentate(n)+"<"+t+y+">"+k+"</ " + t + this . tagEndChar } } ; Builder . prototype . replaceEntitiesValue = function ( e ) { if ( e && e . length > 0 && this . options . processEntities ) for ( let t = 0 ; t < this . options . entities . length ; t ++ ) { const y = this . options . entities [ t ] ; e = e . replace ( y . regex , y . val ) } return e } ; function indentate ( e ) { return this . options . indentBy . repeat ( e ) } function isAttribute ( e ) { return e . startsWith ( this . options . attributeNamePrefix ) && e !== this . options . textNodeName ? e . substr ( this . attrPrefixLen ) : ! 1 } var json2xml = Builder ; const validator$1 = vali
2024-08-21 13:12:53 +08:00
* mime - db
* Copyright ( c ) 2014 Jonathan Ong
* Copyright ( c ) 2015 - 2022 Douglas Christopher Wilson
* MIT Licensed
* /var mimeDb=require$$0;/ * !
* mime - types
* Copyright ( c ) 2014 Jonathan Ong
* Copyright ( c ) 2015 Douglas Christopher Wilson
* MIT Licensed
2024-08-25 08:49:45 +08:00
* /(function(e){var t=mimeDb,y=pathBrowserify.extname,n=/ ^ \ s * ( [ ^ ; \ s ] * ) ( ? : ; | \ s | $ ) / , k = /^text\//i ; e . charset = L , e . charsets = { lookup : L } , e . contentType = $ , e . extension = j , e . extensions = Object . create ( null ) , e . lookup = V , e . types = Object . create ( null ) , z ( e . extensions , e . types ) ; function L ( re ) { if ( ! re || typeof re != "string" ) return ! 1 ; var ie = n . exec ( re ) , oe = ie && t [ ie [ 1 ] . toLowerCase ( ) ] ; return oe && oe . charset ? oe . charset : ie && k . test ( ie [ 1 ] ) ? "UTF-8" : ! 1 } function $ ( re ) { if ( ! re || typeof re != "string" ) return ! 1 ; var ie = re . indexOf ( "/" ) === - 1 ? e . lookup ( re ) : re ; if ( ! ie ) return ! 1 ; if ( ie . indexOf ( "charset" ) === - 1 ) { var oe = e . charset ( ie ) ; oe && ( ie += "; charset=" + oe . toLowerCase ( ) ) } return ie } function j ( re ) { if ( ! re || typeof re != "string" ) return ! 1 ; var ie = n . exec ( re ) , oe = ie && e . extensions [ ie [ 1 ] . toLowerCase ( ) ] ; return ! oe || ! oe . length ? ! 1 : oe [ 0 ] } function V ( re ) { if ( ! re || typeof re != "string" ) return ! 1 ; var ie = y ( "x." + re ) . toLowerCase ( ) . substr ( 1 ) ; return ie && e . types [ ie ] || ! 1 } function z ( re , ie ) { var oe = [ "nginx" , "apache" , void 0 , "iana" ] ; Object . keys ( t ) . forEach ( function ( de ) { var pe = t [ de ] , Ie = pe . extensions ; if ( ! ( ! Ie || ! Ie . length ) ) { re [ de ] = Ie ; for ( var _e = 0 ; _e < Ie . length ; _e ++ ) { var Ce = Ie [ _e ] ; if ( ie [ Ce ] ) { var he = oe . indexOf ( t [ ie [ Ce ] ] . source ) , Ne = oe . indexOf ( pe . source ) ; if ( ie [ Ce ] !== "application/octet-stream" && ( he > Ne || he === Ne && ie [ Ce ] . substr ( 0 , 12 ) === "application/" ) ) continue } ie [ Ce ] = de } } } ) } } ) ( mimeTypes$1 ) ; let ENCRYPTION _TYPES = function ( e ) { return e . SSEC = "SSE-C" , e . KMS = "KMS" , e } ( { } ) , RETENTION _MODES = function ( e ) { return e . GOVERNANCE = "GOVERNANCE" , e . COMPLIANCE = "COMPLIANCE" , e } ( { } ) , RETENTION _VALIDITY _UNITS = function ( e ) { return e . DAYS = "Days" , e . YEARS = "Years" , e } ( { } ) , LEGAL _HOLD _STATUS = function ( e ) { return e . ENABLED = "ON" , e . DISABLED = "OFF" , e } ( { } ) ; const MetaDataHeaderPrefix = "x-amz-meta-" ; function uriEscape ( e ) { return e . split ( "" ) . reduce ( ( t , y ) => { const n = Buffer$2 . from ( y ) ; if ( n . length === 1 && ( "A" <= y && y <= "Z" || "a" <= y && y <= "z" || "0" <= y && y <= "9" || y === "_" || y === "." || y === "~" || y === "-" ) ) return t = t + y , t ; for ( const k of n ) t = t + "%" + k . toString ( 16 ) . toUpperCase ( ) ; return t } , "" ) } function uriResourceEscape ( e ) { return uriEscape ( e ) . replace ( /%2F/g , "/" ) } function getScope ( e , t , y = "s3" ) { return ` ${ makeDateShort ( t ) } / ${ e } / ${ y } /aws4_request ` } function isAmazonEndpoint ( e ) { return e === "s3.amazonaws.com" || e === "s3.cn-north-1.amazonaws.com.cn" } function isVirtualHostStyle ( e , t , y , n ) { return t === "https:" && y . includes ( "." ) ? ! 1 : isAmazonEndpoint ( e ) || ! n } function isValidIP ( e ) { return ipaddr . isValid ( e ) } function isValidEndpoint ( e ) { return isValidDomain ( e ) || isValidIP ( e ) } function isValidDomain ( e ) { if ( ! isString$1 ( e ) || e . length === 0 || e . length > 255 || e [ 0 ] === "-" || e . slice ( - 1 ) === "-" || e [ 0 ] === "_" || e . slice ( - 1 ) === "_" || e [ 0 ] === "." ) return ! 1 ; const t = "`~!@#$%^&*()+={}[]|\\\"';:><?/" ; for ( const y of t ) if ( e . includes ( y ) ) return ! 1 ; return ! 0 } function probeContentType ( e ) { let t = mimeTypes$1 . lookup ( e ) ; return t || ( t = "application/octet-stream" ) , t } function isValidPort ( e ) { return isNumber$2 ( e ) ? 0 <= e && e <= 65535 : ! 1 } function isValidBucketName ( e ) { return ! isString$1 ( e ) || e . length < 3 || e . length > 63 || e . includes ( ".." ) || /[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/ . test ( e ) ? ! 1 : ! ! /^[a-z0-9][a-z0-9.-]+[a-z0-9]$/ . test ( e ) } function isValidObjectName ( e ) { return isValidPrefix ( e ) ? e . length !== 0 : ! 1 } function isValidPrefix ( e ) { return ! ( ! isString$1 ( e ) || e . length > 1024 ) } function isNumber$2 ( e ) { return typeof e == "number" } function isFunction$1 ( e ) { return typeof e == "function" } function isString$1 ( e ) { return typeof e == "string" } function isObject$1 ( e ) { return typeof e == "object" && e !== null } function isReadableStream$1 ( e ) { return isObject$1 ( e ) && isFunction$1 ( e . _read ) } function isBoolean$1 ( e ) { return typeof e == "boolean" } function isEmpty ( e ) { return _ . isEmpty ( e ) } function isEmptyObject ( e ) { return Object . values ( e ) . filter ( t => t !== void 0 ) . length !== 0 } function isDefined ( e ) { return e != null } function isValidDate ( e ) { return e instanceof Date && ! isNaN ( e ) } function makeDateLong ( e ) { e = e || new Date ; const t = e . toISOString ( ) ; return t . slice ( 0 , 4 ) + t . slice ( 5 , 7 ) + t . slice ( 8 , 13 ) + t . slice ( 14 , 16 ) + t . slice ( 17 , 19 ) + "Z" } function makeDateShort ( e ) { e = e || new Date ; const t = e . toISOString ( ) ; return t . slice ( 0 , 4 ) + t . slice ( 5 , 7 ) + t . slice ( 8 , 10 ) } function pipesetup ( ... e ) { return e . reduce ( ( t , y ) => ( t . on ( "error" , n => y . emit ( "error" , n ) ) , t . pipe ( y ) ) ) } function readableStream ( e ) { const t = new streamBrowserify . Readable
2024-08-21 13:12:53 +08:00
` )+ `
` ,n.join(";").toLowerCase(),k].join( `
` )}function getCredential(e,t,y,n="s3"){if(!isString $ 1(e))throw new TypeError('accessKey should be of type "string"');if(!isString $ 1(t))throw new TypeError('region should be of type "string"');if(!isObject $ 1(y))throw new TypeError('requestDate should be of type "object"');return ` $ { e } / $ { getScope ( t , y , n ) } ` }function getSignedHeaders(e){if(!isObject $ 1(e))throw new TypeError('request should be of type "object"');const t=["authorization","content-length","content-type","user-agent"];return Object.keys(e).filter(y=>!t.includes(y)).sort()}function getSigningKey(e,t,y,n="s3"){if(!isObject $ 1(e))throw new TypeError('date should be of type "object"');if(!isString $ 1(t))throw new TypeError('region should be of type "string"');if(!isString $ 1(y))throw new TypeError('secretKey should be of type "string"');const k=makeDateShort(e);return(void 0)("sha256",(void 0)("sha256",(void 0)("sha256",(void 0)("sha256","AWS4"+y).update(k).digest()).update(t).digest()).update(n).digest()).update("aws4_request").digest()}function getStringToSign(e,t,y,n="s3"){if(!isString $ 1(e))throw new TypeError('canonicalRequest should be of type "string"');if(!isObject $ 1(t))throw new TypeError('requestDate should be of type "object"');if(!isString $ 1(y))throw new TypeError('region should be of type "string"');const k=(void 0)("sha256").update(e).digest("hex"),L=getScope(y,t,n);return[signV4Algorithm,makeDateLong(t),L,k].join( `
2024-08-25 08:49:45 +08:00
` )}function postPresignSignatureV4(e,t,y,n){if(!isString $ 1(e))throw new TypeError('region should be of type "string"');if(!isObject $ 1(t))throw new TypeError('date should be of type "object"');if(!isString $ 1(y))throw new TypeError('secretKey should be of type "string"');if(!isString $ 1(n))throw new TypeError('policyBase64 should be of type "string"');return(void 0)("sha256",getSigningKey(t,e,y)).update(n).digest("hex").toLowerCase()}function signV4(e,t,y,n,k,L, $ ="s3"){if(!isObject $ 1(e))throw new TypeError('request should be of type "object"');if(!isString $ 1(t))throw new TypeError('accessKey should be of type "string"');if(!isString $ 1(y))throw new TypeError('secretKey should be of type "string"');if(!isString $ 1(n))throw new TypeError('region should be of type "string"');if(!t)throw new AccessKeyRequiredError("accessKey is required for signing");if(!y)throw new SecretKeyRequiredError("secretKey is required for signing");const j=getSignedHeaders(e.headers),V=getCanonicalRequest(e.method,e.path,e.headers,j,L),z= $ ||"s3",re=getStringToSign(V,k,n,z),ie=getSigningKey(k,n,y,z),oe=getCredential(t,n,k,z),ue=(void 0)("sha256",ie).update(re).digest("hex").toLowerCase();return ` $ { signV4Algorithm } Credential = $ { oe } , SignedHeaders = $ { j . join ( ";" ) . toLowerCase ( ) } , Signature = $ { ue } ` }function presignSignatureV4(e,t,y,n,k,L, $ ){if(!isObject $ 1(e))throw new TypeError('request should be of type "object"');if(!isString $ 1(t))throw new TypeError('accessKey should be of type "string"');if(!isString $ 1(y))throw new TypeError('secretKey should be of type "string"');if(!isString $ 1(k))throw new TypeError('region should be of type "string"');if(!t)throw new AccessKeyRequiredError("accessKey is required for presigning");if(!y)throw new SecretKeyRequiredError("secretKey is required for presigning");if(!isNumber $ 2( $ ))throw new TypeError('expires should be of type "number"');if( $ <1)throw new ExpiresParamError("expires param cannot be less than 1 seconds");if( $ >604800)throw new ExpiresParamError("expires param cannot be greater than 7 days");const j=makeDateLong(L),V=getSignedHeaders(e.headers),z=getCredential(t,k,L),re="UNSIGNED-PAYLOAD",ie=[];ie.push( ` X - Amz - Algorithm = $ { signV4Algorithm } ` ),ie.push( ` X - Amz - Credential = $ { uriEscape ( z ) } ` ),ie.push( ` X - Amz - Date = $ { j } ` ),ie.push( ` X - Amz - Expires = $ { $ } ` ),ie.push( ` X - Amz - SignedHeaders = $ { uriEscape ( V . join ( ";" ) . toLowerCase ( ) ) } ` ),n&&ie.push( ` X - Amz - Security - Token = $ { uriEscape ( n ) } ` );const oe=e.path.split("?")[0];let ue=e.path.split("?")[1];ue?ue=ue+"&"+ie.join("&"):ue=ie.join("&");const de=oe+"?"+ue,pe=getCanonicalRequest(e.method,de,e.headers,V,re),Ie=getStringToSign(pe,L,k),Ce=(void 0)("sha256",getSigningKey(L,k,y)).update(Ie).digest("hex").toLowerCase();return e.protocol+"//"+e.headers.host+de+ ` & X - Amz - Signature = $ { Ce } ` }async function readAsBuffer(e){return new Promise((t,y)=>{const n=[];e.on("data",k=>n.push(k)).on("error",k=>y(k)).on("end",()=>t(Buffer $ 2.concat(n)))})}async function readAsString(e){return(await readAsBuffer(e)).toString()}async function drainResponse(e){return new Promise((t,y)=>{e.on("data",()=>{}).on("error",n=>y(n)).on("end",()=>t())})}function parseBucketRegion(e){return parseXml(e).LocationConstraint}const fxp=new fxp $ 2.XMLParser;function parseError(e,t){let y={};const n=fxp.parse(e);n.Error&&(y=n.Error);const k=new S3Error;return Object.entries(y).forEach(([L, $ ])=>{k[L.toLowerCase()]= $ }),Object.entries(t).forEach(([L, $ ])=>{k[L]= $ }),k}async function parseResponseError(e){const t=e.statusCode;let y,n;t===301?(y="MovedPermanently",n="Moved Permanently"):t===307?(y="TemporaryRedirect",n="Are you using the correct endpoint URL?"):t===403?(y="AccessDenied",n="Valid and authorized credentials required"):t===404?(y="NotFound",n="Not Found"):t===405||t===501?(y="MethodNotAllowed",n="Method Not Allowed"):(y="UnknownError",n= ` $ { t } ` );const k={};k.amzRequestid=e.headers["x-amz-request-id"],k.amzId2=e.headers["x-amz-id-2"],k.amzBucketRegion=e.headers["x-amz-bucket-region"];const L=await readAsString(e);if(L)throw parseError(L,k);const $ =new S3Error(n,{cause:k});throw $ .code=y,Object.entries(k).forEach(([j,V])=>{ $ [j]=V}), $ }functi
2024-08-21 13:12:53 +08:00
` )}),k.write( `
` )};if(k.write( ` REQUEST : $ { t . method } $ { t . path }
` ),L(t.headers),y&&(this.logStream.write( ` RESPONSE : $ { y . statusCode }
` ),L(y.headers)),n){k.write( ` ERROR BODY :
` );const $ =JSON.stringify(n,null," ");k.write( ` $ { $ }
2024-08-25 08:49:45 +08:00
` )}}traceOn(t){t||(t=define_process_default $ 3.stdout),this.logStream=t}traceOff(){this.logStream=void 0}async makeRequestAsync(t,y="",n=[200],k=""){if(!isObject $ 1(t))throw new TypeError('options should be of type "object"');if(!isString $ 1(y)&&!isObject $ 1(y))throw new TypeError('payload should be of type "string" or "Buffer"');if(n.forEach( $ =>{if(!isNumber $ 2( $ ))throw new TypeError('statusCode should be of type "number"')}),!isString $ 1(k))throw new TypeError('region should be of type "string"');t.headers||(t.headers={}),(t.method==="POST"||t.method==="PUT"||t.method==="DELETE")&&(t.headers["content-length"]=y.length.toString());const L=this.enableSHA256?toSha256(y):"";return this.makeRequestStreamAsync(t,y,L,n,k)}async makeRequestAsyncOmit(t,y="",n=[200],k=""){const L=await this.makeRequestAsync(t,y,n,k);return await drainResponse(L),L}async makeRequestStreamAsync(t,y,n,k,L){if(!isObject $ 1(t))throw new TypeError('options should be of type "object"');if(!(Buffer $ 2.isBuffer(y)||typeof y=="string"||isReadableStream $ 1(y)))throw new InvalidArgumentError( ` stream should be a Buffer , string or readable Stream , got $ { typeof y } instead ` );if(!isString $ 1(n))throw new TypeError('sha256sum should be of type "string"');if(k.forEach(V=>{if(!isNumber $ 2(V))throw new TypeError('statusCode should be of type "number"')}),!isString $ 1(L))throw new TypeError('region should be of type "string"');if(!this.enableSHA256&&n.length!==0)throw new InvalidArgumentError("sha256sum expected to be empty for anonymous or https requests");if(this.enableSHA256&&n.length!==64)throw new InvalidArgumentError( ` Invalid sha256sum : $ { n } ` );await this.checkAndRefreshCreds(),L=L||await this.getBucketRegionAsync(t.bucketName);const $ =this.getRequestOptions({...t,region:L});if(!this.anonymous){this.enableSHA256||(n="UNSIGNED-PAYLOAD");const V=new Date; $ .headers["x-amz-date"]=makeDateLong(V), $ .headers["x-amz-content-sha256"]=n,this.sessionToken&&( $ .headers["x-amz-security-token"]=this.sessionToken), $ .headers.authorization=signV4( $ ,this.accessKey,this.secretKey,L,V,n)}const j=await request $ 1(this.transport, $ ,y);if(!j.statusCode)throw new Error("BUG: response doesn't have a statusCode");if(!k.includes(j.statusCode)){delete this.regionMap[t.bucketName];const V=await parseResponseError(j);throw this.logHTTP( $ ,j,V),V}return this.logHTTP( $ ,j),j}async getBucketRegionAsync(t){if(!isValidBucketName(t))throw new InvalidBucketNameError( ` Invalid bucket name : $ { t } ` );if(this.region)return this.region;const y=this.regionMap[t];if(y)return y;const n=async z=>{const re=await readAsString(z),ie=parseBucketRegion(re)||DEFAULT_REGION;return this.regionMap[t]=ie,ie},k="GET",L="location", $ =this.pathStyle&&!isBrowser_1;let j;try{const z=await this.makeRequestAsync({method:k,bucketName:t,query:L,pathStyle: $ },"",[200],DEFAULT_REGION);return n(z)}catch(z){if(z.name!=="AuthorizationHeaderMalformed"||(j=z.Region,!j))throw z}const V=await this.makeRequestAsync({method:k,bucketName:t,query:L,pathStyle: $ },"",[200],j);return await n(V)}makeRequest(t,y="",n=[200],k="",L, $ ){let j;L?j=this.makeRequestAsync(t,y,n,k):j=this.makeRequestAsyncOmit(t,y,n,k),j.then(V=> $ (null,V),V=>{ $ (V)})}makeRequestStream(t,y,n,k,L, $ ,j){(async()=>{const z=await this.makeRequestStreamAsync(t,y,n,k,L);return $ ||await drainResponse(z),z})().then(z=>j(null,z),z=>j(z))}getBucketRegion(t,y){return this.getBucketRegionAsync(t).then(n=>y(null,n),n=>y(n))}async removeBucket(t){if(!isValidBucketName(t))throw new InvalidBucketNameError("Invalid bucket name: "+t);await this.makeRequestAsyncOmit({method:"DELETE",bucketName:t},"",[204]),delete this.regionMap[t]}async statObject(t,y,n={}){if(!isValidBucketName(t))throw new InvalidBucketNameError("Invalid bucket name: "+t);if(!isValidObjectName(y))throw new InvalidObjectNameError( ` Invalid object name : $ { y } ` );if(!isObject $ 1(n))throw new InvalidArgumentError('statOpts should be of type "object"');const k=queryString.stringify(n), $ =await this.makeRequestAsyncOmit({method:"HEAD",bucketName:t,objectName:y,query:k});return{size:parseInt( $ .headers["content-length"]),metaData:extractMetadata( $ .headers
2024-08-24 19:24:09 +08:00
` ).forEach(function(_e){if(_e){var Ce=_e.indexOf(":"),he=_e.substr(0,Ce).trim().toLowerCase(),Ne=_e.substr(Ce+1).trim();pe[he]=Ne}}),{error:oe,statusCode:ue.status,statusMessage:ue.statusText,headers:pe,body:de}},z=function(oe,ue){return!ue&&ue==="text"?oe.responseText:oe.response},re=function(oe,ue){var de=(oe.method||"GET").toUpperCase(),pe=oe.url;if(oe.qs){var Ie=j(oe.qs);Ie&&(pe+=(pe.indexOf("?")===-1?"?":"&")+Ie)}var _e=new XMLHttpRequest;if(_e.open(de,pe,!0),_e.responseType=oe.dataType||"text",oe.xhrFields)for(var Ce in oe.xhrFields)_e[Ce]=oe.xhrFields[Ce];var he=oe.headers;if(he)for(var Ne in he)he.hasOwnProperty(Ne)&&Ne.toLowerCase()!=="content-length"&&Ne.toLowerCase()!=="user-agent"&&Ne.toLowerCase()!=="origin"&&Ne.toLowerCase()!=="host"&&_e.setRequestHeader(Ne,he[Ne]);return oe.onProgress&&_e.upload&&(_e.upload.onprogress=oe.onProgress),oe.onDownloadProgress&&(_e.onprogress=oe.onDownloadProgress),oe.timeout&&(_e.timeout=oe.timeout),_e.ontimeout=function(Fe){var Ue=new Error("timeout");ue(V(Ue,_e))},_e.onload=function(){ue(V(null,_e,z(_e,oe.dataType)))},_e.onerror=function(Fe){var Ue=z(_e,oe.dataType);if(Ue)ue(V(null,_e,Ue));else{var kt=_e.statusText;!kt&&_e.status===0&&(kt=new Error("CORS blocked or network error")),ue(V(kt,_e,Ue))}},_e.send(oe.body||""),_e};y.exports=re},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(y,n){function k(L, $ ){if(!(L instanceof $ ))throw new TypeError("Cannot call a class as a function")}y.exports=k,y.exports.__esModule=!0,y.exports.default=y.exports},"./node_modules/@babel/runtime/helpers/createClass.js":function(y,n,k){var L=k("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function $ (V,z){for(var re=0;re<z.length;re++){var ie=z[re];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(V,L(ie.key),ie)}}function j(V,z,re){return z&& $ (V.prototype,z),re&& $ (V,re),Object.defineProperty(V,"prototype",{writable:!1}),V}y.exports=j,y.exports.__esModule=!0,y.exports.default=y.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(y,n,k){var L=k("./node_modules/@babel/runtime/helpers/typeof.js").default;function $ (j,V){if(L(j)!=="object"||j===null)return j;var z=j[Symbol.toPrimitive];if(z!==void 0){var re=z.call(j,V||"default");if(L(re)!=="object")return re;throw new TypeError("@@toPrimitive must return a primitive value.")}return(V==="string"?String:Number)(j)}y.exports= $ ,y.exports.__esModule=!0,y.exports.default=y.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(y,n,k){var L=k("./node_modules/@babel/runtime/helpers/typeof.js").default, $ =k("./node_modules/@babel/runtime/helpers/toPrimitive.js");function j(V){var z= $ (V,"string");return L(z)==="symbol"?z:String(z)}y.exports=j,y.exports.__esModule=!0,y.exports.default=y.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(y,n){function k(L){"@babel/helpers - typeof";return y.exports=k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function( $ ){return typeof $ }:function( $ ){return $ &&typeof Symbol=="function"&& $ .constructor===Symbol&& $ !==Symbol.prototype?"symbol":typeof $ },y.exports.__esModule=!0,y.exports.default=y.exports,k(L)}y.exports=k,y.exports.__esModule=!0,y.exports.default=y.exports},"./node_modules/fast-xml-parser/src/fxp.js":function(y,n,k){const L=k("./node_modules/fast-xml-parser/src/validator.js"), $ =k("./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"),j=k("./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js");y.exports={XMLParser: $ ,XMLValidator:L,XMLBuilder:j}},"./node_modules/fast-xml-parser/src/util.js":function(y,n,k){const L=":A-Za-z_ \\ u00C0- \\ u00D6 \\ u00D8- \\ u00F6 \\ u00F8- \\ u02FF \\ u0370- \\ u037D \\ u037F- \\ u1FFF \\ u200C- \\ u200D \\ u2070- \\ u218F \\ u2C00- \\ u2FEF \\ u3001- \\ uD7FF \\ uF900- \\ uFDCF \\ uFDF0- \\ uFFFD", $ =L+" \\ -. \\ d \\ u00B7 \\ u0300- \\ u036F \\ u203F- \\ u2040",j="["+L+"]["+ $ +"]*",V=new RegExp("^"+j+" $ "),z=function(ie,oe){const ue=[];let de=oe.exec(ie);for(;de;){const pe=[];pe.startIndex=oe.lastIndex-de[0].length;const Ie=de.length;for(let _e=0;_e<Ie;_e++)pe.push(de[_e]);ue.pu
` &&Ue[jt]!==" \r ";jt++)ar+=Ue[jt];if(ar=ar.trim(),ar[ar.length-1]==="/"&&(ar=ar.substring(0,ar.length-1),jt--),!he(ar)){let cr;return ar.trim().length===0?cr="Invalid space after '<'.":cr="Tag '"+ar+"' is an invalid name.",_e("InvalidTag",cr,Ne(Ue,jt))}const nr=oe(Ue,jt);if(nr===!1)return _e("InvalidAttr","Attributes for '"+ar+"' have open quote.",Ne(Ue,jt));let ur=nr.value;if(jt=nr.index,ur[ur.length-1]==="/"){const cr=jt-ur.length;ur=ur.substring(0,ur.length-1);const _r=de(ur,kt);if(_r===!0)Ve=!0;else return _e(_r.err.code,_r.err.msg,Ne(Ue,cr+_r.err.line))}else if(rr)if(nr.tagClosed){if(ur.trim().length>0)return _e("InvalidTag","Closing tag '"+ar+"' can't have attributes or invalid starting.",Ne(Ue,tr));if(Et.length===0)return _e("InvalidTag","Closing tag '"+ar+"' has not been opened.",Ne(Ue,tr));{const cr=Et.pop();if(ar!==cr.tagName){let _r=Ne(Ue,cr.tagStartPos);return _e("InvalidTag","Expected closing tag '"+cr.tagName+"' (opened in line "+_r.line+", col "+_r.col+") instead of closing tag '"+ar+"'.",Ne(Ue,tr))}Et.length==0&&(qe=!0)}}else return _e("InvalidTag","Closing tag '"+ar+"' doesn't have proper closing.",Ne(Ue,jt));else{const cr=de(ur,kt);if(cr!==!0)return _e(cr.err.code,cr.err.msg,Ne(Ue,jt-ur.length+cr.err.line));if(qe===!0)return _e("InvalidXml","Multiple possible root nodes found.",Ne(Ue,jt));kt.unpairedTags.indexOf(ar)!==-1||Et.push({tagName:ar,tagStartPos:tr}),Ve=!0}for(jt++;jt<Ue.length;jt++)if(Ue[jt]==="<")if(Ue[jt+1]==="!"){jt++,jt=z(Ue,jt);continue}else if(Ue[jt+1]==="?"){if(jt=V(Ue,++jt),jt.err)return jt}else break;else if(Ue[jt]==="&"){const cr=Ie(Ue,jt);if(cr==-1)return _e("InvalidChar","char '&' is not expected.",Ne(Ue,jt));jt=cr}else if(qe===!0&&!j(Ue[jt]))return _e("InvalidXml","Extra text at the end",Ne(Ue,jt));Ue[jt]==="<"&&jt--}}else{if(j(Ue[jt]))continue;return _e("InvalidChar","char '"+Ue[jt]+"' is not expected.",Ne(Ue,jt))}if(Ve){if(Et.length==1)return _e("InvalidTag","Unclosed tag '"+Et[0].tagName+"'.",Ne(Ue,Et[0].tagStartPos));if(Et.length>0)return _e("InvalidXml","Invalid '"+JSON.stringify(Et.map(jt=>jt.tagName),null,4).replace(/ \r ? \n /g,"")+"' found.",{line:1,col:1})}else return _e("InvalidXml","Start tag expected.",1);return!0};function j(Ue){return Ue===" "||Ue===" "||Ue=== `
` ||Ue===" \r "}function V(Ue,kt){const Et=kt;for(;kt<Ue.length;kt++)if(Ue[kt]=="?"||Ue[kt]==" "){const Ve=Ue.substr(Et,kt-Et);if(kt>5&&Ve==="xml")return _e("InvalidXml","XML declaration allowed only at the start of the document.",Ne(Ue,kt));if(Ue[kt]=="?"&&Ue[kt+1]==">"){kt++;break}else continue}return kt}function z(Ue,kt){if(Ue.length>kt+5&&Ue[kt+1]==="-"&&Ue[kt+2]==="-"){for(kt+=3;kt<Ue.length;kt++)if(Ue[kt]==="-"&&Ue[kt+1]==="-"&&Ue[kt+2]===">"){kt+=2;break}}else if(Ue.length>kt+8&&Ue[kt+1]==="D"&&Ue[kt+2]==="O"&&Ue[kt+3]==="C"&&Ue[kt+4]==="T"&&Ue[kt+5]==="Y"&&Ue[kt+6]==="P"&&Ue[kt+7]==="E"){let Et=1;for(kt+=8;kt<Ue.length;kt++)if(Ue[kt]==="<")Et++;else if(Ue[kt]===">"&&(Et--,Et===0))break}else if(Ue.length>kt+9&&Ue[kt+1]==="["&&Ue[kt+2]==="C"&&Ue[kt+3]==="D"&&Ue[kt+4]==="A"&&Ue[kt+5]==="T"&&Ue[kt+6]==="A"&&Ue[kt+7]==="["){for(kt+=8;kt<Ue.length;kt++)if(Ue[kt]==="]"&&Ue[kt+1]==="]"&&Ue[kt+2]===">"){kt+=2;break}}return kt}const re='"',ie="'";function oe(Ue,kt){let Et="",Ve="",qe=!1;for(;kt<Ue.length;kt++){if(Ue[kt]===re||Ue[kt]===ie)Ve===""?Ve=Ue[kt]:Ve!==Ue[kt]||(Ve="");else if(Ue[kt]===">"&&Ve===""){qe=!0;break}Et+=Ue[kt]}return Ve!==""?!1:{value:Et,index:kt,tagClosed:qe}}const ue=new RegExp( ` ( \ \ s * ) ( [ ^ \ \ s = ] + ) ( \ \ s *= ) ? ( \ \ s * ( [ '"])(([\\s\\S])*?)\\5)?`,"g");function de(Ue,kt){const Et=L.getAllMatches(Ue,ue),Ve={};for(let qe=0;qe<Et.length;qe++){if(Et[qe][1].length===0)return _e("InvalidAttr","Attribute ' "+Et[qe][2]+" ' has no space in starting.",Fe(Et[qe]));if(Et[qe][3]!==void 0&&Et[qe][4]===void 0)return _e("InvalidAttr","Attribute ' "+Et[qe][2]+" ' is without value.",Fe(Et[qe]));if(Et[qe][3]===void 0&&!kt.allowBooleanAttributes)return _e("InvalidAttr","boolean attribute ' "+Et[qe][2]+" ' is not allowed.",Fe(Et[qe]));const jt=Et[qe][2];if(!Ce(jt))return _e("InvalidAttr","Attribute ' "+jt+" ' is an invalid name.",Fe(Et[qe]));if(!Ve.hasOwnProperty(jt))Ve[jt]=1;else return _e("InvalidAttr","Attribute ' "+jt+" ' is repeated.",Fe(Et[qe]))}return!0}function pe(Ue,kt){let Et=/\d/;for(Ue[kt]==="x"&&(kt++,Et=/[\da-fA-F]/);kt<Ue.length;kt++){if(Ue[kt]===";")return kt;if(!Ue[kt].match(Et))break}return-1}function Ie(Ue,kt){if(kt++,Ue[kt]===";")return-1;if(Ue[kt]==="#")return kt++,pe(Ue,kt);let Et=0;for(;kt<Ue.length;kt++,Et++)if(!(Ue[kt].match(/\w/)&&Et<20)){if(Ue[kt]===";")break;return-1}return kt}function _e(Ue,kt,Et){return{err:{code:Ue,msg:kt,line:Et.line||Et,col:Et.col}}}function Ce(Ue){return L.isName(Ue)}function he(Ue){return L.isName(Ue)}function Ne(Ue,kt){const Et=Ue.substring(0,kt).split(/\r?\n/);return{line:Et.length,col:Et[Et.length-1].length+1}}function Fe(Ue){return Ue.startIndex+Ue[1].length}},"./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js":function(y,n,k){const L=k("./node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js"),$={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(ie,oe){return oe},attributeValueProcessor:function(ie,oe){return oe},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("' "," g "),val:" & apos ; "},{regex:new RegExp('" ' , "g" ) , val : """ } ] , processEntities : ! 0 , stopNodes : [ ] , oneListGroup : ! 1 } ; function j ( ie ) { this . options = Object . assign ( { } , $ , ie ) , this . options . ignoreAttributes || this . options . attributesGroupName ? this . isAttribute = function ( ) { return ! 1 } : ( this . attrPrefixLen = this . options . attributeNamePrefix . length , this . isAttribute = re ) , this . processTextOrObjNode = V , this . options . format ? ( this . indentate = z , this . tagEndChar = ` >
2024-08-21 13:12:53 +08:00
` ,this.newLine= `
2024-08-22 08:49:17 +08:00
` ):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}j.prototype.build=function(ie){return this.options.preserveOrder?L(ie,this.options):(Array.isArray(ie)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(ie={[this.options.arrayNodeName]:ie}),this.j2x(ie,0).val)},j.prototype.j2x=function(ie,oe){let ue="",de="";for(let pe in ie)if(Object.prototype.hasOwnProperty.call(ie,pe))if(typeof ie[pe]>"u")this.isAttribute(pe)&&(de+="");else if(ie[pe]===null)this.isAttribute(pe)?de+="":pe[0]==="?"?de+=this.indentate(oe)+"<"+pe+"?"+this.tagEndChar:de+=this.indentate(oe)+"<"+pe+"/"+this.tagEndChar;else if(ie[pe]instanceof Date)de+=this.buildTextValNode(ie[pe],pe,"",oe);else if(typeof ie[pe]!="object"){const Ie=this.isAttribute(pe);if(Ie)ue+=this.buildAttrPairStr(Ie,""+ie[pe]);else if(pe===this.options.textNodeName){let _e=this.options.tagValueProcessor(pe,""+ie[pe]);de+=this.replaceEntitiesValue(_e)}else de+=this.buildTextValNode(ie[pe],pe,"",oe)}else if(Array.isArray(ie[pe])){const Ie=ie[pe].length;let _e="";for(let Ce=0;Ce<Ie;Ce++){const he=ie[pe][Ce];typeof he>"u"||(he===null?pe[0]==="?"?de+=this.indentate(oe)+"<"+pe+"?"+this.tagEndChar:de+=this.indentate(oe)+"<"+pe+"/"+this.tagEndChar:typeof he=="object"?this.options.oneListGroup?_e+=this.j2x(he,oe+1).val:_e+=this.processTextOrObjNode(he,pe,oe):_e+=this.buildTextValNode(he,pe,"",oe))}this.options.oneListGroup&&(_e=this.buildObjectNode(_e,pe,"",oe)),de+=_e}else if(this.options.attributesGroupName&&pe===this.options.attributesGroupName){const Ie=Object.keys(ie[pe]),_e=Ie.length;for(let Ce=0;Ce<_e;Ce++)ue+=this.buildAttrPairStr(Ie[Ce],""+ie[pe][Ie[Ce]])}else de+=this.processTextOrObjNode(ie[pe],pe,oe);return{attrStr:ue,val:de}},j.prototype.buildAttrPairStr=function(ie,oe){return oe=this.options.attributeValueProcessor(ie,""+oe),oe=this.replaceEntitiesValue(oe),this.options.suppressBooleanAttributes&&oe==="true"?" "+ie:" "+ie+'="'+oe+'"'};function V(ie,oe,ue){const de=this.j2x(ie,ue+1);return ie[this.options.textNodeName]!==void 0&&Object.keys(ie).length===1?this.buildTextValNode(ie[this.options.textNodeName],oe,de.attrStr,ue):this.buildObjectNode(de.val,oe,de.attrStr,ue)}j.prototype.buildObjectNode=function(ie,oe,ue,de){if(ie==="")return oe[0]==="?"?this.indentate(de)+"<"+oe+ue+"?"+this.tagEndChar:this.indentate(de)+"<"+oe+ue+this.closeTag(oe)+this.tagEndChar;{let pe="</"+oe+this.tagEndChar,Ie="";return oe[0]==="?"&&(Ie="?",pe=""),(ue||ue==="")&&ie.indexOf("<")===-1?this.indentate(de)+"<"+oe+ue+Ie+">"+ie+pe:this.options.commentPropName!==!1&&oe===this.options.commentPropName&&Ie.length===0?this.indentate(de)+ ` <!-- $ { ie } -- > ` +this.newLine:this.indentate(de)+"<"+oe+ue+Ie+this.tagEndChar+ie+this.indentate(de)+pe}},j.prototype.closeTag=function(ie){let oe="";return this.options.unpairedTags.indexOf(ie)!==-1?this.options.suppressUnpairedNode||(oe="/"):this.options.suppressEmptyNode?oe="/":oe= ` > < /${ie}`,oe},j.prototype.buildTextValNode=function(ie,oe,ue,de){if(this.options.cdataPropName!==!1&&oe===this.options.cdataPropName)return this.indentate(de)+`<![CDATA[${ie}]]>`+this.newLine;if(this.options.commentPropName!==!1&&oe===this.options.commentPropName)return this.indentate(de)+`<!--${ie}-->`+this.newLine;if(oe[0]==="?")return this.indentate(de)+"<"+oe+ue+"?"+this.tagEndChar;{let pe=this.options.tagValueProcessor(oe,ie);return pe=this.replaceEntitiesValue(pe),pe===""?this.indentate(de)+"<"+oe+ue+this.closeTag(oe)+this.tagEndChar:this.indentate(de)+"<"+oe+ue+">"+pe+"</ "+oe+this.tagEndChar}},j.prototype.replaceEntitiesValue=function(ie){if(ie&&ie.length>0&&this.options.processEntities)for(let oe=0;oe<this.options.entities.length;oe++){const ue=this.options.entities[oe];ie=ie.replace(ue.regex,ue.val)}return ie};function z(ie){return this.options.indentBy.repeat(ie)}function re(ie){return ie.startsWith(this.options.attributeNamePrefix)&&ie!==this.options.textNodeName?ie.substr(this.attrPrefixLen):!1}y.exports=j}," . / node _modules / fast - xml - parser / src / xmlbuilder / orderedJs2Xml . js " : function ( y , n ) { const k = `
2024-08-24 19:24:09 +08:00
` ;function L(ie,oe){let ue="";return oe.format&&oe.indentBy.length>0&&(ue=k), $ (ie,oe,"",ue)}function $ (ie,oe,ue,de){let pe="",Ie=!1;for(let _e=0;_e<ie.length;_e++){const Ce=ie[_e],he=j(Ce);if(he===void 0)continue;let Ne="";if(ue.length===0?Ne=he:Ne= ` $ { ue } . $ { he } ` ,he===oe.textNodeName){let Ve=Ce[he];z(Ne,oe)||(Ve=oe.tagValueProcessor(he,Ve),Ve=re(Ve,oe)),Ie&&(pe+=de),pe+=Ve,Ie=!1;continue}else if(he===oe.cdataPropName){Ie&&(pe+=de),pe+= ` < ! [ CDATA [ $ { Ce [ he ] [ 0 ] [ oe . textNodeName ] } ] ] > ` ,Ie=!1;continue}else if(he===oe.commentPropName){pe+=de+ ` <!-- $ { Ce [ he ] [ 0 ] [ oe . textNodeName ] } -- > ` ,Ie=!0;continue}else if(he[0]==="?"){const Ve=V(Ce[":@"],oe),qe=he==="?xml"?"":de;let jt=Ce[he][0][oe.textNodeName];jt=jt.length!==0?" "+jt:"",pe+=qe+ ` < $ { he } $ { jt } $ { Ve } ? > ` ,Ie=!0;continue}let Fe=de;Fe!==""&&(Fe+=oe.indentBy);const Ue=V(Ce[":@"],oe),kt=de+ ` < $ { he } $ { Ue } ` ,Et= $ (Ce[he],oe,Ne,Fe);oe.unpairedTags.indexOf(he)!==-1?oe.suppressUnpairedNode?pe+=kt+">":pe+=kt+"/>":(!Et||Et.length===0)&&oe.suppressEmptyNode?pe+=kt+"/>":Et&&Et.endsWith(">")?pe+=kt+ ` > $ { Et } $ { de } < /${he}>`:(pe+=kt+">",Et&&de!==""&&(Et.includes("/ > ")||Et.includes(" < /"))?pe+=de+oe.indentBy+Et+de:pe+=Et,pe+=`</ $ { he } > ` ),Ie=!0}return pe}function j(ie){const oe=Object.keys(ie);for(let ue=0;ue<oe.length;ue++){const de=oe[ue];if(ie.hasOwnProperty(de)&&de!==":@")return de}}function V(ie,oe){let ue="";if(ie&&!oe.ignoreAttributes)for(let de in ie){if(!ie.hasOwnProperty(de))continue;let pe=oe.attributeValueProcessor(de,ie[de]);pe=re(pe,oe),pe===!0&&oe.suppressBooleanAttributes?ue+= ` $ { de . substr ( oe . attributeNamePrefix . length ) } ` :ue+= ` $ { de . substr ( oe . attributeNamePrefix . length ) } = "${pe}" ` }return ue}function z(ie,oe){ie=ie.substr(0,ie.length-oe.textNodeName.length-1);let ue=ie.substr(ie.lastIndexOf(".")+1);for(let de in oe.stopNodes)if(oe.stopNodes[de]===ie||oe.stopNodes[de]==="*."+ue)return!0;return!1}function re(ie,oe){if(ie&&ie.length>0&&oe.processEntities)for(let ue=0;ue<oe.entities.length;ue++){const de=oe.entities[ue];ie=ie.replace(de.regex,de.val)}return ie}y.exports=L},"./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js":function(y,n,k){const L=k("./node_modules/fast-xml-parser/src/util.js");function $ (de,pe){const Ie={};if(de[pe+3]==="O"&&de[pe+4]==="C"&&de[pe+5]==="T"&&de[pe+6]==="Y"&&de[pe+7]==="P"&&de[pe+8]==="E"){pe=pe+9;let _e=1,Ce=!1,he=!1,Ne="";for(;pe<de.length;pe++)if(de[pe]==="<"&&!he){if(Ce&&z(de,pe))pe+=7,[entityName,val,pe]=j(de,pe+1),val.indexOf("&")===-1&&(Ie[ue(entityName)]={regx:RegExp( ` & $ { entityName } ; ` ,"g"),val});else if(Ce&&re(de,pe))pe+=8;else if(Ce&&ie(de,pe))pe+=8;else if(Ce&&oe(de,pe))pe+=9;else if(V)he=!0;else throw new Error("Invalid DOCTYPE");_e++,Ne=""}else if(de[pe]===">"){if(he?de[pe-1]==="-"&&de[pe-2]==="-"&&(he=!1,_e--):_e--,_e===0)break}else de[pe]==="["?Ce=!0:Ne+=de[pe];if(_e!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:Ie,i:pe}}function j(de,pe){let Ie="";for(;pe<de.length&&de[pe]!=="'"&&de[pe]!=='"';pe++)Ie+=de[pe];if(Ie=Ie.trim(),Ie.indexOf(" ")!==-1)throw new Error("External entites are not supported");const _e=de[pe++];let Ce="";for(;pe<de.length&&de[pe]!==_e;pe++)Ce+=de[pe];return[Ie,Ce,pe]}function V(de,pe){return de[pe+1]==="!"&&de[pe+2]==="-"&&de[pe+3]==="-"}function z(de,pe){return de[pe+1]==="!"&&de[pe+2]==="E"&&de[pe+3]==="N"&&de[pe+4]==="T"&&de[pe+5]==="I"&&de[pe+6]==="T"&&de[pe+7]==="Y"}function re(de,pe){return de[pe+1]==="!"&&de[pe+2]==="E"&&de[pe+3]==="L"&&de[pe+4]==="E"&&de[pe+5]==="M"&&de[pe+6]==="E"&&de[pe+7]==="N"&&de[pe+8]==="T"}function ie(de,pe){return de[pe+1]==="!"&&de[pe+2]==="A"&&de[pe+3]==="T"&&de[pe+4]==="T"&&de[pe+5]==="L"&&de[pe+6]==="I"&&de[pe+7]==="S"&&de[pe+8]==="T"}function oe(de,pe){return de[pe+1]==="!"&&de[pe+2]==="N"&&de[pe+3]==="O"&&de[pe+4]==="T"&&de[pe+5]==="A"&&de[pe+6]==="T"&&de[pe+7]==="I"&&de[pe+8]==="O"&&de[pe+9]==="N"}function ue(de){if(L.isName(de))return de;throw new Error( ` Invalid entity name $ { de } ` )}y.exports= $ },"./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js":function(y,n){const k={preserveOrder:!1,attributeNamePrefix:"@_",a
` );const qe=new $ ("!xml");let jt=qe,tr="",rr="";for(let ar=0;ar<Ve.length;ar++)if(Ve[ar]==="<")if(Ve[ar+1]==="/"){const ur=Fe(Ve,">",ar,"Closing Tag is not closed.");let cr=Ve.substring(ar+2,ur).trim();if(this.options.removeNSPrefix){const Er=cr.indexOf(":");Er!==-1&&(cr=cr.substr(Er+1))}this.options.transformTagName&&(cr=this.options.transformTagName(cr)),jt&&(tr=this.saveTextToParentTag(tr,jt,rr));const _r=rr.substring(rr.lastIndexOf(".")+1);if(cr&&this.options.unpairedTags.indexOf(cr)!==-1)throw new Error( ` Unpaired tag can not be used as closing tag : < /${cr}>`);let hr=0;_r&&this.options.unpairedTags.indexOf(_r)!==-1?(hr=rr.lastIndexOf(".",rr.lastIndexOf(".")-1),this.tagsNodeStack.pop()):hr=rr.lastIndexOf("."),rr=rr.substring(0,hr),jt=this.tagsNodeStack.pop(),tr="",ar=ur}else if(Ve[ar+1]==="?"){let ur=Ue(Ve,ar,!1,"?>");if(!ur)throw new Error("Pi Tag is not closed.");if(tr=this.saveTextToParentTag(tr,jt,rr),!(this.options.ignoreDeclaration&&ur.tagName==="?xml"||this.options.ignorePiTags)){const cr=new $(ur.tagName);cr.add(this.options.textNodeName,""),ur.tagName!==ur.tagExp&&ur.attrExpPresent&&(cr[":@"]=this.buildAttributesMap(ur.tagExp,rr,ur.tagName)),this.addChild(jt,cr,rr)}ar=ur.closeIndex+1}else if(Ve.substr(ar+1,3)==="!--"){const ur=Fe(Ve,"-->",ar+4,"Comment is not closed.");if(this.options.commentPropName){const cr=Ve.substring(ar+4,ur-2);tr=this.saveTextToParentTag(tr,jt,rr),jt.add(this.options.commentPropName,[{[this.options.textNodeName]:cr}])}ar=ur}else if(Ve.substr(ar+1,2)==="!D"){const ur=j(Ve,ar);this.docTypeEntities=ur.entities,ar=ur.i}else if(Ve.substr(ar+1,2)==="!["){const ur=Fe(Ve,"]]>",ar,"CDATA is not closed.")-2,cr=Ve.substring(ar+9,ur);tr=this.saveTextToParentTag(tr,jt,rr);let _r=this.parseTextData(cr,jt.tagname,rr,!0,!1,!0,!0);_r==null&&(_r=""),this.options.cdataPropName?jt.add(this.options.cdataPropName,[{[this.options.textNodeName]:cr}]):jt.add(this.options.textNodeName,_r),ar=ur+2}else{let ur=Ue(Ve,ar,this.options.removeNSPrefix),cr=ur.tagName;const _r=ur.rawTagName;let hr=ur.tagExp,Er=ur.attrExpPresent,kr=ur.closeIndex;this.options.transformTagName&&(cr=this.options.transformTagName(cr)),jt&&tr&&jt.tagname!=="!xml"&&(tr=this.saveTextToParentTag(tr,jt,rr,!1));const xr=jt;if(xr&&this.options.unpairedTags.indexOf(xr.tagname)!==-1&&(jt=this.tagsNodeStack.pop(),rr=rr.substring(0,rr.lastIndexOf("."))),cr!==qe.tagname&&(rr+=rr?"."+cr:cr),this.isItStopNode(this.options.stopNodes,rr,cr)){let yr="";if(hr.length>0&&hr.lastIndexOf("/ ")===hr.length-1)cr[cr.length-1]===" / "?(cr=cr.substr(0,cr.length-1),rr=rr.substr(0,rr.length-1),hr=cr):hr=hr.substr(0,hr.length-1),ar=ur.closeIndex;else if(this.options.unpairedTags.indexOf(cr)!==-1)ar=ur.closeIndex;else{const Ir=this.readStopNodeData(Ve,_r,kr+1);if(!Ir)throw new Error(`Unexpected end of ${_r}`);ar=Ir.i,yr=Ir.tagContent}const vr=new $(cr);cr!==hr&&Er&&(vr[" : @ "]=this.buildAttributesMap(hr,rr,cr)),yr&&(yr=this.parseTextData(yr,cr,rr,!0,Er,!0,!0)),rr=rr.substr(0,rr.lastIndexOf(" . ")),vr.add(this.options.textNodeName,yr),this.addChild(jt,vr,rr)}else{if(hr.length>0&&hr.lastIndexOf(" / ")===hr.length-1){cr[cr.length-1]===" / "?(cr=cr.substr(0,cr.length-1),rr=rr.substr(0,rr.length-1),hr=cr):hr=hr.substr(0,hr.length-1),this.options.transformTagName&&(cr=this.options.transformTagName(cr));const yr=new $(cr);cr!==hr&&Er&&(yr[" : @ "]=this.buildAttributesMap(hr,rr,cr)),this.addChild(jt,yr,rr),rr=rr.substr(0,rr.lastIndexOf(" . "))}else{const yr=new $(cr);this.tagsNodeStack.push(jt),cr!==hr&&Er&&(yr[" : @ "]=this.buildAttributesMap(hr,rr,cr)),this.addChild(jt,yr,rr),jt=yr}tr=" ",ar=kr}}else tr+=Ve[ar];return qe.child};function Ie(Ve,qe,jt){const tr=this.options.updateTag(qe.tagname,jt,qe[" : @ "]);tr===!1||(typeof tr==" string " && ( qe . tagname = tr ) , Ve . addChild ( qe ) ) } const _e = function ( Ve ) { if ( this . options . processEntities ) { for ( let qe in this . docTypeEntities ) { const jt = this . docTypeEntities [ qe ] ; Ve = Ve . replace ( jt . regx , jt . val ) } for ( let qe in this . lastEntities ) { const jt = this . lastEntities [ qe ] ; Ve = Ve . replace ( jt . regex , jt . val ) } if ( this . options . htmlEntities ) for ( let qe in this . htmlEntities ) { const jt = this . htmlEntit
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}var sa=!0,qa=!1,To;return{s:function(){On=On.call(Gr)},n:function(){var na=On.next();return sa=na.done,na},e:function(na){qa=!0,To=na},f:function(){try{!sa&&On.return!=null&&On.return()}finally{if(qa)throw To}}}}function V(Gr,Ar){if(Gr){if(typeof Gr=="string")return z(Gr,Ar);var On=Object.prototype.toString.call(Gr).slice(8,-1);if(On==="Object"&&Gr.constructor&&(On=Gr.constructor.name),On==="Map"||On==="Set")return Array.from(Gr);if(On==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(On))return z(Gr,Ar)}}function z(Gr,Ar){(Ar==null||Ar>Gr.length)&&(Ar=Gr.length);for(var On=0,In=new Array(Ar);On<Ar;On++)In[On]=Gr[On];return In}var re=k("./lib/md5.js"),ie=k("./lib/crypto.js"),oe=k("./node_modules/fast-xml-parser/src/fxp.js"),ue=oe.XMLParser,de=oe.XMLBuilder,pe=new ue({ignoreDeclaration:!0,ignoreAttributes:!0,parseTagValue:!1}),Ie=new de,_e=k("./lib/base64.js"),Ce=k("./src/tracker.js"),he=function(Ar){var On=pe.parse(Ar);return On},Ne=function(Ar){var On=Ie.build(Ar);return On};function Fe(Gr){return encodeURIComponent(Gr).replace(/!/g,"%21").replace(/'/g,"%27").replace(/ \( /g,"%28").replace(/ \) /g,"%29").replace(/ \* /g,"%2A")}function Ue(Gr,Ar){var On=[];for(var In in Gr)Gr.hasOwnProperty(In)&&On.push(Ar?Fe(In).toLowerCase():In);return On.sort(function(Sa,sa){return Sa=Sa.toLowerCase(),sa=sa.toLowerCase(),Sa===sa?0:Sa>sa?1:-1})}var kt=function(Ar,On){var In,Sa,sa,qa=[],To=Ue(Ar);for(In=0;In<To.length;In++)Sa=To[In],sa=Ar[Sa]===void 0||Ar[Sa]===null?"":""+Ar[Sa],Sa=On?Fe(Sa).toLowerCase():Fe(Sa),sa=Fe(sa)||"",qa.push(Sa+"="+sa);return qa.join("&")},Et=["cache-control","content-disposition","content-encoding","content-length","content-md5","expect","expires","host","if-match","if-modified-since","if-none-match","if-unmodified-since","origin","range","transfer-encoding","pic-operations"],Ve=function(Ar){var On={};for(var In in Ar){var Sa=In.toLowerCase();(Sa.indexOf("x-cos-")>-1||Et.indexOf(Sa)>-1)&&(On[In]=Ar[In])}return On},qe=function(Ar){Ar=Ar||{};var On=Ar.SecretId,In=Ar.SecretKey,Sa=Ar.KeyTime,sa=(Ar.method||Ar.Method||"get").toLowerCase(),qa=yr(Ar.Query||Ar.params||{}),To=Ve(yr(Ar.Headers||Ar.headers||{})),Hi=Ar.Key||"",na;Ar.UseRawKey?na=Ar.Pathname||Ar.pathname||"/"+Hi:(na=Ar.Pathname||Ar.pathname||Hi,na.indexOf("/")!==0&&(na="/"+na));var Ma=Ar.ForceSignHost!==!1;if(!To.Host&&!To.host&&Ar.Bucket&&Ar.Region&&Ma&&(To.Host=Ar.Bucket+".cos."+Ar.Region+".myqcloud.com"),!On)throw new Error("missing param SecretId");if(!In)throw new Error("missing param SecretKey");var Ns=Math.round(Rr(Ar.SystemClockOffset)/1e3)-1,cs=Ns,vl=Ar.Expires||Ar.expires;vl===void 0?cs+=900:cs+=vl*1||0;var Bl="sha1",Au=On,xs=Sa||Ns+";"+cs,ju=Sa||Ns+";"+cs,Lu=Ue(To,!0).join(";").toLowerCase(),Pc=Ue(qa,!0).join(";").toLowerCase(),Nc=ie.HmacSHA1(ju,In).toString(),gc=[sa,na,Kn.obj2str(qa,!0),Kn.obj2str(To,!0),""].join( `
2024-08-21 13:12:53 +08:00
` ),Wl=["sha1",xs,ie.SHA1(gc).toString(),""].join( `
2024-08-25 08:49:45 +08:00
` ),ps=ie.HmacSHA1(Wl,Nc).toString(),Ds=["q-sign-algorithm="+Bl,"q-ak="+Au,"q-sign-time="+xs,"q-key-time="+ju,"q-header-list="+Lu,"q-url-param-list="+Pc,"q-signature="+ps].join("&");return Ds},jt=function(Ar,On,In){var Sa=On/8,sa=Ar.slice(In,In+Sa);return new Uint8Array(sa).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[On](sa)[0]},tr=function(Ar,On,In,Sa){var sa=Ar.slice(On,In),qa="";return new Uint8Array(sa).forEach(function(To){qa+=String.fromCharCode(To)}),Sa&&(qa=decodeURIComponent(escape(qa))),qa},rr=function(Ar){for(var On={},In=tr(Ar),Sa={records:[]};Ar.byteLength;){var sa=jt(Ar,32,0),qa=jt(Ar,32,4),To=sa-qa-16,Hi=0,na;for(Ar=Ar.slice(12);Hi<qa;){var Ma=jt(Ar,8,Hi),Ns=tr(Ar,Hi+1,Hi+1+Ma),cs=jt(Ar,16,Hi+Ma+2),vl=tr(Ar,Hi+Ma+4,Hi+Ma+4+cs);On[Ns]=vl,Hi+=Ma+4+cs}if(On[":event-type"]==="Records")na=tr(Ar,Hi,Hi+To,!0),Sa.records.push(na);else if(On[":event-type"]==="Stats")na=tr(Ar,Hi,Hi+To,!0),Sa.stats=Kn.xml2json(na).Stats;else if(On[":event-type"]==="error"){var Bl=On[":error-code"],Au=On[":error-message"],xs=new Error(Au);xs.message=Au,xs.name=xs.code=Bl,Sa.error=xs}Ar=Ar.slice(Hi+To+4)}return{payload:Sa.records.join(""),body:In}},ar=function(Ar){var On=this.options.CopySourceParser;if(On)return On(Ar);var In=Ar.match(/^([^.]+- \d +) \. cos(v6|-cdc|-cdz|-internal)? \. ([^.]+) \. ((myqcloud \. com)|(tencentcos \. cn)) \/ (.+) $ /);return In?{Bucket:In[1],Region:In[3],Key:In[7]}:null},nr=function(){},ur=function(Ar){var On={};for(var In in Ar)Ar.hasOwnProperty(In)&&Ar[In]!==void 0&&Ar[In]!==null&&(On[In]=Ar[In]);return On},cr=function(Ar,On){var In,Sa=new FileReader;FileReader.prototype.readAsBinaryString?(In=FileReader.prototype.readAsBinaryString,Sa.onload=function(){On(this.result)}):FileReader.prototype.readAsArrayBuffer?In=function(qa){var To="",Hi=new FileReader;Hi.onload=function(na){for(var Ma=new Uint8Array(Hi.result),Ns=Ma.byteLength,cs=0;cs<Ns;cs++)To+=String.fromCharCode(Ma[cs]);On(To)},Hi.readAsArrayBuffer(qa)}:console.error("FileReader not support readAsBinaryString"),In.call(Sa,Ar)},_r=function(){var Gr=function(In,Sa){In=In.split("."),Sa=Sa.split(".");for(var sa=0;sa<Sa.length;sa++)if(In[sa]!==Sa[sa])return parseInt(In[sa])>parseInt(Sa[sa])?1:-1;return 0},Ar=function(In){if(!In)return!1;var Sa=(In.match(/Chrome \/ ([. \d ]+)/)||[])[1],sa=(In.match(/QBCore \/ ([. \d ]+)/)||[])[1],qa=(In.match(/QQBrowser \/ ([. \d ]+)/)||[])[1],To=Sa&&Gr(Sa,"53.0.2785.116")<0&&sa&&Gr(sa,"3.53.991.400")<0&&qa&&Gr(qa,"9.0.2524.400")<=0||!1;return To};return Ar(typeof navigator<"u"&&navigator.userAgent)}(),hr=function(Ar,On,In,Sa,sa){var qa;if(Ar.slice?qa=Ar.slice(On,In):Ar.mozSlice?qa=Ar.mozSlice(On,In):Ar.webkitSlice&&(qa=Ar.webkitSlice(On,In)),Sa&&_r){var To=new FileReader;To.onload=function(Hi){qa=null,sa(new Blob([To.result]))},To.readAsArrayBuffer(qa)}else sa(qa)},Er=function(Ar,On,In,Sa){In=In||nr,Ar?typeof On=="string"?In(Kn.md5(On,!0)):Blob&&On instanceof Blob?Kn.getFileMd5(On,function(sa,qa){In(qa)},Sa):In():In()},kr=1024*1024,xr=function(Ar,On,In){var Sa=Ar.size,sa=0,qa=re.getCtx(),To=function Hi(na){if(na>=Sa){var Ma=qa.digest("hex");On(null,Ma);return}var Ns=Math.min(Sa,na+kr);Kn.fileSlice(Ar,na,Ns,!1,function(cs){cr(cs,function(vl){cs=null,qa=qa.update(vl,!0),sa+=vl.length,vl=null,In&&In({loaded:sa,total:Sa,percent:Math.round(sa/Sa*1e4)/1e4}),Hi(na+kr)})})};To(0)};function yr(Gr){return Hr(Gr,function(Ar){return $ (Ar)==="object"&&Ar!==null?yr(Ar):Ar})}function vr(Gr,Ar,On){return Gr&&Ar in Gr?Gr[Ar]:On}function Ir(Gr,Ar){return jr(Ar,function(On,In){Gr[In]=Ar[In]}),Gr}function Mr(Gr){return Gr instanceof Array}function mr(Gr,Ar){for(var On=!1,In=0;In<Gr.length;In++)if(Ar===Gr[In]){On=!0;break}return On}function gr(Gr){return Mr(Gr)?Gr:[Gr]}function jr(Gr,Ar){for(var On in Gr)Gr.hasOwnProperty(On)&&Ar(Gr[On],On)}function Hr(Gr,Ar){var On=Mr(Gr)?[]:{};for(var In in Gr)Gr.hasOwnProperty(In)&&(On[In]=Ar(Gr[In],In));return On}function Vr(Gr,Ar){var On=Mr(Gr),In=On?[]:{};for(var Sa in Gr)Gr.hasOwnProperty(Sa)&&Ar(Gr[Sa],Sa)&&(On?In.push(Gr[Sa]):In[Sa]=Gr[Sa]);return In}var zr=function(Ar){var On,In,Sa,sa="";for(On=0,In=Ar.length/2;
2024-08-21 13:12:53 +08:00
` ).forEach(function( $ ){k= $ .indexOf(":"),y= $ .substring(0,k).trim().toLowerCase(),n= $ .substring(k+1).trim(),!(!y||t[y]&&ignoreDuplicateOf[y])&&(y==="set-cookie"?t[y]?t[y].push(n):t[y]=[n]:t[y]=t[y]?t[y]+", "+n:n)}),t}, $ internals=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return e===!1||e==null?e:utils $ 1.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){const t=Object.create(null),y=/([^ \s ,;=]+) \s *(?:= \s *([^,;]+))?/g;let n;for(;n=y.exec(e);)t[n[1]]=n[2];return t}const isValidHeaderName=e=>/^[-_a-zA-Z0-9^ ` | ~ , ! # $ % & ' * + . ] + $ / . test ( e . trim ( ) ) ; function matchHeaderValue ( e , t , y , n , k ) { if ( utils$1 . isFunction ( n ) ) return n . call ( this , t , y ) ; if ( k && ( t = y ) , ! ! utils$1 . isString ( t ) ) { if ( utils$1 . isString ( n ) ) return t . indexOf ( n ) !== - 1 ; if ( utils$1 . isRegExp ( n ) ) return n . test ( t ) } } function formatHeader ( e ) { return e . trim ( ) . toLowerCase ( ) . replace ( /([a-z\d])(\w*)/g , ( t , y , n ) => y . toUpperCase ( ) + n ) } function buildAccessors ( e , t ) { const y = utils$1 . toCamelCase ( " " + t ) ; [ "get" , "set" , "has" ] . forEach ( n => { Object . defineProperty ( e , n + y , { value : function ( k , L , $ ) { return this [ n ] . call ( this , t , k , L , $ ) } , configurable : ! 0 } ) } ) } class AxiosHeaders { constructor ( t ) { t && this . set ( t ) } set ( t , y , n ) { const k = this ; function L ( j , V , z ) { const re = normalizeHeader ( V ) ; if ( ! re ) throw new Error ( "header name must be a non-empty string" ) ; const ie = utils$1 . findKey ( k , re ) ; ( ! ie || k [ ie ] === void 0 || z === ! 0 || z === void 0 && k [ ie ] !== ! 1 ) && ( k [ ie || V ] = normalizeValue ( j ) ) } const $ = ( j , V ) => utils$1 . forEach ( j , ( z , re ) => L ( z , re , V ) ) ; if ( utils$1 . isPlainObject ( t ) || t instanceof this . constructor ) $ ( t , y ) ; else if ( utils$1 . isString ( t ) && ( t = t . trim ( ) ) && ! isValidHeaderName ( t ) ) $ ( parseHeaders ( t ) , y ) ; else if ( utils$1 . isHeaders ( t ) ) for ( const [ j , V ] of t . entries ( ) ) L ( V , j , n ) ; else t != null && L ( y , t , n ) ; return this } get ( t , y ) { if ( t = normalizeHeader ( t ) , t ) { const n = utils$1 . findKey ( this , t ) ; if ( n ) { const k = this [ n ] ; if ( ! y ) return k ; if ( y === ! 0 ) return parseTokens ( k ) ; if ( utils$1 . isFunction ( y ) ) return y . call ( this , k , n ) ; if ( utils$1 . isRegExp ( y ) ) return y . exec ( k ) ; throw new TypeError ( "parser must be boolean|regexp|function" ) } } } has ( t , y ) { if ( t = normalizeHeader ( t ) , t ) { const n = utils$1 . findKey ( this , t ) ; return ! ! ( n && this [ n ] !== void 0 && ( ! y || matchHeaderValue ( this , this [ n ] , n , y ) ) ) } return ! 1 } delete ( t , y ) { const n = this ; let k = ! 1 ; function L ( $ ) { if ( $ = normalizeHeader ( $ ) , $ ) { const j = utils$1 . findKey ( n , $ ) ; j && ( ! y || matchHeaderValue ( n , n [ j ] , j , y ) ) && ( delete n [ j ] , k = ! 0 ) } } return utils$1 . isArray ( t ) ? t . forEach ( L ) : L ( t ) , k } clear ( t ) { const y = Object . keys ( this ) ; let n = y . length , k = ! 1 ; for ( ; n -- ; ) { const L = y [ n ] ; ( ! t || matchHeaderValue ( this , this [ L ] , L , t , ! 0 ) ) && ( delete this [ L ] , k = ! 0 ) } return k } normalize ( t ) { const y = this , n = { } ; return utils$1 . forEach ( this , ( k , L ) => { const $ = utils$1 . findKey ( n , L ) ; if ( $ ) { y [ $ ] = normalizeValue ( k ) , delete y [ L ] ; return } const j = t ? formatHeader ( L ) : String ( L ) . trim ( ) ; j !== L && delete y [ L ] , y [ j ] = normalizeValue ( k ) , n [ j ] = ! 0 } ) , this } concat ( ... t ) { return this . constructor . concat ( this , ... t ) } toJSON ( t ) { const y = Object . create ( null ) ; return utils$1 . forEach ( this , ( n , k ) => { n != null && n !== ! 1 && ( y [ k ] = t && utils$1 . isArray ( n ) ? n . join ( ", " ) : n ) } ) , y } [ Symbol . iterator ] ( ) { return Object . entries ( this . toJSON ( ) ) [ Symbol . iterator ] ( ) } toString ( ) { return Object . entries ( this . toJSON ( ) ) . map ( ( [ t , y ] ) => t + ": " + y ) . join ( `
2024-08-24 19:24:09 +08:00
` )}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...y){const n=new this(t);return y.forEach(k=>n.set(k)),n}static accessor(t){const n=(this[ $ internals]=this[ $ internals]={accessors:{}}).accessors,k=this.prototype;function L( $ ){const j=normalizeHeader( $ );n[j]||(buildAccessors(k, $ ),n[j]=!0)}return utils $ 1.isArray(t)?t.forEach(L):L(t),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils $ 1.reduceDescriptors(AxiosHeaders.prototype,({value:e},t)=>{let y=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[y]=n}}});utils $ 1.freezeMethods(AxiosHeaders);function transformData(e,t){const y=this||defaults,n=t||y,k=AxiosHeaders.from(n.headers);let L=n.data;return utils $ 1.forEach(e,function(j){L=j.call(y,L,k.normalize(),t?t.status:void 0)}),k.normalize(),L}function isCancel(e){return!!(e&&e.__CANCEL__)}function CanceledError(e,t,y){AxiosError.call(this,e??"canceled",AxiosError.ERR_CANCELED,t,y),this.name="CanceledError"}utils $ 1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(e,t,y){const n=y.config.validateStatus;!y.status||!n||n(y.status)?e(y):t(new AxiosError("Request failed with status code "+y.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(y.status/100)-4],y.config,y.request,y))}function parseProtocol(e){const t=/^([-+ \w ]{1,25})(:? \/ \/ |:)/.exec(e);return t&&t[1]||""}function speedometer(e,t){e=e||10;const y=new Array(e),n=new Array(e);let k=0,L=0, $ ;return t=t!==void 0?t:1e3,function(V){const z=Date.now(),re=n[L]; $ ||( $ =z),y[k]=V,n[k]=z;let ie=L,oe=0;for(;ie!==k;)oe+=y[ie++],ie=ie%e;if(k=(k+1)%e,k===L&&(L=(L+1)%e),z- $ <t)return;const ue=re&&z-re;return ue?Math.round(oe*1e3/ue):void 0}}function throttle(e,t){let y=0,n=1e3/t,k,L;const $ =(z,re=Date.now())=>{y=re,k=null,L&&(clearTimeout(L),L=null),e.apply(null,z)};return[(...z)=>{const re=Date.now(),ie=re-y;ie>=n? $ (z,re):(k=z,L||(L=setTimeout(()=>{L=null, $ (k)},n-ie)))},()=>k&& $ (k)]}const progressEventReducer=(e,t,y=3)=>{let n=0;const k=speedometer(50,250);return throttle(L=>{const $ =L.loaded,j=L.lengthComputable?L.total:void 0,V= $ -n,z=k(V),re= $ <=j;n= $ ;const ie={loaded: $ ,total:j,progress:j? $ /j:void 0,bytes:V,rate:z||void 0,estimated:z&&j&&re?(j- $ )/z:void 0,event:L,lengthComputable:j!=null,[t?"download":"upload"]:!0};e(ie)},y)},progressEventDecorator=(e,t)=>{const y=e!=null;return[n=>t[0]({lengthComputable:y,total:e,loaded:n}),t[1]]},asyncDecorator=e=>(...t)=>utils $ 1.asap(()=>e(...t)),isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),y=document.createElement("a");let n;function k(L){let $ =L;return t&&(y.setAttribute("href", $ ), $ =y.href),y.setAttribute("href", $ ),{href:y.href,protocol:y.protocol?y.protocol.replace(/: $ /,""):"",host:y.host,search:y.search?y.search.replace(/^ \? /,""):"",hash:y.hash?y.hash.replace(/^#/,""):"",hostname:y.hostname,port:y.port,pathname:y.pathname.charAt(0)==="/"?y.pathname:"/"+y.pathname}}return n=k(window.location.href),function( $ ){const j=utils $ 1.isString( $ )?k( $ ): $ ;return j.protocol===n.protocol&&j.host===n.host}}():function(){return function(){return!0}}(),cookies=platform.hasStandardBrowserEnv?{write(e,t,y,n,k,L){const $ =[e+"="+encodeURIComponent(t)];utils $ 1.isNumber(y)&& $ .push("expires="+new Date(y).toGMTString()),utils $ 1.isString(n)&& $ .push("path="+n),utils $ 1.isString(k)&& $ .push("domain="+k),L===!0&& $ .push("secure"),document.cookie= $ .join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|; \\ s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(e){return/^([a-z][a-z \d + \- .]*:)? \/ \/ /i.test(e)}function combineURLs(e,t){return t?e.replace(/ \/ ? \/ $ /,"")+"/"+t.replace(/^ \/ +/,""):e}function buildFullPath(e,t){return e&&!isAbsoluteURL(t)?combineURLs(e,t):t}const headersToObject=e=>e instanceof AxiosHeaders?{...e}:e;function mergeConfig(e,t){t=t||{};const y={};function n(z,re,ie){return utils $
2024-08-21 13:12:53 +08:00
` +L.map(renderReason).join( `
` ):" "+renderReason(L[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+ $ ,"ERR_NOT_SUPPORT")}return n},adapters:knownAdapters};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError(null,e)}function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=AxiosHeaders.from(e.headers),e.data=transformData.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(e.adapter||defaults.adapter)(e).then(function(n){return throwIfCancellationRequested(e),n.data=transformData.call(e,e.transformResponse,n),n.headers=AxiosHeaders.from(n.headers),n},function(n){return isCancel(n)||(throwIfCancellationRequested(e),n&&n.response&&(n.response.data=transformData.call(e,e.transformResponse,n.response),n.response.headers=AxiosHeaders.from(n.response.headers))),Promise.reject(n)})}const VERSION="1.7.4",validators $ 1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{validators $ 1[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const deprecatedWarnings={};validators $ 1.transitional=function(t,y,n){function k(L, $ ){return"[Axios v"+VERSION+"] Transitional option '"+L+"'"+ $ +(n?". "+n:"")}return(L, $ ,j)=>{if(t===!1)throw new AxiosError(k( $ ," has been removed"+(y?" in "+y:"")),AxiosError.ERR_DEPRECATED);return y&&!deprecatedWarnings[ $ ]&&(deprecatedWarnings[ $ ]=!0,console.warn(k( $ ," has been deprecated since v"+y+" and will be removed in the near future"))),t?t(L, $ ,j):!0}};function assertOptions(e,t,y){if(typeof e!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let k=n.length;for(;k-- >0;){const L=n[k], $ =t[L];if( $ ){const j=e[L],V=j===void 0|| $ (j,L,e);if(V!==!0)throw new AxiosError("option "+L+" must be "+V,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(y!==!0)throw new AxiosError("Unknown option "+L,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators $ 1},validators=validator.validators;class Axios{constructor(t){this.defaults=t,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(t,y){try{return await this._request(t,y)}catch(n){if(n instanceof Error){let k;Error.captureStackTrace?Error.captureStackTrace(k={}):k=new Error;const L=k.stack?k.stack.replace(/^.+ \n /,""):"";try{n.stack?L&&!String(n.stack).endsWith(L.replace(/^.+ \n .+ \n /,""))&&(n.stack+= `
` +L):n.stack=L}catch{}}throw n}}_request(t,y){typeof t=="string"?(y=y||{},y.url=t):y=t||{},y=mergeConfig(this.defaults,y);const{transitional:n,paramsSerializer:k,headers:L}=y;n!==void 0&&validator.assertOptions(n,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),k!=null&&(utils $ 1.isFunction(k)?y.paramsSerializer={serialize:k}:validator.assertOptions(k,{encode:validators.function,serialize:validators.function},!0)),y.method=(y.method||this.defaults.method||"get").toLowerCase();let $ =L&&utils $ 1.merge(L.common,L[y.method]);L&&utils $ 1.forEach(["delete","get","head","post","put","patch","common"],de=>{delete L[de]}),y.headers=AxiosHeaders.concat( $ ,L);const j=[];let V=!0;this.interceptors.request.forEach(function(pe){typeof pe.runWhen=="function"&&pe.runWhen(y)===!1||(V=V&&pe.synchronous,j.unshift(pe.fulfilled,pe.rejected))});const z=[];this.interceptors.response.forEach(function(pe){z.push(pe.fulfilled,pe.rejected)});let re,ie=0,oe;if(!V){const de=[dispatchRequest.bind(this),void 0];for(de.unshift.apply(de,j),de.push.apply(de,z),oe=de.length,re=Promise.resolve(y);ie<oe;)re=re.then(de[ie++],de[ie++]);return re}oe=j.length;let ue=y;for(ie=0;ie<oe;){const de=j[ie++],pe=j[ie++];try{ue=de(ue)}catch(Ie){pe.call(this,Ie);break}}try{re=dispatchRequest.call(this,ue)}catch(de){return Promise.reject(de)}for(ie=0,oe=z.length;ie<oe;)re=re.then(z[ie++],z[ie++]);return re}getUri(t){t=mergeConfig(this.defaults,t);const y=buildFullPath(t.baseURL,t.url);return buildURL(y,t.params,t.paramsSerializer)}}utils $ 1.forEach(["delete","get","head","options"],function(t){Axios.prototype[t]=function(y,n){return this.request(mergeConfig(n||{},{method:t,url:y,data:(n||{}).data}))}});utils $ 1.forEach(["post","put","patch"],function(t){function y(n){return function(L, $ ,j){return this.request(mergeConfig(j||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:L,data: $ }))}}Axios.prototype[t]=y(),Axios.prototype[t+"Form"]=y(!0)});class CancelToken{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let y;this.promise=new Promise(function(L){y=L});const n=this;this.promise.then(k=>{if(!n._listeners)return;let L=n._listeners.length;for(;L-- >0;)n._listeners[L](k);n._listeners=null}),this.promise.then=k=>{let L;const $ =new Promise(j=>{n.subscribe(j),L=j}).then(k);return $ .cancel=function(){n.unsubscribe(L)}, $ },t(function(L, $ ,j){n.reason||(n.reason=new CanceledError(L, $ ,j),y(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const y=this._listeners.indexOf(t);y!==-1&&this._listeners.splice(y,1)}static source(){let t;return{token:new CancelToken(function(k){t=k}),cancel:t}}}function spread(e){return function(y){return e.apply(null,y)}}function isAxiosError(e){return utils $ 1.isObject(e)&&e.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGate
async ( CUSTOM _ARG ) => {
$ { localStorage . getItem ( "formCustomConfig" ) }
}
2024-08-24 19:24:09 +08:00
` ;return new Promise((resolve,reject)=>{const exportObj={content,file,util:{axios:service,CryptoJS,OSS,COS,Buffer,uuidv4:v4,qiniu,tokenTools,getDir,getDateFilename},okCb:resolve,errCb:reject};eval(str)(exportObj).catch(e=>{console.error(e),reject(e)})})}function fileUpload(e,t){const y=localStorage.getItem("imgHost");switch(!y&&localStorage.setItem("imgHost","default"),y){case"aliOSS":return aliOSSFileUpload(e,t.name);case"minio":return minioFileUpload(e,t.name);case"txCOS":return txCOSFileUpload(t);case"qiniu":return qiniuUpload(t);case"gitee":return giteeUpload(e,t.name);case"github":return ghFileUpload(e,t.name);case"formCustom":return formCustomUpload(e,t);default:return ghFileUpload(e,t.name)}}const fileApi={fileUpload};/**
2024-08-21 13:12:53 +08:00
* @ license lucide - vue - next v0 . 428.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const toKebabCase=e=>e.replace(/ ( [ a - z0 - 9 ] ) ( [ A - Z ] ) / g , "$1-$2" ) . toLowerCase ( ) ; / * *
* @ license lucide - vue - next v0 . 428.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /var defaultAttributes={xmlns:"http:/ / www . w3 . org / 2000 / svg ",width:24,height:24,viewBox:" 0 0 24 24 ",fill:" none ",stroke:" currentColor "," stroke - width ":2," stroke - linecap ":" round "," stroke - linejoin ":" round " } ; / * *
* @ license lucide - vue - next v0 . 428.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* / c o n s t I c o n = ( { s i z e : e , s t r o k e W i d t h : t = 2 , a b s o l u t e S t r o k e W i d t h : y , c o l o r : n , i c o n N o d e : k , n a m e : L , c l a s s : $ , . . . j } , { s l o t s : V } ) = > h $ 1 ( " s v g " , { . . . d e f a u l t A t t r i b u t e s , w i d t h : e | | d e f a u l t A t t r i b u t e s . w i d t h , h e i g h t : e | | d e f a u l t A t t r i b u t e s . h e i g h t , s t r o k e : n | | d e f a u l t A t t r i b u t e s . s t r o k e , " s t r o k e - w i d t h " : y ? N u m b e r ( t ) * 2 4 / N u m b e r ( e ) : t , c l a s s : [ " l u c i d e " , ` l u c i d e - $ { t o K e b a b C a s e ( L ? ? " i c o n " ) } ` ] , . . . j } , [ . . . k . m a p ( z = > h $ 1 ( . . . z ) ) , . . . V . d e f a u l t ? [ V . d e f a u l t ( ) ] : [ ] ] ) ; / * *
* @ license lucide - vue - next v0 . 428.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /const createLucideIcon=(e,t)=>(y,{slots:n})=>h$1(Icon,{...y,iconNode:t,name:e},n);/ * *
* @ license lucide - vue - next v0 . 428.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
2024-08-24 19:24:09 +08:00
* /const ChevronRight=createLucideIcon("ChevronRightIcon",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),_sfc_main$q={__name:"PostInfo",setup(e){const t=useStore(),{output:y}=storeToRefs(t),n=ref$1(!1),k=ref$1({title:"",desc:"",thumb:"",content:""});function L(){var V;let j={};try{j={thumb:(V=document.querySelector("#output img"))==null?void 0:V.src,title:[1,2,3,4,5,6].map(z=>document.querySelector(`#output h${z}`)).filter(z=>z)[0].textContent,desc:document.querySelector("#output p").textContent,content:y.value}}catch(z){console.log("error",z)}k.value={...j,auto:j},n.value=!0}function $(){n.value=!1,window.syncPost({thumb:k.value.thumb||k.value.auto.thumb,title:k.value.title||k.value.auto.title,desc:k.value.desc||k.value.auto.desc,content:k.value.content||k.value.auto.content})}return(j,V)=>{const z=resolveComponent("el-button"),re=resolveComponent("el-alert"),ie=resolveComponent("el-input"),oe=resolveComponent("el-form-item"),ue=resolveComponent("el-form"),de=resolveComponent("el-dialog");return openBlock(),createElementBlock(Fragment,null,[createVNode(z,{plain:"",type:"primary",onClick:L},{default:withCtx(()=>[createTextVNode(" 发布 ")]),_:1}),createVNode(de,{title:"发布","model-value":n.value,onClose:V[4]||(V[4]=pe=>n.value=!1)},{footer:withCtx(()=>[createVNode(z,{onClick:V[3]||(V[3]=pe=>n.value=!1)},{default:withCtx(()=>[createTextVNode(" 取 消 ")]),_:1}),createVNode(z,{type:"primary",onClick:$},{default:withCtx(()=>[createTextVNode(" 确 定 ")]),_:1})]),default:withCtx(()=>[createVNode(re,{class:"mb-4",title:"注:此功能由第三方浏览器插件支持,本平台不保证安全性。",type:"info","show-icon":""}),createVNode(ue,{class:"postInfo","label-width":"50",model:k.value},{default:withCtx(()=>[createVNode(oe,{label:"封面"},{default:withCtx(()=>[createVNode(ie,{modelValue:k.value.thumb,"onUpdate:modelValue":V[0]||(V[0]=pe=>k.value.thumb=pe),placeholder:"自动提取第一张图"},null,8,["modelValue"])]),_:1}),createVNode(oe,{label:"标题"},{default:withCtx(()=>[createVNode(ie,{modelValue:k.value.title,"onUpdate:modelValue":V[1]||(V[1]=pe=>k.value.title=pe),placeholder:"自动提取第一个标题"},null,8,["modelValue"])]),_:1}),createVNode(oe,{label:"描述"},{default:withCtx(()=>[createVNode(ie,{modelValue:k.value.desc,"onUpdate:modelValue":V[2]||(V[2]=pe=>k.value.desc=pe),type:"textarea",rows:4,placeholder:"自动提取第一个段落"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["model-value"])],64)}}};function isComponentPublicInstance(e){return e!=null&&typeof e=="object"&&"$el"in e}function unwrapElement(e){if(isComponentPublicInstance(e)){const t=e.$el;return isNode$1(t)&&getNodeName(t)==="#comment"?null:t}return e}function toValue$1(e){return typeof e=="function"?e():unref(e)}function arrow(e){return{name:"arrow",options:e,fn(t){const y=unwrapElement(toValue$1(e.element));return y==null?{}:arrow$1({element:y,padding:e.padding}).fn(t)}}}function getDPR(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(e,t){const y=getDPR(e);return Math.round(t*y)/y } function useFloating ( e , t , y ) { y === void 0 && ( y = { } ) ; const n = y . whileElementsMounted , k = computed ( ( ) => { var kt ; return ( kt = toValue$1 ( y . open ) ) != null ? kt : ! 0 } ) , L = computed ( ( ) => toValue$1 ( y . middleware ) ) , $ = computed ( ( ) => { var kt ; return ( kt = toValue$1 ( y . placement ) ) != null ? kt : "bottom" } ) , j = computed ( ( ) => { var kt ; return ( kt = toValue$1 ( y . strategy ) ) != null ? kt : "absolute" } ) , V = computed ( ( ) => { var kt ; return ( kt = toValue$1 ( y . transform ) ) != null ? kt : ! 0 } ) , z = computed ( ( ) => unwrapElement ( e . value ) ) , re = computed ( ( ) => unwrapElement ( t . value ) ) , ie = ref$1 ( 0 ) , oe = ref$1 ( 0 ) , ue = ref$1 ( j . value ) , de = ref$1 ( $ . value ) , pe = shallowRef ( { } ) , Ie = ref$1 ( ! 1 ) , _e = computed ( ( ) => { const kt = { position : ue . value , left : "0" , top : "0" } ; if ( ! re . value ) return kt ; const Et = roundByDPR ( re . value , ie . value ) , Ve = roundByDPR ( re . value , oe . value ) ; return V . value ? { ... kt , transform : "translate(" + Et + "px, " + Ve + "px)" , ... getDPR ( re . value ) >= 1.5 && { willChange : "transform" } } : { position : ue . value , left : Et + "px" , top : Ve + "px" } } ) ; let Ce ; function he ( ) { z . value == null || re . value == null || computePosition ( z . value , re . val
` )].join( `
2024-08-25 08:49:45 +08:00
` ))}return()=>L.value||k.value||j.value?h $ 1(t.default({present:j})[0],{ref:re=>{const ie=Be(re);return typeof(ie==null?void 0:ie.hasAttribute)>"u"||(ie!=null&&ie.hasAttribute("data-radix-popper-content-wrapper")? $ .value=ie.firstElementChild: $ .value=ie),ie}}):null}}),ht=defineComponent({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=ja();return(y,n)=>unref(t)||y.forceMount?(openBlock(),createBlock(Teleport $ 1,{key:0,to:y.to,disabled:y.disabled},[renderSlot(y. $ slots,"default")],8,["to","disabled"])):createCommentVNode("",!0)}}),qi="dismissableLayer.pointerDownOutside",Yi="dismissableLayer.focusOutside";function Fl(e,t){const y=t.closest("[data-dismissable-layer]"),n=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),k=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(y&&n===y||k.indexOf(n)<k.indexOf(y))}function Nl(e,t){var y;const n=((y=t==null?void 0:t.value)==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),k=ref $ 1(!1),L=ref $ 1(()=>{});return watchEffect( $ =>{if(!Ze)return;const j=async z=>{const re=z.target;if(t!=null&&t.value){if(Fl(t.value,re)){k.value=!1;return}if(z.target&&!k.value){let ie=function(){zt(qi,e,oe)};const oe={originalEvent:z};z.pointerType==="touch"?(n.removeEventListener("click",L.value),L.value=ie,n.addEventListener("click",L.value,{once:!0})):ie()}else n.removeEventListener("click",L.value);k.value=!1}},V=window.setTimeout(()=>{n.addEventListener("pointerdown",j)},0); $ (()=>{window.clearTimeout(V),n.removeEventListener("pointerdown",j),n.removeEventListener("click",L.value)})}),{onPointerDownCapture:()=>k.value=!0}}function Ll(e,t){var y;const n=((y=t==null?void 0:t.value)==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),k=ref $ 1(!1);return watchEffect(L=>{if(!Ze)return;const $ =async j=>{t!=null&&t.value&&(await nextTick $ 1(),!(!t.value||Fl(t.value,j.target))&&j.target&&!k.value&&zt(Yi,e,{originalEvent:j}))};n.addEventListener("focusin", $ ),L(()=>n.removeEventListener("focusin", $ ))}),{onFocusCapture:()=>k.value=!0,onBlurCapture:()=>k.value=!1}}const je=reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yt=defineComponent({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const y=e,n=t,{forwardRef:k,currentElement:L}=T(), $ =computed(()=>{var de;return((de=L.value)==null?void 0:de.ownerDocument)??globalThis.document}),j=computed(()=>je.layersRoot),V=computed(()=>L.value?Array.from(j.value).indexOf(L.value):-1),z=computed(()=>je.layersWithOutsidePointerEventsDisabled.size>0),re=computed(()=>{const de=Array.from(j.value),[pe]=[...je.layersWithOutsidePointerEventsDisabled].slice(-1),Ie=de.indexOf(pe);return V.value>=Ie}),ie=Nl(async de=>{const pe=[...je.branches].some(Ie=>Ie.contains(de.target));!re.value||pe||(n("pointerDownOutside",de),n("interactOutside",de),await nextTick $ 1(),de.defaultPrevented||n("dismiss"))},L),oe=Ll(de=>{[...je.branches].some(pe=>pe.contains(de.target))||(n("focusOutside",de),n("interactOutside",de),de.defaultPrevented||n("dismiss"))},L);jn("Escape",de=>{V.value===j.value.size-1&&(n("escapeKeyDown",de),de.defaultPrevented||n("dismiss"))});let ue;return watchEffect(de=>{L.value&&(y.disableOutsidePointerEvents&&(je.layersWithOutsidePointerEventsDisabled.size===0&&(ue= $ .value.body.style.pointerEvents, $ .value.body.style.pointerEvents="none"),je.layersWithOutsidePointerEventsDisabled.add(L.value)),j.value.add(L.value),de(()=>{y.disableOutsidePointerEvents&&je.layersWithOutsidePointerEventsDisabled.size===1&&( $ .value.body.style.pointerEvents=ue)}))}),watchEffect(de=>{de(()=>{L.value&&(j.value.delete(L.value),je.layersWithOutsidePointerEventsDisabled.delete(L.value))})}),(de,pe)=>(openBlock(),createBlock(unref(O),{ref:unref(k),"as-child":de.asChild,as:de.as,"data-dismissable-layer":"",style:normalizeSty
2024-08-22 08:49:17 +08:00
$ { V }
2024-08-22 19:23:55 +08:00
` ,"end"), $ (),y()}return(V,z)=>{const re=resolveComponent("el-input-number"),ie=resolveComponent("el-col"),oe=resolveComponent("el-row"),ue=resolveComponent("el-input"),de=resolveComponent("el-button"),pe=resolveComponent("el-dialog");return openBlock(),createBlock(pe,{title:"插入表格",class:"insert__dialog","model-value":unref(t).isShowInsertFormDialog,onClose:z[3]||(z[3]=Ie=>unref(y)(!1))},{footer:withCtx(()=>[createBaseVNode("div",_hoisted_2 $ 1,[createVNode(de,{plain:"",onClick:z[2]||(z[2]=Ie=>unref(y)(!1))},{default:withCtx(()=>[createTextVNode(" 取 消 ")]),_:1}),createVNode(de,{type:"primary",plain:"",onClick:j},{default:withCtx(()=>[createTextVNode(" 确 定 ")]),_:1})])]),default:withCtx(()=>[createVNode(oe,{class:"tb-options",type:"flex",align:"middle",gutter:10},{default:withCtx(()=>[createVNode(ie,{span:12},{default:withCtx(()=>[createTextVNode(" 行数: "),createVNode(re,{modelValue:n.value,"onUpdate:modelValue":z[0]||(z[0]=Ie=>n.value=Ie),"controls-position":"right",min:1,max:100,size:"small"},null,8,["modelValue"])]),_:1}),createVNode(ie,{span:12},{default:withCtx(()=>[createTextVNode(" 列数: "),createVNode(re,{modelValue:k.value,"onUpdate:modelValue":z[1]||(z[1]=Ie=>k.value=Ie),"controls-position":"right",min:1,max:100,size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),createBaseVNode("table",_hoisted_1 $ 5,[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.value+1,Ie=>(openBlock(),createElementBlock("tr",{key:Ie,class:normalizeClass({"head-style":Ie===1})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(k.value,_e=>(openBlock(),createElementBlock("td",{key:_e},[createVNode(ue,{modelValue:L.value[ ` k _$ { Ie - 1 } _$ { _e - 1 } ` ],"onUpdate:modelValue":Ce=>L.value[ ` k _$ { Ie - 1 } _$ { _e - 1 } ` ]=Ce,align:"center",placeholder:Ie===1?"表头":""},null,8,["modelValue","onUpdate:modelValue","placeholder"])]))),128))],2))),128))])]),_:1},8,["model-value"])}}},InsertFormDialog=_export_sfc(_sfc_main $ 6,[["__scopeId","data-v-56362dff"]]),_hoisted_1 $ 4=["onMousedown"],_sfc_main $ 5={__name:"RightClickMenu",props:{visible:{type:Boolean,default:!1},top:{type:Number,default:0},left:{type:Number,default:0}},emits:["menuTick","closeMenu"],setup(e,{emit:t}){const y=e,n=t,k=[[{text:"上传图片",key:"insertPic"},{text:"插入表格",key:"insertTable"},{text:"恢复默认样式",key:"resetStyle"}],[{text:"导入 .md 文档",key:"importMarkdown"},{text:"导出 .md 文档",key:"exportMarkdown"},{text:"导出 .html",key:"exportHtml"},{text:"格式化",key:"formatMarkdown"}]];function L( $ ){n("menuTick", $ ),n("closeMenu")}return( $ ,j)=>withDirectives((openBlock(),createElementBlock("div",{id:"menu",class:"menu",style:normalizeStyle({left: ` $ { y . left } px ` ,top: ` $ { y . top } px ` })},[(openBlock(),createElementBlock(Fragment,null,renderList(k,(V,z)=>createBaseVNode("ul",{key:z,class:"menu__group"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(V,({key:re,text:ie})=>(openBlock(),createElementBlock("li",{key:re,class:"menu_item",onMousedown:oe=>L(re)},toDisplayString(ie),41,_hoisted_1 $ 4))),128))])),64))],4)),[[vShow,y.visible]])}},RightClickMenu=_export_sfc(_sfc_main $ 5,[["__scopeId","data-v-d69dec3e"]]),_withScopeId $ 2=e=>(pushScopeId("data-v-a6100d60"),e=e(),popScopeId(),e),_hoisted_1 $ 3=_withScopeId $ 2(()=>createBaseVNode("div",{class:"el-upload__text"},[createTextVNode(" 将图片拖到此处,或 "),createBaseVNode("em",null,"点击上传")],-1)),_sfc_main $ 4={__name:"UploadImgDialog",emits:["uploadImage"],setup(e,{emit:t}){const y=t,n=useStore(),k=ref $ 1({repo:"",branch:"",accessToken:""}),L=ref $ 1({accessKeyId:"",accessKeySecret:"",bucket:"",region:"",path:"",cdnHost:""}), $ =ref $ 1({secretId:"",secretKey:"",bucket:"",region:"",path:"",cdnHost:""}),j=ref $ 1({accessKey:"",secretKey:"",bucket:"",domain:"",region:""}),V=ref $ 1({endpoint:"",port:"",useSSL:!0,bucket:"",accessKey:"",secretKey:""}),z=ref $ 1({code:localStorage.getItem("formCustomConfig")||removeLeft( `
2024-08-21 13:12:53 +08:00
const { file , util , okCb , errCb } = CUSTOM _ARG
const param = new FormData ( )
param . append ( 'file' , file )
util . axios . post ( '${window.location.origin}/upload' , param , {
headers : { 'Content-Type' : 'multipart/form-data' }
} ) . then ( res => {
okCb ( res . url )
} ) . catch ( err => {
errCb ( err )
} )
2024-08-24 19:24:09 +08:00
` ).trim(),editor:void 0}),re=[{value:"default",label:"默认"},{value:"github",label:"GitHub"},{value:"aliOSS",label:"阿里云"},{value:"txCOS",label:"腾讯云"},{value:"qiniu",label:"七牛云"},{value:"minio",label:"MinIO"},{value:"formCustom",label:"自定义代码"}],ie=ref $ 1("default"),oe=ref $ 1(null),ue=ref $ 1("upload");watch(ue,async kt=>{kt==="formCustom"&&nextTick $ 1(()=>{const Et=oe.value. $ el.querySelector("textarea");z.value.editor=z.value.editor||CodeMirror.fromTextArea(Et,{mode:"javascript"})})},{immediate:!0}),onBeforeMount(()=>{localStorage.getItem("githubConfig")&&(k.value=JSON.parse(localStorage.getItem("githubConfig"))),localStorage.getItem("aliOSSConfig")&&(L.value=JSON.parse(localStorage.getItem("aliOSSConfig"))),localStorage.getItem("txCOSConfig")&&( $ .value=JSON.parse(localStorage.getItem("txCOSConfig"))),localStorage.getItem("qiniuConfig")&&(j.value=JSON.parse(localStorage.getItem("qiniuConfig"))),localStorage.getItem("minioConfig")&&(V.value=JSON.parse(localStorage.getItem("minioConfig"))),localStorage.getItem("imgHost")&&(ie.value=localStorage.getItem("imgHost"))});function de(){localStorage.setItem("imgHost",ie.value),ElMessage.success("已成功切换图床")}function pe(){if(!(k.value.repo&&k.value.accessToken)){const kt=k.value.repo?"token":"GitHub 仓库";ElMessage.error( ` 参数 「 $ { kt } 」 不能为空 ` );return}localStorage.setItem("githubConfig",JSON.stringify(k.value)),ElMessage.success("保存成功")}function Ie(){if(!(L.value.accessKeyId&&L.value.accessKeySecret&&L.value.bucket&&L.value.region)){ElMessage.error("阿里云 OSS 参数配置不全");return}localStorage.setItem("aliOSSConfig",JSON.stringify(L.value)),ElMessage.success("保存成功")}function _e(){if(!(V.value.endpoint&&V.value.bucket&&V.value.accessKey&&V.value.secretKey)){ElMessage.error("MinIO 参数配置不全");return}localStorage.setItem("minioConfig",JSON.stringify(V.value)),ElMessage.success("保存成功")}function Ce(){if(!( $ .value.secretId&& $ .value.secretKey&& $ .value.bucket&& $ .value.region)){ElMessage.error("腾讯云 COS 参数配置不全");return}localStorage.setItem("txCOSConfig",JSON.stringify( $ .value)),ElMessage.success("保存成功")}function he(){if(!(j.value.accessKey&&j.value.secretKey&&j.value.bucket&&j.value.domain&&j.value.region)){ElMessage.error("七牛云 Kodo 参数配置不全");return}localStorage.setItem("qiniuConfig",JSON.stringify(j.value)),ElMessage.success("保存成功")}function Ne(){const kt=z.value.editor.getValue();localStorage.setItem("formCustomConfig",kt),ElMessage.success("保存成功")}function Fe(kt){const Et=checkImage(kt);if(!Et.ok)return ElMessage.error(Et.msg),!1;let Ve=localStorage.getItem("imgHost");Ve=Ve||"default",localStorage.setItem("imgHost",Ve);const qe=localStorage.getItem( ` $ { Ve } Config ` );return Ve==="default"||qe?!0:(ElMessage.error( ` 请先配置 $ { Ve } 图床参数 ` ),!1)}function Ue(kt){y("uploadImage",kt.file)}return(kt,Et)=>{const Ve=resolveComponent("el-option"),qe=resolveComponent("el-select"),jt=resolveComponent("el-icon"),tr=resolveComponent("el-upload"),rr=resolveComponent("el-tab-pane"),ar=resolveComponent("el-input"),nr=resolveComponent("el-form-item"),ur=resolveComponent("el-link"),cr=resolveComponent("el-button"),_r=resolveComponent("el-form"),hr=resolveComponent("el-switch"),Er=resolveComponent("el-tabs"),kr=resolveComponent("el-dialog");return openBlock(),createBlock(kr,{title:"本地上传",class:"upload__dialog","model-value":unref(n).isShowUploadImgDialog,onClose:Et[30]||(Et[30]=xr=>unref(n).toggleShowUploadImgDialog(!1))},{default:withCtx(()=>[createVNode(Er,{modelValue:ue.value,"onUpdate:modelValue":Et[29]||(Et[29]=xr=>ue.value=xr)},{default:withCtx(()=>[createVNode(rr,{class:"upload-panel",label:"选择上传",name:"upload"},{default:withCtx(()=>[createVNode(qe,{modelValue:ie.value,"onUpdate:modelValue":Et[0]||(Et[0]=xr=>ie.value=xr),placeholder:"请选择",size:"small",onChange:de},{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(re,xr=>createVNode(Ve,{key:xr.value,label:xr.label,value:xr.value},null,8,["label","val
$ { Ir }
` ,vr),ElMessage.success("图片上传成功")}function nr(yr,vr){Ie.value=!0,toBase64(yr).then(Ir=>fileApi.fileUpload(Ir,yr)).then(Ir=>{console.log(Ir),vr?vr(Ir):ar(Ir)}).catch(Ir=>{ElMessage.error(Ir.message)}).finally(()=>{Ie.value=!1})}const ur=ref $ 1(0);function cr(){const yr=document.querySelector("#editor");yr.value||(yr.value= $ .value),L.value=CodeMirror.fromTextArea(yr,{mode:"text/x-markdown",theme:"xq-light",lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,autoCloseBrackets:!0,extraKeys:{[ ` $ { y } - F ` ]:function(Ir){const Mr=formatDoc(Ir.getValue(0));Ir.setValue(Mr)},[ ` $ { y } - B ` ]:function(Ir){const Mr=Ir.getSelection();Ir.replaceSelection( ` * * $ { Mr } * * ` )},[ ` $ { y } - I ` ]:function(Ir){const Mr=Ir.getSelection();Ir.replaceSelection( ` * $ { Mr } * ` )},[ ` $ { y } - D ` ]:function(Ir){const Mr=Ir.getSelection();Ir.replaceSelection( ` ~ ~ $ { Mr } ~ ~ ` )},[ ` $ { y } - K ` ]:function(Ir){const Mr=Ir.getSelection();Ir.replaceSelection( ` [ $ { Mr } ] ( ) ` )},[ ` $ { y } - E ` ]:function(Ir){const Mr=Ir.getSelection();Ir.replaceSelection( ` \ ` ${ Mr } \` ` ) } , [ ` ${ y } -L ` ] : function ( Ir ) { const Mr = Ir . getSelection ( ) ; Ir . replaceSelection ( ` \` ${ Mr } \` ` ) } } } ) , L . value . on ( "change" , vr => { clearTimeout ( ur . value ) , ur . value = setTimeout ( ( ) => { kt ( ) , $ . value = vr . getValue ( ) } , 300 ) } ) , L . value . on ( "paste" , ( vr , Ir ) => { if ( ! ( ! ( Ir . clipboardData && Ir . clipboardData . items ) || Ie . value ) ) for ( let Mr = 0 , mr = Ir . clipboardData . items . length ; Mr < mr ; ++ Mr ) { const gr = Ir . clipboardData . items [ Mr ] ; if ( gr . kind === "file" ) { const jr = gr . getAsFile ( ) ; if ( ! rr ( jr ) ) continue ; nr ( jr ) } } } ) , L . value . on ( "mousedown" , ( ) => { Ne . value = ! 1 } ) , L . value . on ( "blur" , ( ) => { Ne . value = ! 1 } ) , L . value . on ( "scroll" , ( ) => { Ne . value = ! 1 } ) } const _r = ref$1 ( null ) ; function hr ( yr ) { const Ir = _r . value . getBoundingClientRect ( ) . left , mr = _r . value . offsetWidth - 105 , gr = yr . clientX - Ir ; Ce . value = Math . min ( mr , gr ) , he . value = yr . clientY + 10 , Ne . value = ! 0 } function Er ( yr ) { L . value . options . extraKeys [ yr ] ( L . value ) } const kr = ref$1 ( null ) ; function xr ( ) { const yr = kr . value . $el , vr = async ( { md : mr , list : gr } ) => { const jr = [ ... mr . str . matchAll ( /!\[(.*?)\]\((.*?)\)/g ) || [ ] ] . filter ( zr => zr ) , Hr = mr . path . match ( /.+?\// ) [ 0 ] , Vr = await Promise . all ( jr . map ( zr => new Promise ( Tr => { let [ , , Cr ] = zr ; Cr = Cr . replace ( /^.\// , "" ) ; const { file : Br } = gr . find ( br => br . path === ` ${ Hr } ${ Cr } ` ) || { } ; nr ( Br , br => { Tr ( { matchStr : Cr , url : br } ) } ) } ) ) ) ; Vr . forEach ( zr => { mr . str = mr . str . replace ( ` ](./ ${ zr . matchStr } ) ` , ` ]( ${ zr . url } ) ` ) . replace ( ` ]( ${ zr . matchStr } ) ` , ` ]( ${ zr . url } ) ` ) } ) , L . value . setValue ( mr . str ) , console . log ( "resList" , Vr , mr . str ) } ; yr . ondragover = mr => mr . preventDefault ( ) , yr . ondrop = async mr => { mr . preventDefault ( ) ; for ( const gr of mr . dataTransfer . items ) gr . getAsFileSystemHandle ( ) . then ( async jr => { if ( jr . kind === "directory" ) { const Hr = await Mr ( jr ) , Vr = await Ir ( { list : Hr } ) ; vr ( { md : Vr , list : Hr } ) } else { const Hr = await jr . getFile ( ) ; console . log ( "file" , Hr ) } } ) } ; async function Ir ( { list : mr } ) { return new Promise ( gr => { const { path : jr , file : Hr } = mr . find ( zr => zr . path . match ( /\.md$/ ) ) , Vr = new FileReader ; Vr . readAsText ( Hr , "UTF-8" ) , Vr . onload = zr => { gr ( { str : zr . target . result , file : Hr , path : jr } ) } } ) } async function Mr ( mr ) { const gr = [ ] ; let jr = "" ; try { const Hr = [ mr ] ; for ( const Vr of Hr ) { jr += ` ${ Vr . name } / ` ; for await ( const [ , zr ] of Vr ) zr . kind === "file" ? gr . push ( { path : jr + zr . name , file : await zr . getFile ( ) } ) : ( gr . push ( { path : ` ${ jr + zr . name } / ` } ) , Hr . push ( zr ) ) } } catch ( Hr ) { console . error ( Hr ) } return gr } } return onMounted ( ( ) => { cr ( ) , kt ( ) , xr ( ) } ) , ( yr , vr ) => { const Ir = resolveComponent ( "el-header" ) , Mr = resolveComponent ( "el-col" ) , mr = resolveComponent ( "el-row" ) , gr = resolveComponent ( "el-main" ) , jr = resolveComponent ( "el-container" ) ; return openBlock ( ) , createElementBlock ( "div" , { ref _key : "container" , ref : _r , class : "container" } , [ createVNode ( jr , null , { default : withCtx ( ( ) => [ createVNode ( Ir , { class : "editor__header" } , { default : withCtx ( ( ) => [ createVNode ( EditorHeader , { onAddFormat : Er , onFormatContent : unref ( ie ) , onStartCopy : qe , onEndCopy : jt } , null , 8 , [ "onFormatContent" ] ) ] ) , _ : 1 } ) , createVNode ( gr , { class : "container-main" } , { default : withCtx ( ( ) => [ createVNode ( mr , { class : "container-main-section" } , { default : withCtx ( ( ) => [ createVNode ( Mr , { ref _key : "codeMirrorWrapper" , ref : kr , span : unref ( j ) ? 8 : 12 , class : normalizeClass ( [ "codeMirror-wrapper" , { "order-1" : ! unref ( n ) . isEditOnLeft } ] ) , onContextmenu : withModifiers ( hr , [ "prevent" ] ) } , { default : withCtx ( ( ) => [ _hoisted _1 ] ) , _ : 1 } , 8 , [ " spa
` ;_e.replaceSelection(kt+kt,null),oe(_e,-1),Ne=_e.listSelections();for(var Et=0;Et<Ne.length;Et++){var Ve=Ne[Et].head.line;_e.indentLine(Ve,null,!0),_e.indentLine(Ve+1,null,!0)}})}function oe(_e,Ce){for(var he=[],Ne=_e.listSelections(),Fe=0,Ue=0;Ue<Ne.length;Ue++){var kt=Ne[Ue];kt.head==_e.getCursor()&&(Fe=Ue);var Et=kt.head.ch||Ce>0?{line:kt.head.line,ch:kt.head.ch+Ce}:{line:kt.head.line-1};he.push({anchor:Et,head:Et})}_e.setSelections(he,Fe)}function ue(_e){var Ce=y.cmpPos(_e.anchor,_e.head)>0;return{anchor:new k(_e.anchor.line,_e.anchor.ch+(Ce?-1:1)),head:new k(_e.head.line,_e.head.ch+(Ce?1:-1))}}function de(_e,Ce){var he=z(_e);if(!he||_e.getOption("disableInput"))return y.Pass;var Ne=L(he,"pairs"),Fe=Ne.indexOf(Ce);if(Fe==-1)return y.Pass;for(var Ue=L(he,"closeBefore"),kt=L(he,"triples"),Et=Ne.charAt(Fe+1)==Ce,Ve=_e.listSelections(),qe=Fe%2==0,jt,tr=0;tr<Ve.length;tr++){var rr=Ve[tr],ar=rr.head,nr,ur=_e.getRange(ar,k(ar.line,ar.ch+1));if(qe&&!rr.empty())nr="surround";else if((Et||!qe)&&ur==Ce)Et&&Ie(_e,ar)?nr="both":kt.indexOf(Ce)>=0&&_e.getRange(ar,k(ar.line,ar.ch+3))==Ce+Ce+Ce?nr="skipThree":nr="skip";else if(Et&&ar.ch>1&&kt.indexOf(Ce)>=0&&_e.getRange(k(ar.line,ar.ch-2),ar)==Ce+Ce){if(ar.ch>2&&/ \b string/.test(_e.getTokenTypeAt(k(ar.line,ar.ch-2))))return y.Pass;nr="addFour"}else if(Et){var cr=ar.ch==0?" ":_e.getRange(k(ar.line,ar.ch-1),ar);if(!y.isWordChar(ur)&&cr!=Ce&&!y.isWordChar(cr))nr="both";else return y.Pass}else if(qe&&(ur.length===0||/ \s /.test(ur)||Ue.indexOf(ur)>-1))nr="both";else return y.Pass;if(!jt)jt=nr;else if(jt!=nr)return y.Pass}var _r=Fe%2?Ne.charAt(Fe-1):Ce,hr=Fe%2?Ce:Ne.charAt(Fe+1);_e.operation(function(){if(jt=="skip")oe(_e,1);else if(jt=="skipThree")oe(_e,3);else if(jt=="surround"){for(var Er=_e.getSelections(),kr=0;kr<Er.length;kr++)Er[kr]=_r+Er[kr]+hr;_e.replaceSelections(Er,"around"),Er=_e.listSelections().slice();for(var kr=0;kr<Er.length;kr++)Er[kr]=ue(Er[kr]);_e.setSelections(Er)}else jt=="both"?(_e.replaceSelection(_r+hr,null),_e.triggerElectric(_r+hr),oe(_e,-1)):jt=="addFour"&&(_e.replaceSelection(_r+_r+_r+_r,"before"),oe(_e,1))})}function pe(_e,Ce){var he=_e.getRange(k(Ce.line,Ce.ch-1),k(Ce.line,Ce.ch+1));return he.length==2?he:null}function Ie(_e,Ce){var he=_e.getTokenAt(k(Ce.line,Ce.ch+1));return/ \b string/.test(he.type)&&he.start==Ce.ch&&(Ce.ch==0||!/ \b string/.test(_e.getTokenTypeAt(Ce)))}})})();(function(e,t){(function(y){y(requireCodemirror())})(function(y){var n=/MSIE \d /.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),k=y.Pos,L={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function $ (oe){return oe&&oe.bracketRegex||/[(){}[ \] ]/}function j(oe,ue,de){var pe=oe.getLineHandle(ue.line),Ie=ue.ch-1,_e=de&&de.afterCursor;_e==null&&(_e=/(^| )cm-fat-cursor( $ | )/.test(oe.getWrapperElement().className));var Ce= $ (de),he=!_e&&Ie>=0&&Ce.test(pe.text.charAt(Ie))&&L[pe.text.charAt(Ie)]||Ce.test(pe.text.charAt(Ie+1))&&L[pe.text.charAt(++Ie)];if(!he)return null;var Ne=he.charAt(1)==">"?1:-1;if(de&&de.strict&&Ne>0!=(Ie==ue.ch))return null;var Fe=oe.getTokenTypeAt(k(ue.line,Ie+1)),Ue=V(oe,k(ue.line,Ie+(Ne>0?1:0)),Ne,Fe,de);return Ue==null?null:{from:k(ue.line,Ie),to:Ue&&Ue.pos,match:Ue&&Ue.ch==he.charAt(0),forward:Ne>0}}function V(oe,ue,de,pe,Ie){for(var _e=Ie&&Ie.maxScanLineLength||1e4,Ce=Ie&&Ie.maxScanLines||1e3,he=[],Ne= $ (Ie),Fe=de>0?Math.min(ue.line+Ce,oe.lastLine()+1):Math.max(oe.firstLine()-1,ue.line-Ce),Ue=ue.line;Ue!=Fe;Ue+=de){var kt=oe.getLine(Ue);if(kt){var Et=de>0?0:kt.length-1,Ve=de>0?kt.length:-1;if(!(kt.length>_e))for(Ue==ue.line&&(Et=ue.ch-(de<0?1:0));Et!=Ve;Et+=de){var qe=kt.charAt(Et);if(Ne.test(qe)&&(pe===void 0||(oe.getTokenTypeAt(k(Ue,Et+1))||"")==(pe||""))){var jt=L[qe];if(jt&&jt.charAt(1)==">"==de>0)he.push(qe);else if(he.length)he.pop();else return{pos:k(Ue,Et),ch:qe}}}}}return Ue-de==(de>0?oe.lastLine():oe.firstLine())?!1:null}function z(oe,ue,de){for(var pe=oe.state.matchBrackets.maxHighlightLineLength||1e3,Ie=de&&de.highlightNonMatching,_e=[],Ce=oe.listSelections(),he=0;he<Ce.length;he++){var Ne=Ce[he].empty()