2023-06-14 22:26:12 +00:00
( function ( ) { const e = document . createElement ( "link" ) . relList ; if ( e && e . supports && e . supports ( "modulepreload" ) ) return ; for ( const o of document . querySelectorAll ( 'link[rel="modulepreload"]' ) ) r ( o ) ; new MutationObserver ( o => { for ( const i of o ) if ( i . type === "childList" ) for ( const s of i . addedNodes ) s . tagName === "LINK" && s . rel === "modulepreload" && r ( s ) } ) . observe ( document , { childList : ! 0 , subtree : ! 0 } ) ; function n ( o ) { const i = { } ; return o . integrity && ( i . integrity = o . integrity ) , o . referrerPolicy && ( i . referrerPolicy = o . referrerPolicy ) , o . crossOrigin === "use-credentials" ? i . credentials = "include" : o . crossOrigin === "anonymous" ? i . credentials = "omit" : i . credentials = "same-origin" , i } function r ( o ) { if ( o . ep ) return ; o . ep = ! 0 ; const i = n ( o ) ; fetch ( o . href , i ) } } ) ( ) ; function Xd ( t , e ) { const n = Object . create ( null ) , r = t . split ( "," ) ; for ( let o = 0 ; o < r . length ; o ++ ) n [ r [ o ] ] = ! 0 ; return e ? o => ! ! n [ o . toLowerCase ( ) ] : o => ! ! n [ o ] } function vn ( t ) { if ( ve ( t ) ) { const e = { } ; for ( let n = 0 ; n < t . length ; n ++ ) { const r = t [ n ] , o = $e ( r ) ? Zy ( r ) : vn ( r ) ; if ( o ) for ( const i in o ) e [ i ] = o [ i ] } return e } else { if ( $e ( t ) ) return t ; if ( Ye ( t ) ) return t } } const Qy = /;(?![^(]*\))/g , jy = /:([^]+)/ , Xy = / \ / \ * . * ? \ * \ / / g s ; f u n c t i o n Z y ( t ) { c o n s t e = { } ; r e t u r n t . r e p l a c e ( X y , " " ) . s p l i t ( Q y ) . f o r E a c h ( n = > { i f ( n ) { c o n s t r = n . s p l i t ( j y ) ; r . l e n g t h > 1 & & ( e [ r [ 0 ] . t r i m ( ) ] = r [ 1 ] . t r i m ( ) ) } } ) , e } f u n c t i o n k e ( t ) { l e t e = " " ; i f ( $ e ( t ) ) e = t ; e l s e i f ( v e ( t ) ) f o r ( l e t n = 0 ; n < t . l e n g t h ; n + + ) { c o n s t r = k e ( t [ n ] ) ; r & & ( e + = r + " " ) } e l s e i f ( Y e ( t ) ) f o r ( c o n s t n i n t ) t [ n ] & & ( e + = n + " " ) ; r e t u r n e . t r i m ( ) } c o n s t J y = " i t e m s c o p e , a l l o w f u l l s c r e e n , f o r m n o v a l i d a t e , i s m a p , n o m o d u l e , n o v a l i d a t e , r e a d o n l y " , e v = X d ( J y ) ; f u n c t i o n l E ( t ) { r e t u r n ! ! t | | t = = = " " } f u n c t i o n t v ( t , e ) { i f ( t . l e n g t h ! = = e . l e n g t h ) r e t u r n ! 1 ; l e t n = ! 0 ; f o r ( l e t r = 0 ; n & & r < t . l e n g t h ; r + + ) n = v i ( t [ r ] , e [ r ] ) ; r e t u r n n } f u n c t i o n v i ( t , e ) { i f ( t = = = e ) r e t u r n ! 0 ; l e t n = d _ ( t ) , r = d _ ( e ) ; i f ( n | | r ) r e t u r n n & & r ? t . g e t T i m e ( ) = = = e . g e t T i m e ( ) : ! 1 ; i f ( n = j r ( t ) , r = j r ( e ) , n | | r ) r e t u r n t = = = e ; i f ( n = v e ( t ) , r = v e ( e ) , n | | r ) r e t u r n n & & r ? t v ( t , e ) : ! 1 ; i f ( n = Y e ( t ) , r = Y e ( e ) , n | | r ) { i f ( ! n | | ! r ) r e t u r n ! 1 ; c o n s t o = O b j e c t . k e y s ( t ) . l e n g t h , i = O b j e c t . k e y s ( e ) . l e n g t h ; i f ( o ! = = i ) r e t u r n ! 1 ; f o r ( c o n s t s i n t ) { c o n s t a = t . h a s O w n P r o p e r t y ( s ) , l = e . h a s O w n P r o p e r t y ( s ) ; i f ( a & & ! l | | ! a & & l | | ! v i ( t [ s ] , e [ s ] ) ) r e t u r n ! 1 } } r e t u r n S t r i n g ( t ) = = = S t r i n g ( e ) } f u n c t i o n c E ( t , e ) { r e t u r n t . f i n d I n d e x ( n = > v i ( n , e ) ) } c o n s t h e = t = > $ e ( t ) ? t : t = = n u l l ? " " : v e ( t ) | | Y e ( t ) & & ( t . t o S t r i n g = = = _ E | | ! O e ( t . t o S t r i n g ) ) ? J S O N . s t r i n g i f y ( t , d E , 2 ) : S t r i n g ( t ) , d E = ( t , e ) = > e & & e . _ _ v _ i s R e f ? d E ( t , e . v a l u e ) : a r ( e ) ? { [ ` M a p ( $ { e . s i z e } ) ` ] : [ . . . e . e n t r i e s ( ) ] . r e d u c e ( ( n , [ r , o ] ) = > ( n [ ` $ { r } = > ` ] = o , n ) , { } ) } : R i ( e ) ? { [ ` S e t ( $ { e . s i z e } ) ` ] : [ . . . e . v a l u e s ( ) ] } : Y e ( e ) & & ! v e ( e ) & & ! p E ( e ) ? S t r i n g ( e ) : e , H e = { } , s r = [ ] , w t = ( ) = > { } , n v = ( ) = > ! 1 , r v = / ^ o n [ ^ a - z ] / , C i = t = > r v . t e s t ( t ) , Z d = t = > t . s t a r t s W i t h ( " o n U p d a t e : " ) , e t = O b j e c t . a s s i g n , J d = ( t , e ) = > { c o n s t n = t . i n d e x O f ( e ) ; n > - 1 & & t . s p l i c e ( n , 1 ) } , o v = O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y , D e = ( t , e ) = > o v . c a l l ( t , e ) , v e = A r r a y . i s A r r a y , a r = t = > C r ( t ) = = = " [ o b j e c t M a p ] " , R i = t = > C r ( t ) = = = " [ o b j e c t S e t ] " , d _ = t = > C r ( t ) = = = " [ o b j e c t D a t e ] " , i v = t = > C r ( t ) = = = " [ o b j e c t R e g E x p ] " , O e = t = > t y p e o f t = = " f u n c t i o n " , $ e = t = > t y p e o f t = = " s t r i n g " , j r = t = > t y p e o f t = = " s y m b o l " , Y e = t = > t ! = = n u l l & & t y p e o f t = = " o b j e c t " , u E = t = > Y e ( t ) & & O e ( t . t h e n ) & & O e ( t . c a t c h ) , _ E = O b j e c t . p r o t o t y p e . t o S t r i n g , C r = t = > _ E . c a l l ( t ) , s v = t = > C r ( t ) . s l i c e ( 8 , - 1 ) , p E = t = > C r ( t ) = = = " [ o b j e c t O b j e c t ] " , e u = t = > $ e ( t ) & & t ! = = " N a N " & & t [ 0 ] ! = = " - " & & " " + p a r s e I n t ( t , 1 0 ) = = = t , Y o = X d ( " , k e y , r e f , r e f _ f o r , r e f _ k e y , o n V n o d e B e f o r e M o u n t , o n V n o d e M o u n t e d , o n V n o d e B e f o r e U p d a t e , o n V n o d e U p d a t e d , o n V n o d e B e f o r e U n m o u n t , o n V n o d e U n m o u n t e d " ) , O i = t = > { c o n s t e = O b j e c t . c r e a t e ( n u l l ) ; r e t u r n n = > e [ n ] | | ( e [ n ] = t ( n ) ) } , a v = / - ( \ w ) / g , H t = O i ( t = > t . r e p l a c e ( a v , ( e , n ) = > n ? n . t o U p p e r C a s e ( ) : " " ) ) , l v = / \ B ( [ A - Z ] ) / g , Q n = O i ( t = > t . r e p l a c e ( l v , " - $ 1 " ) . t o L o w e r C a s e ( ) ) , N i = O i ( t = > t . c h a r A t ( 0 ) . t o U p p e r C a s e ( ) + t . s l i c e ( 1 ) ) , o s = O i ( t = > t ? ` o n $ { N i ( t ) } ` : " " ) , X r = ( t , e ) = > ! O b j e c t . i s ( t , e ) , l r = ( t , e ) = > { f o r ( l e t n = 0 ; n < t . l e n g t h ; n + + ) t [ n ] ( e ) } , t i = ( t , e , n ) = > { O b j e c t . d e f i n e P r o p e r t y ( t , e , { c o n f i g u r a b l e : ! 0 , e n u m e r a b l e : ! 1 , v a l u e : n } ) } , m d = t = > { c o n s t e = p a r s e F l o a t ( t ) ; r e t u r n i s N a N ( e ) ? t : e } , c v = t = > { c o n s t e = $ e ( t ) ? N u m b e r ( t ) : N a N ; r e t u r n i s N a N ( e ) ? t : e } ; l e t u _ ; c o n s t d v = ( ) = > u _ | | ( u _ = t y p e o f g l o b a l T h i s < " u " ? g l o b a l T h i s : t y p e o f s e l f < " u " ? s e l f : t y p e o f w i n d o w < " u " ? w i n d o w : t y p e o f g l o b a l < " u " ? g l o b a l : { } ) ; l e t N t ; c l a s s u v { c o n s t r u c t o r ( e = ! 1 ) { t h i s . d e t a c h e d = e , 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 = N t , ! e & & N t & & ( t h i s . i n d e x = ( N t . s c o p e s | | ( N t . s c o p e s = [ ] ) ) . p u s h ( t h i s
* vuex v4 . 0.2
* ( c ) 2021 Evan You
* @ license MIT
* /var UR="store";function Ar(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function BR(t){return t!==null&&typeof t=="object"}function GR(t){return t&&typeof t.then=="function"}function qR(t,e){return function(){return t(e)}}function hS(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var r=e.indexOf(t);r>-1&&e.splice(r,1)}}function ES(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;Ui(t,n,[],t._modules.root,!0),bu(t,n,e)}function bu(t,e,n){var r=t._state;t.getters={},t._makeLocalGettersCache=Object.create(null);var o=t._wrappedGetters,i={};Ar(o,function(s,a){i[a]=qR(s,t),Object.defineProperty(t.getters,a,{get:function(){return i[a]()},enumerable:!0})}),t._state=Nr({data:e}),t.strict&&$R(t),r&&n&&t._withCommit(function(){r.data=null})}function Ui(t,e,n,r,o){var i=!n.length,s=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[s],t._modulesNamespaceMap[s]=r),!i&&!o){var a=Tu(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit(function(){a[l]=r.state})}var c=r.context=YR(t,s,n);r.forEachMutation(function(d,u){var p=s+u;HR(t,p,d,c)}),r.forEachAction(function(d,u){var p=d.root?u:s+u,_=d.handler||d;VR(t,p,_,c)}),r.forEachGetter(function(d,u){var p=s+u;zR(t,p,d,c)}),r.forEachChild(function(d,u){Ui(t,e,n.concat(u),d,o)})}function YR(t,e,n){var r=e==="",o={dispatch:r?t.dispatch:function(i,s,a){var l=si(i,s,a),c=l.payload,d=l.options,u=l.type;return(!d||!d.root)&&(u=e+u),t.dispatch(u,c)},commit:r?t.commit:function(i,s,a){var l=si(i,s,a),c=l.payload,d=l.options,u=l.type;(!d||!d.root)&&(u=e+u),t.commit(u,c,d)}};return Object.defineProperties(o,{getters:{get:r?function(){return t.getters}:function(){return SS(t,e)}},state:{get:function(){return Tu(t.state,n)}}}),o}function SS(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach(function(o){if(o.slice(0,r)===e){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return t.getters[o]},enumerable:!0})}}),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function HR(t,e,n,r){var o=t._mutations[e]||(t._mutations[e]=[]);o.push(function(s){n.call(t,r.state,s)})}function VR(t,e,n,r){var o=t._actions[e]||(t._actions[e]=[]);o.push(function(s){var a=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},s);return GR(a)||(a=Promise.resolve(a)),t._devtoolHook?a.catch(function(l){throw t._devtoolHook.emit("vuex:error",l),l}):a})}function zR(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(i){return n(r.state,r.getters,i.state,i.getters)})}function $R(t){Yn(function(){return t._state.data},function(){},{deep:!0,flush:"sync"})}function Tu(t,e){return e.reduce(function(n,r){return n[r]},t)}function si(t,e,n){return BR(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}var WR="vuex bindings",$_="vuex:mutations",ps="vuex:actions",Jn="vuex",KR=0;function QR(t,e){FR({id:"org.vuejs.vuex",app:t,label:"Vuex",homepage:"https:/ / next . vuex . vuejs . org / ",logo:" https : //vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[WR]},function(n){n.addTimelineLayer({id:$_,label:"Vuex Mutations",color:W_}),n.addTimelineLayer({id:ps,label:"Vuex Actions",color:W_}),n.addInspector({id:Jn,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(r){if(r.app===t&&r.inspectorId===Jn)if(r.filter){var o=[];vS(o,e._modules.root,r.filter,""),r.rootNodes=o}else r.rootNodes=[yS(e._modules.root,"")]}),n.on.getInspectorState(function(r){if(r.app===t&&r.inspectorId===Jn){var o=r.nodeId;SS(e,o),r.state=ZR(eO(e._modules,o),o==="root"?e.getters:e._makeLocalGettersCache,o)}}),n.on.editInspectorState(function(r){if(r.app===t&&r.inspectorId===Jn){var o=r.nodeId,i=r.path;o!=="root"&&(i=o.split("/").filter(Boolean).concat(i)),e._withCommit(function(){r.set(e._state.data,i,r.state.value)})}}),e.subscribe(function(r,o){var i={};r.payload&&(i.payload=r.payload),i.state
2023-06-07 07:39:38 +00:00
* vue - router v4 . 1.6
* ( c ) 2022 Eduardo San Martin Morote
* @ license MIT
2023-06-14 22:26:12 +00:00
* /const rr=typeof window<"u";function nO(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Ue=Object.assign;function ms(t,e){const n={};for(const r in e){const o=e[r];n[r]=Dt(o)?o.map(t):t(o)}return n}const Vr=()=>{},Dt=Array.isArray,rO=/ \ / $ / , oO = t => t . replace ( rO , "" ) ; function gs ( t , e , n = "/" ) { let r , o = { } , i = "" , s = "" ; const a = e . indexOf ( "#" ) ; let l = e . indexOf ( "?" ) ; return a < l && a >= 0 && ( l = - 1 ) , l > - 1 && ( r = e . slice ( 0 , l ) , i = e . slice ( l + 1 , a > - 1 ? a : e . length ) , o = t ( i ) ) , a > - 1 && ( r = r || e . slice ( 0 , a ) , s = e . slice ( a , e . length ) ) , r = lO ( r ? ? e , n ) , { fullPath : r + ( i && "?" ) + i + s , path : r , query : o , hash : s } } function iO ( t , e ) { const n = e . query ? t ( e . query ) : "" ; return e . path + ( n && "?" ) + n + ( e . hash || "" ) } function K _ ( t , e ) { return ! e || ! t . toLowerCase ( ) . startsWith ( e . toLowerCase ( ) ) ? t : t . slice ( e . length ) || "/" } function sO ( t , e , n ) { const r = e . matched . length - 1 , o = n . matched . length - 1 ; return r > - 1 && r === o && fr ( e . matched [ r ] , n . matched [ o ] ) && OS ( e . params , n . params ) && t ( e . query ) === t ( n . query ) && e . hash === n . hash } function fr ( t , e ) { return ( t . aliasOf || t ) === ( e . aliasOf || e ) } function OS ( t , e ) { if ( Object . keys ( t ) . length !== Object . keys ( e ) . length ) return ! 1 ; for ( const n in t ) if ( ! aO ( t [ n ] , e [ n ] ) ) return ! 1 ; return ! 0 } function aO ( t , e ) { return Dt ( t ) ? Q _ ( t , e ) : Dt ( e ) ? Q _ ( e , t ) : t === e } function Q _ ( t , e ) { return Dt ( e ) ? t . length === e . length && t . every ( ( n , r ) => n === e [ r ] ) : t . length === 1 && t [ 0 ] === e } function lO ( t , e ) { if ( t . startsWith ( "/" ) ) return t ; if ( ! t ) return e ; const n = e . split ( "/" ) , r = t . split ( "/" ) ; let o = n . length - 1 , i , s ; for ( i = 0 ; i < r . length ; i ++ ) if ( s = r [ i ] , s !== "." ) if ( s === ".." ) o > 1 && o -- ; else break ; return n . slice ( 0 , o ) . join ( "/" ) + "/" + r . slice ( i - ( i === r . length ? 1 : 0 ) ) . join ( "/" ) } var io ; ( function ( t ) { t . pop = "pop" , t . push = "push" } ) ( io || ( io = { } ) ) ; var zr ; ( function ( t ) { t . back = "back" , t . forward = "forward" , t . unknown = "" } ) ( zr || ( zr = { } ) ) ; function cO ( t ) { if ( ! t ) if ( rr ) { const e = document . querySelector ( "base" ) ; t = e && e . getAttribute ( "href" ) || "/" , t = t . replace ( /^\w+:\/\/[^\/]+/ , "" ) } else t = "/" ; return t [ 0 ] !== "/" && t [ 0 ] !== "#" && ( t = "/" + t ) , oO ( t ) } const dO = /^[^#]+#/ ; function uO ( t , e ) { return t . replace ( dO , "#" ) + e } function _O ( t , e ) { const n = document . documentElement . getBoundingClientRect ( ) , r = t . getBoundingClientRect ( ) ; return { behavior : e . behavior , left : r . left - n . left - ( e . left || 0 ) , top : r . top - n . top - ( e . top || 0 ) } } const Bi = ( ) => ( { left : window . pageXOffset , top : window . pageYOffset } ) ; function pO ( t ) { let e ; if ( "el" in t ) { const n = t . el , r = typeof n == "string" && n . startsWith ( "#" ) , o = typeof n == "string" ? r ? document . getElementById ( n . slice ( 1 ) ) : document . querySelector ( n ) : n ; if ( ! o ) return ; e = _O ( o , t ) } else e = t ; "scrollBehavior" in document . documentElement . style ? window . scrollTo ( e ) : window . scrollTo ( e . left != null ? e . left : window . pageXOffset , e . top != null ? e . top : window . pageYOffset ) } function j _ ( t , e ) { return ( history . state ? history . state . position - e : - 1 ) + t } const xd = new Map ; function mO ( t , e ) { xd . set ( t , e ) } function gO ( t ) { const e = xd . get ( t ) ; return xd . delete ( t ) , e } let fO = ( ) => location . protocol + "//" + location . host ; function NS ( t , e ) { const { pathname : n , search : r , hash : o } = e , i = t . indexOf ( "#" ) ; if ( i > - 1 ) { let a = o . includes ( t . slice ( i ) ) ? t . slice ( i ) . length : 1 , l = o . slice ( a ) ; return l [ 0 ] !== "/" && ( l = "/" + l ) , K _ ( l , "" ) } return K _ ( n , t ) + r + o } function hO ( t , e , n , r ) { let o = [ ] , i = [ ] , s = null ; const a = ( { state : p } ) => { const _ = NS ( t , location ) , g = n . value , f = e . value ; let E = 0 ; if ( p ) { if ( n . value = _ , e . value = p , s && s === g ) { s = null ; return } E = f ? p . position - f . position : 0 } else r ( _ ) ; o . forEach ( h => { h ( n . value , g , { delta : E , type : io . pop , direction : E ? E > 0 ? zr . forward : zr . back : zr . unknown } ) } ) } ; function l ( ) { s = n . value } function c ( p ) { o . push ( p ) ; const _ = ( ) => { const g = o . indexOf ( p ) ; g > - 1 && o . splice ( g , 1 ) } ; return i . push ( _ ) , _ } function d ( ) { const { history : p } = window ; p . state && p . replaceState ( Ue ( { } , p . state , { scroll : Bi ( ) } ) , "" ) } function u ( ) { for ( const p of i ) p ( ) ; i = [ ] , window . removeEventListener ( "popstate" , a ) , window . removeEventListener ( "beforeunload" , d ) } return window . addEventListener ( "popstate" , a ) , window . addEventListener ( "beforeunload" , d ) , { pauseListeners : l , listen : c , destroy : u } } function X _ ( t , e , n , r = ! 1 , o = ! 1 ) { return { back : t , current : e , forward : n , replaced : r , position : window . history . length , scroll : o ? Bi ( ) : null } } function EO ( t ) { const { history : e , location : n } = window , r = { value : NS ( t , n ) } , o = { value : e . state } ; o . value || i ( r . value , { back : null , current : r . value , forward : null , position : e . length - 1 , replaced : ! 0 , scroll : null } , ! 0 ) ; function i ( l , c , d ) { const u = t . indexOf ( "#"
2023-06-07 07:39:38 +00:00
Copyright ( c ) 2016 Jed Watson .
Licensed under the MIT License ( MIT ) , see
http : //jedwatson.github.io/classnames
2023-06-14 22:26:12 +00:00
* /(function(){var a=function(){function l(){}l.prototype=Object.create(null);function c(h,S){for(var T=S.length,R=0;R<T;++R)f(h,S[R])}var d={}.hasOwnProperty;function u(h,S){h[S]=!0}function p(h,S){for(var T in S)d.call(S,T)&&(h[T]=!!S[T])}var _=/ \ s + / ; f u n c t i o n g ( h , S ) { f o r ( v a r T = S . s p l i t ( _ ) , R = T . l e n g t h , x = 0 ; x < R ; + + x ) h [ T [ x ] ] = ! 0 } f u n c t i o n f ( h , S ) { i f ( S ) { v a r T = t y p e o f S ; T = = = " s t r i n g " ? g ( h , S ) : A r r a y . i s A r r a y ( S ) ? c ( h , S ) : T = = = " o b j e c t " ? p ( h , S ) : T = = = " n u m b e r " & & u ( h , S ) } } f u n c t i o n E ( ) { f o r ( v a r h = a r g u m e n t s . l e n g t h , S = A r r a y ( h ) , T = 0 ; T < h ; T + + ) S [ T ] = a r g u m e n t s [ T ] ; v a r R = n e w l ; c ( R , S ) ; v a r x = [ ] ; f o r ( v a r O i n R ) R [ O ] & & x . p u s h ( O ) ; r e t u r n x . j o i n ( " " ) } r e t u r n E } ( ) ; t y p e o f n < " u " & & n . e x p o r t s ? n . e x p o r t s = a : ( i = [ ] , s = f u n c t i o n ( ) { r e t u r n a } . a p p l y ( r , i ) , s ! = = v o i d 0 & & ( n . e x p o r t s = s ) ) } ) ( ) } , " . / n o d e _ m o d u l e s / c o r e - j s / e s / a r r a y / f r o m . j s " : f u n c t i o n ( n , r , o ) { o ( " . / n o d e _ m o d u l e s / c o r e - j s / m o d u l e s / e s . s t r i n g . i t e r a t o r . j s " ) , o ( " . / n o d e _ m o d u l e s / c o r e - j s / m o d u l e s / e s . a r r a y . f r o m . j s " ) ; v a r i = o ( " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / p a t h . j s " ) ; n . e x p o r t s = i . A r r a y . f r o m } , " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / a - f u n c t i o n . j s " : f u n c t i o n ( n , r ) { n . e x p o r t s = f u n c t i o n ( o ) { i f ( t y p e o f o ! = " f u n c t i o n " ) t h r o w T y p e E r r o r ( S t r i n g ( o ) + " i s n o t a f u n c t i o n " ) ; r e t u r n o } } , " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / a n - o b j e c t . j s " : f u n c t i o n ( n , r , o ) { v a r i = o ( " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / i s - o b j e c t . j s " ) ; n . e x p o r t s = f u n c t i o n ( s ) { i f ( ! i ( s ) ) t h r o w T y p e E r r o r ( S t r i n g ( s ) + " i s n o t a n o b j e c t " ) ; r e t u r n s } } , " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / a r r a y - f r o m . j s " : f u n c t i o n ( n , r , o ) { v a r i = o ( " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / b i n d - c o n t e x t . j s " ) , s = o ( " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / t o - o b j e c t . j s " ) , a = o ( " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / c a l l - w i t h - s a f e - i t e r a t i o n - c l o s i n g . j s " ) , l = o ( " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / i s - a r r a y - i t e r a t o r - m e t h o d . j s " ) , c = o ( " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / t o - l e n g t h . j s " ) , d = o ( " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / c r e a t e - p r o p e r t y . j s " ) , u = o ( " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / g e t - i t e r a t o r - m e t h o d . j s " ) ; n . e x p o r t s = f u n c t i o n ( _ ) { v a r g = s ( _ ) , f = t y p e o f t h i s = = " f u n c t i o n " ? t h i s : A r r a y , E = a r g u m e n t s . l e n g t h , h = E > 1 ? a r g u m e n t s [ 1 ] : v o i d 0 , S = h ! = = v o i d 0 , T = 0 , R = u ( g ) , x , O , M , b ; i f ( S & & ( h = i ( h , E > 2 ? a r g u m e n t s [ 2 ] : v o i d 0 , 2 ) ) , R ! = n u l l & & ! ( f = = A r r a y & & l ( R ) ) ) f o r ( b = R . c a l l ( g ) , O = n e w f ; ! ( M = b . n e x t ( ) ) . d o n e ; T + + ) d ( O , T , S ? a ( b , h , [ M . v a l u e , T ] , ! 0 ) : M . v a l u e ) ; e l s e f o r ( x = c ( g . l e n g t h ) , O = n e w f ( x ) ; x > T ; T + + ) d ( O , T , S ? h ( g [ T ] , T ) : g [ T ] ) ; r e t u r n O . l e n g t h = T , O } } , " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / a r r a y - i n c l u d e s . j s " : f u n c t i o n ( n , r , o ) { v a r i = o ( " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / t o - i n d e x e d - o b j e c t . j s " ) , s = o ( " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / t o - l e n g t h . j s " ) , a = o ( " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / t o - a b s o l u t e - i n d e x . j s " ) ; n . e x p o r t s = f u n c t i o n ( l ) { r e t u r n f u n c t i o n ( c , d , u ) { v a r p = i ( c ) , _ = s ( p . l e n g t h ) , g = a ( u , _ ) , f ; i f ( l & & d ! = d ) { f o r ( ; _ > g ; ) i f ( f = p [ g + + ] , f ! = f ) r e t u r n ! 0 } e l s e f o r ( ; _ > g ; g + + ) i f ( ( l | | g i n p ) & & p [ g ] = = = d ) r e t u r n l | | g | | 0 ; r e t u r n ! l & & - 1 } } } , " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / b i n d - c o n t e x t . j s " : f u n c t i o n ( n , r , o ) { v a r i = o ( " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / a - f u n c t i o n . j s " ) ; n . e x p o r t s = f u n c t i o n ( s , a , l ) { i f ( i ( s ) , a = = = v o i d 0 ) r e t u r n s ; s w i t c h ( l ) { c a s e 0 : r e t u r n f u n c t i o n ( ) { r e t u r n s . c a l l ( a ) } ; c a s e 1 : r e t u r n f u n c t i o n ( c ) { r e t u r n s . c a l l ( a , c ) } ; c a s e 2 : r e t u r n f u n c t i o n ( c , d ) { r e t u r n s . c a l l ( a , c , d ) } ; c a s e 3 : r e t u r n f u n c t i o n ( c , d , u ) { r e t u r n s . c a l l ( a , c , d , u ) } } r e t u r n f u n c t i o n ( ) { r e t u r n s . a p p l y ( a , a r g u m e n t s ) } } } , " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / c a l l - w i t h - s a f e - i t e r a t i o n - c l o s i n g . j s " : f u n c t i o n ( n , r , o ) { v a r i = o ( " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / a n - o b j e c t . j s " ) ; n . e x p o r t s = f u n c t i o n ( s , a , l , c ) { t r y { r e t u r n c ? a ( i ( l ) [ 0 ] , l [ 1 ] ) : a ( l ) } c a t c h ( u ) { v a r d = s . r e t u r n ; t h r o w d ! = = v o i d 0 & & i ( d . c a l l ( s ) ) , u } } } , " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / c h e c k - c o r r e c t n e s s - o f - i t e r a t i o n . j s " : f u n c t i o n ( n , r , o ) { v a r i = o ( " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / w e l l - k n o w n - s y m b o l . j s " ) , s = i ( " i t e r a t o r " ) , a = ! 1 ; t r y { v a r l = 0 , c = { n e x t : f u n c t i o n ( ) { r e t u r n { d o n e : ! ! l + + } } , r e t u r n : f u n c t i o n ( ) { a = ! 0 } } ; c [ s ] = f u n c t i o n ( ) { r e t u r n t h i s } , A r r a y . f r o m ( c , f u n c t i o n ( ) { t h r o w 2 } ) } c a t c h { } n . e x p o r t s = f u n c t i o n ( d , u ) { i f ( ! u & & ! a ) r e t u r n ! 1 ; v a r p = ! 1 ; t r y { v a r _ = { } ; _ [ s ] = f u n c t i o n ( ) { r e t u r n { n e x t : f u n c t i o n ( ) { r e t u r n { d o n e : p = ! 0 } } } } , d ( _ ) } c a t c h { } r e t u r n p } } , " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / c l a s s o f - r a w . j s " : f u n c t i o n ( n , r ) { v a r o = { } . t o S t r i n g ; n . e x p o r t s = f u n c t i o n ( i ) { r e t u r n o . c a l l ( i ) . s l i c e ( 8 , - 1 ) } } , " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / c l a s s o f . j s " : f u n c t i o n ( n , r , o ) { v a r i = o ( " . / n o d e _ m o d u l e s / c o r e - j s / i n t e r n a l s / c l a s s o f - r
2023-06-07 07:39:38 +00:00
Papa Parse
v5 . 4.1
https : //github.com/mholt/PapaParse
License : MIT
2023-06-14 22:26:12 +00:00
* / ( f u n c t i o n ( t , e ) { ( f u n c t i o n ( n , r ) { t . e x p o r t s = r ( ) } ) ( U S , f u n c t i o n n ( ) { v a r r = t y p e o f s e l f < " u " ? s e l f : t y p e o f w i n d o w < " u " ? w i n d o w : r ! = = v o i d 0 ? r : { } , o = ! r . d o c u m e n t & & ! ! r . p o s t M e s s a g e , i = r . I S _ P A P A _ W O R K E R | | ! 1 , s = { } , a = 0 , l = { p a r s e : f u n c t i o n ( b , C ) { v a r I = ( C = C | | { } ) . d y n a m i c T y p i n g | | ! 1 ; i f ( M ( I ) & & ( C . d y n a m i c T y p i n g F u n c t i o n = I , I = { } ) , C . d y n a m i c T y p i n g = I , C . t r a n s f o r m = ! ! M ( C . t r a n s f o r m ) & & C . t r a n s f o r m , C . w o r k e r & & l . W O R K E R S _ S U P P O R T E D ) { v a r D = f u n c t i o n ( ) { i f ( ! l . W O R K E R S _ S U P P O R T E D ) r e t u r n ! 1 ; v a r K = ( i e = r . U R L | | r . w e b k i t U R L | | n u l l , z = n . t o S t r i n g ( ) , l . B L O B _ U R L | | ( l . B L O B _ U R L = i e . c r e a t e O b j e c t U R L ( n e w B l o b ( [ " v a r g l o b a l = ( f u n c t i o n ( ) { i f ( t y p e o f s e l f ! = = ' u n d e f i n e d ' ) { r e t u r n s e l f ; } i f ( t y p e o f w i n d o w ! = = ' u n d e f i n e d ' ) { r e t u r n w i n d o w ; } i f ( t y p e o f g l o b a l ! = = ' u n d e f i n e d ' ) { r e t u r n g l o b a l ; } r e t u r n { } ; } ) ( ) ; g l o b a l . I S _ P A P A _ W O R K E R = t r u e ; " , " ( " , z , " ) ( ) ; " ] , { t y p e : " t e x t / j a v a s c r i p t " } ) ) ) ) , P = n e w r . W o r k e r ( K ) , i e , z ; r e t u r n P . o n m e s s a g e = S , P . i d = a + + , s [ P . i d ] = P } ( ) ; r e t u r n D . u s e r S t e p = C . s t e p , D . u s e r C h u n k = C . c h u n k , D . u s e r C o m p l e t e = C . c o m p l e t e , D . u s e r E r r o r = C . e r r o r , C . s t e p = M ( C . s t e p ) , C . c h u n k = M ( C . c h u n k ) , C . c o m p l e t e = M ( C . c o m p l e t e ) , C . e r r o r = M ( C . e r r o r ) , d e l e t e C . w o r k e r , v o i d D . p o s t M e s s a g e ( { i n p u t : b , c o n f i g : C , w o r k e r I d : D . i d } ) } v a r k = n u l l ; r e t u r n l . N O D E _ S T R E A M _ I N P U T , t y p e o f b = = " s t r i n g " ? ( b = f u n c t i o n ( K ) { r e t u r n K . c h a r C o d e A t ( 0 ) = = = 6 5 2 7 9 ? K . s l i c e ( 1 ) : K } ( b ) , k = C . d o w n l o a d ? n e w u ( C ) : n e w _ ( C ) ) : b . r e a d a b l e = = = ! 0 & & M ( b . r e a d ) & & M ( b . o n ) ? k = n e w g ( C ) : ( r . F i l e & & b i n s t a n c e o f F i l e | | b i n s t a n c e o f O b j e c t ) & & ( k = n e w p ( C ) ) , k . s t r e a m ( b ) } , u n p a r s e : f u n c t i o n ( b , C ) { v a r I = ! 1 , D = ! 0 , k = " , " , K = ` \ r
2023-06-13 16:26:32 +00:00
` ,P='"',ie=P+P,z=!1,A=null,q=!1;(function(){if(typeof C=="object"){if(typeof C.delimiter!="string"||l.BAD_DELIMITERS.filter(function(ee){return C.delimiter.indexOf(ee)!==-1}).length||(k=C.delimiter),(typeof C.quotes=="boolean"||typeof C.quotes=="function"||Array.isArray(C.quotes))&&(I=C.quotes),typeof C.skipEmptyLines!="boolean"&&typeof C.skipEmptyLines!="string"||(z=C.skipEmptyLines),typeof C.newline=="string"&&(K=C.newline),typeof C.quoteChar=="string"&&(P=C.quoteChar),typeof C.header=="boolean"&&(D=C.header),Array.isArray(C.columns)){if(C.columns.length===0)throw new Error("Option columns is empty");A=C.columns}C.escapeChar!==void 0&&(ie=C.escapeChar+P),(typeof C.escapeFormulae=="boolean"||C.escapeFormulae instanceof RegExp)&&(q=C.escapeFormulae instanceof RegExp?C.escapeFormulae:/^[=+ \- @ \t \r ].* $ /)}})();var H=new RegExp(E(P),"g");if(typeof b=="string"&&(b=JSON.parse(b)),Array.isArray(b)){if(!b.length||Array.isArray(b[0]))return me(null,b,z);if(typeof b[0]=="object")return me(A||Object.keys(b[0]),b,z)}else if(typeof b=="object")return typeof b.data=="string"&&(b.data=JSON.parse(b.data)),Array.isArray(b.data)&&(b.fields||(b.fields=b.meta&&b.meta.fields||A),b.fields||(b.fields=Array.isArray(b.data[0])?b.fields:typeof b.data[0]=="object"?Object.keys(b.data[0]):[]),Array.isArray(b.data[0])||typeof b.data[0]=="object"||(b.data=[b.data])),me(b.fields||[],b.data||[],z);throw new Error("Unable to serialize unrecognized input");function me(ee,ge,Ee){var L="";typeof ee=="string"&&(ee=JSON.parse(ee)),typeof ge=="string"&&(ge=JSON.parse(ge));var $ =Array.isArray(ee)&&0<ee.length,V=!Array.isArray(ge[0]);if( $ &&D){for(var Z=0;Z<ee.length;Z++)0<Z&&(L+=k),L+=_e(ee[Z],Z);0<ge.length&&(L+=K)}for(var J=0;J<ge.length;J++){var de= $ ?ee.length:ge[J].length,le=!1,y= $ ?Object.keys(ge[J]).length===0:ge[J].length===0;if(Ee&&! $ &&(le=Ee==="greedy"?ge[J].join("").trim()==="":ge[J].length===1&&ge[J][0].length===0),Ee==="greedy"&& $ ){for(var N=[],F=0;F<de;F++){var U=V?ee[F]:F;N.push(ge[J][U])}le=N.join("").trim()===""}if(!le){for(var B=0;B<de;B++){0<B&&!y&&(L+=k);var te= $ &&V?ee[B]:B;L+=_e(ge[J][te],B)}J<ge.length-1&&(!Ee||0<de&&!y)&&(L+=K)}}return L}function _e(ee,ge){if(ee==null)return"";if(ee.constructor===Date)return JSON.stringify(ee).slice(1,25);var Ee=!1;q&&typeof ee=="string"&&q.test(ee)&&(ee="'"+ee,Ee=!0);var L=ee.toString().replace(H,ie);return(Ee=Ee||I===!0||typeof I=="function"&&I(ee,ge)||Array.isArray(I)&&I[ge]||function( $ ,V){for(var Z=0;Z<V.length;Z++)if(-1< $ .indexOf(V[Z]))return!0;return!1}(L,l.BAD_DELIMITERS)||-1<L.indexOf(k)||L.charAt(0)===" "||L.charAt(L.length-1)===" ")?P+L+P:L}}};if(l.RECORD_SEP=String.fromCharCode(30),l.UNIT_SEP=String.fromCharCode(31),l.BYTE_ORDER_MARK=" \u FEFF",l.BAD_DELIMITERS=[" \r ", `
` ,'"',l.BYTE_ORDER_MARK],l.WORKERS_SUPPORTED=!o&&!!r.Worker,l.NODE_STREAM_INPUT=1,l.LocalChunkSize=10485760,l.RemoteChunkSize=5242880,l.DefaultDelimiter=",",l.Parser=h,l.ParserHandle=f,l.NetworkStreamer=u,l.FileStreamer=p,l.StringStreamer=_,l.ReadableStreamStreamer=g,r.jQuery){var c=r.jQuery;c.fn.parse=function(b){var C=b.config||{},I=[];return this.each(function(K){if(!(c(this).prop("tagName").toUpperCase()==="INPUT"&&c(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var P=0;P<this.files.length;P++)I.push({file:this.files[P],inputElem:this,instanceConfig:c.extend({},C)})}),D(),this;function D(){if(I.length!==0){var K,P,ie,z,A=I[0];if(M(b.before)){var q=b.before(A.file,A.inputElem);if(typeof q=="object"){if(q.action==="abort")return K="AbortError",P=A.file,ie=A.inputElem,z=q.reason,void(M(b.error)&&b.error({name:K},P,ie,z));if(q.action==="skip")return void k();typeof q.config=="object"&&(A.instanceConfig=c.extend(A.instanceConfig,q.config))}else if(q==="skip")return void k()}var H=A.instanceConfig.complete;A.instanceConfig.complete=function(me){M(H)&&H(me,A.file,A.inputElem),k()},l.parse(A.file,A.instanceConfig)}else M(b.complete)&&b.complete()}function k(){I.splice(0,1),D()}}}function d(b){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(C){var I=x(C);I.chunkSize=parseInt(I.chunkSize),C.step||C.chunk||(I.chunkSize=null),this._handle=new f(I),(this._handle.streamer=this)._config=I}.call(this,b),this.parseChunk=function(C,I){if(this.isFirstChunk&&M(this._config.beforeFirstChunk)){var D=this._config.beforeFirstChunk(C);D!==void 0&&(C=D)}this.isFirstChunk=!1,this._halted=!1;var k=this._partialLine+C;this._partialLine="";var K=this._handle.parse(k,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var P=K.meta.cursor;this._finished||(this._partialLine=k.substring(P-this._baseIndex),this._baseIndex=P),K&&K.data&&(this._rowCount+=K.data.length);var ie=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(i)r.postMessage({results:K,workerId:l.WORKER_ID,finished:ie});else if(M(this._config.chunk)&&!I){if(this._config.chunk(K,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);K=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(K.data),this._completeResults.errors=this._completeResults.errors.concat(K.errors),this._completeResults.meta=K.meta),this._completed||!ie||!M(this._config.complete)||K&&K.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),ie||K&&K.meta.paused||this._nextChunk(),K}this._halted=!0},this._sendError=function(C){M(this._config.error)?this._config.error(C):i&&this._config.error&&r.postMessage({workerId:l.WORKER_ID,error:C,finished:!1})}}function u(b){var C;(b=b||{}).chunkSize||(b.chunkSize=l.RemoteChunkSize),d.call(this,b),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(I){this._input=I,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(C=new XMLHttpRequest,this._config.withCredentials&&(C.withCredentials=this._config.withCredentials),o||(C.onload=O(this._chunkLoaded,this),C.onerror=O(this._chunkError,this)),C.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var I=this._config.downloadRequestHeaders;for(var D in I)C.setRequestHeader(D,I[D])}if(this._config.chunkSize){var k=this._start+this._config.chunkSize-1;C.setRequestHeader("Range","bytes="+this._start+"-"+k)}try{C.send(this._config.downloadRequestBody)}catch(K){this._chunkError(K.message)}o&&C.status===0&&this._chunkError()}},this._chunkLoaded=function(){C.readyState===4&&(C.status<200||400<=C.status?th
` ),re=1<G.length&&G[0].length<se[0].length;if(se.length===1||re)return `
` ;for(var Y=0,X=0;X<se.length;X++)se[X][0]=== `
2023-06-07 07:39:38 +00:00
` &&Y++;return Y>=se.length/2? ` \ r
2023-06-14 22:26:12 +00:00
` :" \r "}(J,y)),D=!1,b.delimiter)M(b.delimiter)&&(b.delimiter=b.delimiter(J),ee.meta.delimiter=b.delimiter);else{var N=function(U,B,te,se,G){var re,Y,X,ae;G=G||[","," ","|",";",l.RECORD_SEP,l.UNIT_SEP];for(var ue=0;ue<G.length;ue++){var ce=G[ue],Te=0,Q=0,oe=0;X=void 0;for(var pe=new h({comments:se,delimiter:ce,newline:B,preview:10}).parse(U),ye=0;ye<pe.data.length;ye++)if(te&&Ee(pe.data[ye]))oe++;else{var Ie=pe.data[ye].length;Q+=Ie,X!==void 0?0<Ie&&(Te+=Math.abs(Ie-X),X=Ie):X=Ie}0<pe.data.length&&(Q/=pe.data.length-oe),(Y===void 0||Te<=Y)&&(ae===void 0||ae<Q)&&1.99<Q&&(Y=Te,re=ce,ae=Q)}return{successful:!!(b.delimiter=re),bestDelimiter:re}}(J,b.newline,b.skipEmptyLines,b.comments,b.delimitersToGuess);N.successful?b.delimiter=N.bestDelimiter:(D=!0,b.delimiter=l.DefaultDelimiter),ee.meta.delimiter=b.delimiter}var F=x(b);return b.preview&&b.header&&F.preview++,C=J,I=new h(F),ee=I.parse(C,de,le),L(),H?{meta:{paused:!0}}:ee||{meta:{paused:!1}}},this.paused=function(){return H},this.pause=function(){H=!0,I.abort(),C=M(b.chunk)?"":C.substring(I.getCharIndex())},this.resume=function(){z.streamer._halted?(H=!1,z.streamer.parseChunk(C,!0)):setTimeout(z.resume,3)},this.aborted=function(){return me},this.abort=function(){me=!0,I.abort(),ee.meta.aborted=!0,M(b.complete)&&b.complete(ee),C=""}}function E(b){return b.replace(/[.*+?^ ${ } ()|[ \] \\ ]/g," \\ $ &")}function h(b){var C,I=(b=b||{}).delimiter,D=b.newline,k=b.comments,K=b.step,P=b.preview,ie=b.fastMode,z=C=b.quoteChar===void 0||b.quoteChar===null?'"':b.quoteChar;if(b.escapeChar!==void 0&&(z=b.escapeChar),(typeof I!="string"||-1<l.BAD_DELIMITERS.indexOf(I))&&(I=","),k===I)throw new Error("Comment character same as delimiter");k===!0?k="#":(typeof k!="string"||-1<l.BAD_DELIMITERS.indexOf(k))&&(k=!1),D!== `
2023-06-07 07:39:38 +00:00
` &&D!==" \r "&&D!== ` \ r
` &&(D= `
2023-06-14 22:26:12 +00:00
` );var A=0,q=!1;this.parse=function(H,me,_e){if(typeof H!="string")throw new Error("Input must be a string");var ee=H.length,ge=I.length,Ee=D.length,L=k.length, $ =M(K),V=[],Z=[],J=[],de=A=0;if(!H)return Fe();if(b.header&&!me){var le=H.split(D)[0].split(I),y=[],N={},F=!1;for(var U in le){var B=le[U];M(b.transformHeader)&&(B=b.transformHeader(B,U));var te=B,se=N[B]||0;for(0<se&&(F=!0,te=B+"_"+se),N[B]=se+1;y.includes(te);)te=te+"_"+se;y.push(te)}if(F){var G=H.split(D);G[0]=y.join(I),H=G.join(D)}}if(ie||ie!==!1&&H.indexOf(C)===-1){for(var re=H.split(D),Y=0;Y<re.length;Y++){if(J=re[Y],A+=J.length,Y!==re.length-1)A+=D.length;else if(_e)return Fe();if(!k||J.substring(0,L)!==k){if( $ ){if(V=[],oe(J.split(I)),Ne(),q)return Fe()}else oe(J.split(I));if(P&&P<=Y)return V=V.slice(0,P),Fe(!0)}}return Fe()}for(var X=H.indexOf(I,A),ae=H.indexOf(D,A),ue=new RegExp(E(z)+E(C),"g"),ce=H.indexOf(C,A);;)if(H[A]!==C)if(k&&J.length===0&&H.substring(A,A+L)===k){if(ae===-1)return Fe();A=ae+Ee,ae=H.indexOf(D,A),X=H.indexOf(I,A)}else if(X!==-1&&(X<ae||ae===-1))J.push(H.substring(A,X)),A=X+ge,X=H.indexOf(I,A);else{if(ae===-1)break;if(J.push(H.substring(A,ae)),Ie(ae+Ee), $ &&(Ne(),q))return Fe();if(P&&V.length>=P)return Fe(!0)}else for(ce=A,A++;;){if((ce=H.indexOf(C,ce+1))===-1)return _e||Z.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:V.length,index:A}),ye();if(ce===ee-1)return ye(H.substring(A,ce).replace(ue,C));if(C!==z||H[ce+1]!==z){if(C===z||ce===0||H[ce-1]!==z){X!==-1&&X<ce+1&&(X=H.indexOf(I,ce+1)),ae!==-1&&ae<ce+1&&(ae=H.indexOf(D,ce+1));var Te=pe(ae===-1?X:Math.min(X,ae));if(H.substr(ce+1+Te,ge)===I){J.push(H.substring(A,ce).replace(ue,C)),H[A=ce+1+Te+ge]!==C&&(ce=H.indexOf(C,A)),X=H.indexOf(I,A),ae=H.indexOf(D,A);break}var Q=pe(ae);if(H.substring(ce+1+Q,ce+1+Q+Ee)===D){if(J.push(H.substring(A,ce).replace(ue,C)),Ie(ce+1+Q+Ee),X=H.indexOf(I,A),ce=H.indexOf(C,A), $ &&(Ne(),q))return Fe();if(P&&V.length>=P)return Fe(!0);break}Z.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:V.length,index:A}),ce++}}else ce++}return ye();function oe(ze){V.push(ze),de=A}function pe(ze){var We=0;if(ze!==-1){var Je=H.substring(ce+1,ze);Je&&Je.trim()===""&&(We=Je.length)}return We}function ye(ze){return _e||(ze===void 0&&(ze=H.substring(A)),J.push(ze),A=ee,oe(J), $ &&Ne()),Fe()}function Ie(ze){A=ze,oe(J),J=[],ae=H.indexOf(D,A)}function Fe(ze){return{data:V,errors:Z,meta:{delimiter:I,linebreak:D,aborted:q,truncated:!!ze,cursor:de+(me||0)}}}function Ne(){K(Fe()),V=[],Z=[]}},this.abort=function(){q=!0},this.getCharIndex=function(){return A}}function S(b){var C=b.data,I=s[C.workerId],D=!1;if(C.error)I.userError(C.error,C.file);else if(C.results&&C.results.data){var k={abort:function(){D=!0,T(C.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:R,resume:R};if(M(I.userStep)){for(var K=0;K<C.results.data.length&&(I.userStep({data:C.results.data[K],errors:C.results.errors,meta:C.results.meta},k),!D);K++);delete C.results}else M(I.userChunk)&&(I.userChunk(C.results,k,C.file),delete C.results)}C.finished&&!D&&T(C.workerId,C.results)}function T(b,C){var I=s[b];M(I.userComplete)&&I.userComplete(C),I.terminate(),delete s[b]}function R(){throw new Error("Not implemented.")}function x(b){if(typeof b!="object"||b===null)return b;var C=Array.isArray(b)?[]:{};for(var I in b)C[I]=x(b[I]);return C}function O(b,C){return function(){b.apply(C,arguments)}}function M(b){return typeof b=="function"}return i&&(r.onmessage=function(b){var C=b.data;if(l.WORKER_ID===void 0&&C&&(l.WORKER_ID=C.workerId),typeof C.input=="string")r.postMessage({workerId:l.WORKER_ID,results:l.parse(C.input,C.config),finished:!0});else if(r.File&&C.input instanceof File||C.input instanceof Object){var I=l.parse(C.input,C.config);I&&r.postMessage({workerId:l.WORKER_ID,results:I,finished:!0})}}),(u.prototype=Object.create(d.prototype)).constructor=u,(p.prototype=Object.create(d.prototype)).constructor=p,(_.prototype=Object.create(_.prototype)).constructor=_,(g.prototype=Object.create(d.prototype)).constructor=g,l})})(qS);var MN=qS.exports
` ).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||e[n]&&qA[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},fp=Symbol("internals");function Pr(t){return t&&String(t).trim().toLowerCase()}function Wo(t){return t===!1||t==null?t:j.isArray(t)?t.map(Wo):String(t)}function HA(t){const e=Object.create(null),n=/([^ \s ,;=]+) \s *(?:= \s *([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const VA=t=>/^[-_a-zA-Z0-9^ ` | ~ , ! # $ % & ' * + . ] + $ / . test ( t . trim ( ) ) ; function Ss ( t , e , n , r , o ) { if ( j . isFunction ( r ) ) return r . call ( this , e , n ) ; if ( o && ( e = n ) , ! ! j . isString ( e ) ) { if ( j . isString ( r ) ) return e . indexOf ( r ) !== - 1 ; if ( j . isRegExp ( r ) ) return r . test ( e ) } } function zA ( t ) { return t . trim ( ) . toLowerCase ( ) . replace ( /([a-z\d])(\w*)/g , ( e , n , r ) => n . toUpperCase ( ) + r ) } function $A ( t , e ) { const n = j . toCamelCase ( " " + e ) ; [ "get" , "set" , "has" ] . forEach ( r => { Object . defineProperty ( t , r + n , { value : function ( o , i , s ) { return this [ r ] . call ( this , e , o , i , s ) } , configurable : ! 0 } ) } ) } class Vi { constructor ( e ) { e && this . set ( e ) } set ( e , n , r ) { const o = this ; function i ( a , l , c ) { const d = Pr ( l ) ; if ( ! d ) throw new Error ( "header name must be a non-empty string" ) ; const u = j . findKey ( o , d ) ; ( ! u || o [ u ] === void 0 || c === ! 0 || c === void 0 && o [ u ] !== ! 1 ) && ( o [ u || l ] = Wo ( a ) ) } const s = ( a , l ) => j . forEach ( a , ( c , d ) => i ( c , d , l ) ) ; return j . isPlainObject ( e ) || e instanceof this . constructor ? s ( e , n ) : j . isString ( e ) && ( e = e . trim ( ) ) && ! VA ( e ) ? s ( YA ( e ) , n ) : e != null && i ( n , e , r ) , this } get ( e , n ) { if ( e = Pr ( e ) , e ) { const r = j . findKey ( this , e ) ; if ( r ) { const o = this [ r ] ; if ( ! n ) return o ; if ( n === ! 0 ) return HA ( o ) ; if ( j . isFunction ( n ) ) return n . call ( this , o , r ) ; if ( j . isRegExp ( n ) ) return n . exec ( o ) ; throw new TypeError ( "parser must be boolean|regexp|function" ) } } } has ( e , n ) { if ( e = Pr ( e ) , e ) { const r = j . findKey ( this , e ) ; return ! ! ( r && this [ r ] !== void 0 && ( ! n || Ss ( this , this [ r ] , r , n ) ) ) } return ! 1 } delete ( e , n ) { const r = this ; let o = ! 1 ; function i ( s ) { if ( s = Pr ( s ) , s ) { const a = j . findKey ( r , s ) ; a && ( ! n || Ss ( r , r [ a ] , a , n ) ) && ( delete r [ a ] , o = ! 0 ) } } return j . isArray ( e ) ? e . forEach ( i ) : i ( e ) , o } clear ( e ) { const n = Object . keys ( this ) ; let r = n . length , o = ! 1 ; for ( ; r -- ; ) { const i = n [ r ] ; ( ! e || Ss ( this , this [ i ] , i , e , ! 0 ) ) && ( delete this [ i ] , o = ! 0 ) } return o } normalize ( e ) { const n = this , r = { } ; return j . forEach ( this , ( o , i ) => { const s = j . findKey ( r , i ) ; if ( s ) { n [ s ] = Wo ( o ) , delete n [ i ] ; return } const a = e ? zA ( i ) : String ( i ) . trim ( ) ; a !== i && delete n [ i ] , n [ a ] = Wo ( o ) , r [ a ] = ! 0 } ) , this } concat ( ... e ) { return this . constructor . concat ( this , ... e ) } toJSON ( e ) { const n = Object . create ( null ) ; return j . forEach ( this , ( r , o ) => { r != null && r !== ! 1 && ( n [ o ] = e && j . isArray ( r ) ? r . join ( ", " ) : r ) } ) , n } [ Symbol . iterator ] ( ) { return Object . entries ( this . toJSON ( ) ) [ Symbol . iterator ] ( ) } toString ( ) { return Object . entries ( this . toJSON ( ) ) . map ( ( [ e , n ] ) => e + ": " + n ) . join ( `
` )}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[fp]=this[fp]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Pr(s);r[a]||( $ A(o,s),r[a]=!0)}return j.isArray(e)?e.forEach(i):i(e),this}}Vi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);j.freezeMethods(Vi.prototype);j.freezeMethods(Vi);const Zt=Vi;function bs(t,e){const n=this||Au,r=e||n,o=Zt.from(r.headers);let i=r.data;return j.forEach(t,function(a){i=a.call(n,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function ob(t){return!!(t&&t.__CANCEL__)}function ho(t,e,n){Me.call(this,t??"canceled",Me.ERR_CANCELED,e,n),this.name="CanceledError"}j.inherits(ho,Me,{__CANCEL__:!0});function WA(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new Me("Request failed with status code "+n.status,[Me.ERR_BAD_REQUEST,Me.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const KA=Ut.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,s,a){const l=[];l.push(n+"="+encodeURIComponent(r)),j.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),j.isString(i)&&l.push("path="+i),j.isString(s)&&l.push("domain="+s),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|; \\ s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function QA(t){return/^([a-z][a-z \d + \- .]*:)? \/ \/ /i.test(t)}function jA(t,e){return e?t.replace(/ \/ + $ /,"")+"/"+e.replace(/^ \/ +/,""):t}function ib(t,e){return t&&!QA(e)?jA(t,e):e}const XA=Ut.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/: $ /,""):"",host:n.host,search:n.search?n.search.replace(/^ \? /,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=j.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function ZA(t){const e=/^([-+ \w ]{1,25})(:? \/ \/ |:)/.exec(t);return e&&e[1]||""}function JA(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,i=0,s;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),d=r[i];s||(s=c),n[o]=l,r[o]=c;let u=i,p=0;for(;u!==o;)p+=n[u++],u=u%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),c-s<e)return;const _=d&&c-d;return _?Math.round(p*1e3/_):void 0}}function hp(t,e){let n=0;const r=JA(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,l=r(a),c=i<=s;n=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&c?(s-i)/l:void 0,event:o};d[e?"download":"upload"]=!0,t(d)}}const eI=typeof XMLHttpRequest<"u",tI=eI&&function(t){return new Promise(function(n,r){let o=t.data;const i=Zt.from(t.headers).normalize(),s=t.responseType;let a;function l(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}j.isFormData(o)&&(Ut.isStandardBrowserEnv||Ut.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let c=new XMLHttpRequest;if(t.auth){const _=t.auth.username||"",g=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(_+":"+g))}const d=ib(t.baseURL,t.url);c.open(t.method.toUpperCase(),tb(d,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function u(){if(!c)return;const _=Zt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),f={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:_,config:t,request:c};WA(function(h){n(h),l()},function(h){r(h),l()
` +t.name,4,!0):this.onPersonalityMounted(t),Se(()=>{Ce.replace()}),this.isLoading=!1}},onSelected(t){this.isLoading&&this. $ refs.toast.showToast("Loading... please wait",4,!1),t&&(t.isInstalled?this.configFile.model_name!=t.title&&(this.update_model(t.title),this.configFile.model_name=t.title,this. $ refs.toast.showToast( ` Selected model :
2023-06-07 07:39:38 +00:00
` +t.title,4,!0),this.settingsChanged=!0,this.isModelSelected=!0):this. $ refs.toast.showToast( ` Model :
` +t.title+ `
2023-06-14 22:26:12 +00:00
is not installed ` ,4,!1),Se(()=>{Ce.replace()}))},onCopy(t){let e;t.model.isCustomModel?e= ` Model name : $ { t . title }
2023-06-08 21:06:49 +00:00
File size : $ { t . fileSize }
Manually downloaded model ` :e= ` Model name : $ { t . title }
File size : $ { t . fileSize }
Download : $ { t . path }
License : $ { t . license }
Owner : $ { t . owner }
Website : $ { t . owner _link }
2023-06-12 18:56:48 +00:00
Description : $ { t . description } ` ,this. $ refs.toast.showToast("Copied model info to clipboard!",4,!0),navigator.clipboard.writeText(e.trim())},onInstall(t){if(t.linkNotValid){t.installing=!1,this. $ refs.toast.showToast("Link is not valid, file does not exist",4,!1);return}let e=t.path;this.showProgress=!0,this.progress=0,console.log("installing...");const n=r=>{if(console.log("received something"),r.status==="progress"){if(console.log( ` Progress = $ { r . progress } ` ),t.progress=r.progress,t.installing=!0,t.progress==100){const o=this.models.findIndex(i=>i.path===e);this.models[o].isInstalled=!0,this.showProgress=!1,t.installing=!1}}else if(r.status==="succeeded"){console.log("Received succeeded"),Ke.off("install_progress",n),console.log("Installed successfully");const o=this.models.findIndex(i=>i.path===e);this.models[o].isInstalled=!0,this.showProgress=!1,t.installing=!1,this. $ refs.toast.showToast( ` Model :
2023-06-07 07:39:38 +00:00
` +t.title+ `
2023-06-12 18:56:48 +00:00
installed ! ` ,4,!0),this.api_get_req("disk_usage").then(i=>{this.diskUsage=i})}else r.status==="failed"&&(Ke.off("install_progress",n),console.log("Install failed"),t.installing=!1,v,this.showProgress=!1,console.error("Installation failed:",r.error),this. $ refs.toast.showToast( ` Model :
2023-06-07 07:39:38 +00:00
` +t.title+ `
2023-06-12 18:56:48 +00:00
failed to install ! ` ,4,!1),this.api_get_req("disk_usage").then(o=>{this.diskUsage=o}))};Ke.on("install_progress",n),Ke.emit("install_model",{path:e}),console.log("Started installation, please wait")},onUninstall(t){console.log("uninstalling model...");const e=n=>{if(n.status==="progress")this.progress=n.progress;else if(n.status==="succeeded"){t.uninstalling=!1,Ke.off("install_progress",e),this.showProgress=!1;const r=this.models.findIndex(o=>o.path===t.path);this.models[r].isInstalled=!1,t.model.isCustomModel&&(this.models=this.models.filter(o=>o.title!==t.title)),this. $ refs.toast.showToast( ` Model :
2023-06-07 07:39:38 +00:00
` +t.title+ `
2023-06-12 18:56:48 +00:00
was uninstalled ! ` ,4,!0),this.api_get_req("disk_usage").then(o=>{this.diskUsage=o})}else n.status==="failed"&&(t.uninstalling=!1,this.showProgress=!1,Ke.off("install_progress",e),console.error("Uninstallation failed:",message.error),this. $ refs.toast.showToast( ` Model :
2023-06-07 07:39:38 +00:00
` +t.title+ `
2023-06-14 22:26:12 +00:00
failed to uninstall ! ` ,4,!1),this.api_get_req("disk_usage").then(r=>{this.diskUsage=r}))};Ke.on("install_progress",e),Ke.emit("uninstall_model",{path:t.path})},onSelectedBinding(t){this.configFile.binding_name!=t.binding.folder&&this.update_binding(t.binding.folder)},onMessageBoxOk(){console.log("OK button clicked")},refresh(){this.api_get_req("list_models").then(t=>{this.modelsArr=t,this.modelsArr.sort()}),this.api_get_req("list_personalities_categories").then(t=>{this.persCatgArr=t,this.persCatgArr.sort()}),this.api_get_req("get_config").then(t=>{this.getPersonalitiesArr().then(()=>{this.getMountedPersonalities()}),console.log("Received config"),this.configFile=t,this.models.forEach(e=>{e.title==t.model_name?e.selected=!0:e.selected=!1})}).then(()=>{this.api_get_req("get_current_personality_path_infos").then(t=>{this.configFile.personality_language=t.personality_language,this.configFile.personality_category=t.personality_category,this.configFile.personality_folder=t.personality_name,console.log("received infos")})}),this.api_get_req("list_personalities").then(t=>{this.persArr=t,this.persArr.sort(),console.log( ` Listed personalities :
$ { t } ` )}),this.api_get_req("disk_usage").then(t=>{this.diskUsage=t}),this.api_get_req("ram_usage").then(t=>{this.ramUsage=t}),this.fetchModels()},toggleAccordion(){this.showAccordion=!this.showAccordion},update_setting(t,e,n){const r={setting_name:t,setting_value:e};Ge.post("/update_setting",r).then(o=>{if(o)return console.log("update_setting",o),n!==void 0&&n(o),o.data}).catch(o=>({status:!1}))},update_binding(t){this.isLoading=!0,this.update_setting("binding_name",t,e=>{this. $ refs.toast.showToast("Binding changed.",4,!0),this.settingsChanged=!0,this.isLoading=!1,this.update_model(null),this.configFile.model_name=null,this.refresh(),Se(()=>{Ce.replace()})})},update_model(t){t||(this.isModelSelected=!1),this.isLoading=!0,this.update_setting("model_name",t,e=>{this.isLoading=!1})},applyConfiguration(){this.isLoading=!0,Ge.post("/apply_settings").then(t=>{this.isLoading=!1,t.data.status==="succeeded"?(this. $ refs.toast.showToast("Configuration changed successfully.",4,!0),this.settingsChanged=!1,this.save_configuration()):this. $ refs.toast.showToast("Configuration change failed.",4,!1),Se(()=>{Ce.replace()})})},save_configuration(){this.showConfirmation=!1,Ge.post("/save_settings",{}).then(t=>{if(t)return t.status||this. $ refs.messageBox.showMessage("Error: Couldn't save settings!"),t.data}).catch(t=>(console.log(t.message,"save_configuration"),this. $ refs.messageBox.showMessage("Couldn't save settings!"),{status:!1}))},reset_configuration(){this. $ refs.yesNoDialog.askQuestion( ` Are you sure ?
This will delete all your configurations and get back to default configuration . ` ).then(t=>{t&&Ge.post("/reset_settings",{}).then(e=>{if(e)return e.status?this. $ refs.messageBox.showMessage("Settings have been reset correctly"):this. $ refs.messageBox.showMessage("Couldn't reset settings!"),e.data}).catch(e=>(console.log(e.message,"reset_configuration"),this. $ refs.messageBox.showMessage("Couldn't reset settings!"),{status:!1}))})},async api_get_req(t){try{const e=await Ge.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - settings");return}},closeToast(){this.showToast=!1},async getPersonalitiesArr(){this.isLoading=!0,this.personalities=[];const t=await this.api_get_req("get_all_personalities"),e=await this.api_get_req("get_config"),n=Object.keys(t);for(let r=0;r<n.length;r++){const o=n[r],i=t[o],s=Object.keys(i);for(let a=0;a<s.length;a++){const l=s[a],d=i[l].map(u=>{const p=e.personalities.includes(o+"/"+l+"/"+u.folder);let _={};return _=u,_.category=l,_.language=o,_.full_path=o+"/"+l+"/"+u.folder,_.isMounted=p,_});this.personalities.length==0?this.personalities=d:this.personalities=this.personalities.concat(d)}}this.personalities.sort((r,o)=>r.name.localeCompare(o.name)),this.personalitiesFiltered=this.personalities.filter(r=>r.category===this.configFile.personality_category&&r.language===this.configFile.personality_language),this.personalitiesFiltered.sort(),this.isLoading=!1},computedFileSize(t){return li(t)},async mount_personality(t){if(!t)return{status:!1,error:"no personality - mount_personality"};try{const e={language:t.language,category:t.category,folder:t.folder},n=await Ge.post("/mount_personality",e);if(n)return n.data}catch(e){console.log(e.message,"mount_personality - settings");return}},async unmount_personality(t){if(!t)return{status:!1,error:"no personality - unmount_personality"};const e={language:t.language,category:t.category,folder:t.folder};try{const n=await Ge.post("/unmount_personality",e);if(n)return n.data}catch(n){console.log(n.message,"unmount_personality - settings");return}},async select_personality(t){if(!t)return{status:!1,error:"no personality - select_personality"};console.log("select pers",t);const n={id:this.configFile.personalities.findIndex(r=>r===t.full_path)};try{const r=await Ge.post("/select_personality",n);if(r){this.configFile=await this.api_get_req("get_config");let o=await this.api_get_req("get_current_personality_path_infos");return this.configFile.personality_language=o.personality_language,this.configFile.personality_category=o.personality_category,this.configFile.personality_folder=o.personality_name,r.data}}catch(r){console.log(r.message,"select_personality - settings");return}},async mountPersonality(t){if(this.isLoading=!0,console.log("mount pers",t),!t)return;if(this.configFile.personalities.includes(t.personality.full_path)){this. $ refs.toast.showToast("Personality already mounted",4,!1);return}const e=await this.mount_personality(t.personality);console.log("mount_personality res",e),e.status?(this.configFile.personalities=e.personalities,this. $ refs.toast.showToast("Personality mounted",4,!0),t.isMounted=!0,(await this.select_personality(t.personality)).status&&this. $ refs.toast.showToast( ` Selected personality :
2023-06-13 16:26:32 +00:00
` +t.personality.name,4,!0),this.getMountedPersonalities()):(t.isMounted=!1,this. $ refs.toast.showToast( ` Could not mount personality
2023-06-14 22:26:12 +00:00
Error : ` +e.error,4,!1)),this.isLoading=!1},async unmountPersonality(t){if(this.isLoading=!0,!t)return;const e=await this.unmount_personality(t.personality||t);if(e.status){this.configFile.personalities=e.personalities,this. $ refs.toast.showToast("Personality unmounted",4,!0);const n=this.personalities.findIndex(a=>a.full_path==t.full_path),r=this.personalitiesFiltered.findIndex(a=>a.full_path==t.full_path),o=this. $ refs.personalitiesZoo.findIndex(a=>a.full_path==t.full_path);console.log("ppp",this.personalities[n]),this.personalities[n].isMounted=!1,r>-1&&(this.personalitiesFiltered[r].isMounted=!1),o>-1&&(this. $ refs.personalitiesZoo[o].isMounted=!1),this.getMountedPersonalities();const i=this.mountedPersArr[this.mountedPersArr.length-1];console.log(i,this.mountedPersArr.length),(await this.select_personality(i.personality)).status&&this. $ refs.toast.showToast( ` Selected personality :
` +i.name,4,!0)}else this. $ refs.toast.showToast( ` Could not unmount personality
Error : ` +e.error,4,!1);this.isLoading=!1},getMountedPersonalities(){let t=[];if(this.configFile.personalities.length>0)for(let e=0;e<this.configFile.personalities.length;e++){const n=this.configFile.personalities[e],r=this.personalities.findIndex(o=>o.full_path==n);if(r){const o=this.personalities[r];o&&t.push(o)}}this.mountedPersArr=[],this.mountedPersArr=t,console.log("getMountedPersonalities",t),console.log("fig",this.configFile.personality_category),Se(()=>{console.log("accc",this. $ refs.mountedPersonalities),this. $ store.state.mountedPersonalities=this. $ refs.mountedPersonalities})},onPersonalityMounted(t){this.isLoading=!0,console.log("on sel ",t),this.configFile.personalities.includes(t.full_path)?this.configFile.personalities.length==1?this. $ refs.toast.showToast("Can't unmount last personality",4,!1):this.unmountPersonality(t):this.mountPersonality(t),this.isLoading=!0},personalityImgPlacehodler(t){t.target.src= $ n}},async mounted(){this.isLoading=!0,Se(()=>{Ce.replace()}),this.configFile=await this.api_get_req("get_config");let t=await this.api_get_req("get_current_personality_path_infos");this.configFile.personality_language=t.personality_language,this.configFile.personality_category=t.personality_category,this.configFile.personality_folder=t.personality_name,this.configFile.model_name&&(this.isModelSelected=!0),this.fetchModels(),this.bindingsArr=await this.api_get_req("list_bindings"),this.modelsArr=await this.api_get_req("list_models"),this.persLangArr=await this.api_get_req("list_personalities_languages"),this.persCatgArr=await this.api_get_req("list_personalities_categories"),this.persArr=await this.api_get_req("list_personalities"),this.langArr=await this.api_get_req("list_languages"),this.bindingsArr.sort((e,n)=>e.name.localeCompare(n.name)),this.modelsArr.sort(),this.persLangArr.sort(),this.persCatgArr.sort(),this.persArr.sort(),this.langArr.sort(),await this.getPersonalitiesArr(),this.bindings=await this.api_get_req("list_bindings"),this.bindings.sort((e,n)=>e.name.localeCompare(n.name)),this.isLoading=!1,this.diskUsage=await this.api_get_req("disk_usage"),this.ramUsage=await this.api_get_req("ram_usage"),this.getMountedPersonalities(),this.isMounted=!0},activated(){},computed:{disk_available_space(){return this.computedFileSize(this.diskUsage.available_space)},disk_binding_models_usage(){return this.computedFileSize(this.diskUsage.binding_models_usage)},disk_percent_usage(){return this.diskUsage.percent_usage},disk_total_space(){return this.computedFileSize(this.diskUsage.total_space)},ram_available_space(){return this.computedFileSize(this.ramUsage.available_space)},ram_usage(){return this.computedFileSize(this.ramUsage.ram_usage)},ram_percent_usage(){return this.ramUsage.percent_usage},ram_total_space(){return this.computedFileSize(this.ramUsage.total_space)},imgBinding(){if(this.isMounted)try{return this. $ refs.bindingZoo[this. $ refs.bindingZoo.findIndex(t=>t.binding.folder==this.configFile.binding_name)]. $ refs.imgElement.src}catch{return defaultImgPlaceholder}},imgModel(){if(this.isMounted)try{return this. $ refs.modelZoo[this. $ refs.modelZoo.findIndex(t=>t.title==this.configFile.model_name)]. $ refs.imgElement.src}catch{return Fd}}},watch:{bec_collapsed(){Se(()=>{Ce.replace()})},pc_collapsed(){Se(()=>{Ce.replace()})},mc_collapsed(){Se(()=>{Ce.replace()})},sc_collapsed(){Se(()=>{Ce.replace()})},showConfirmation(){Se(()=>{Ce.replace()})},mzl_collapsed(){Se(()=>{Ce.replace()})},pzl_collapsed(){Se(()=>{Ce.replace()})},bzl_collapsed(){Se(()=>{Ce.replace()})},all_collapsed(t){this.collapseAll(t),Se(()=>{Ce.replace()})},settingsChanged(t){Se(()=>{Ce.replace()})},isLoading(){Se(()=>{Ce.replace()})}}},Re=t=>(po("data-v-37d03052"),t=t(),mo(),t),zD={class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-0"}, $ D={class:"sticky top-0 z-10 flex flex-row mb-2 p-3 gap-3 w-full rounded-b-lg bg-bg-light-tone dark:bg-bg-dark-tone shadow-lg"},WD={key:0,class:"flex gap-3 flex-1 items-center duration-75"},KD=Re(()=>m("i",{"data-feather":"x"},null,-1)),QD=[KD],jD=Re(()=>m("i",{"data-feather":"check"},null
` ,nK="∄",rK="∄",oK="𝔑 ",iK="𝔫 ",sK="≧̸",aK="≱",lK="≱",cK="≧̸",dK="⩾̸",uK="⩾̸",_K="⋙̸",pK="≵",mK="≫⃒",gK="≯",fK="≯",hK="≫̸",EK="↮",SK="⇎",bK="⫲",TK="∋",yK="⋼",vK="⋺",CK="∋",RK="Њ",OK="њ",NK="↚",AK="⇍",IK="‥",xK="≦̸",wK="≰",DK="↚",MK="⇍",LK="↮",kK="⇎",PK="≰",FK="≦̸",UK="⩽̸",BK="⩽̸",GK="≮",qK="⋘̸",YK="≴",HK="≪⃒",VK="≮",zK="⋪", $ K="⋬",WK="≪̸",KK="∤",QK=" ",jK=" ",XK="𝕟 ",ZK="ℕ ",JK="⫬",e7="¬",t7="≢",n7="≭",r7="∦",o7="∉",i7="≠",s7="≂̸",a7="∄",l7="≯",c7="≱",d7="≧̸",u7="≫̸",_7="≹",p7="⩾̸",m7="≵",g7="≎̸",f7="≏̸",h7="∉",E7="⋵̸",S7="⋹̸",b7="∉",T7="⋷",y7="⋶",v7="⧏̸",C7="⋪",R7="⋬",O7="≮",N7="≰",A7="≸",I7="≪̸",x7="⩽̸",w7="≴",D7="⪢̸",M7="⪡̸",L7="∌",k7="∌",P7="⋾",F7="⋽",U7="⊀",B7="⪯̸",G7="⋠",q7="∌",Y7="⧐̸",H7="⋫",V7="⋭",z7="⊏̸", $ 7="⋢",W7="⊐̸",K7="⋣",Q7="⊂⃒",j7="⊈",X7="⊁",Z7="⪰̸",J7="⋡",eQ="≿̸",tQ="⊃⃒",nQ="⊉",rQ="≁",oQ="≄",iQ="≇",sQ="≉",aQ="∤",lQ="∦",cQ="∦",dQ="⫽⃥",uQ="∂̸",_Q="⨔",pQ="⊀",mQ="⋠",gQ="⊀",fQ="⪯̸",hQ="⪯̸",EQ="⤳̸",SQ="↛",bQ="⇏",TQ="↝̸",yQ="↛",vQ="⇏",CQ="⋫",RQ="⋭",OQ="⊁",NQ="⋡",AQ="⪰̸",IQ="𝒩 ",xQ="𝓃 ",wQ="∤",DQ="∦",MQ="≁",LQ="≄",kQ="≄",PQ="∤",FQ="∦",UQ="⋢",BQ="⋣",GQ="⊄",qQ="⫅̸",YQ="⊈",HQ="⊂⃒",VQ="⊈",zQ="⫅̸", $ Q="⊁",WQ="⪰̸",KQ="⊅",QQ="⫆̸",jQ="⊉",XQ="⊃⃒",ZQ="⊉",JQ="⫆̸",ej="≹",tj="Ñ",nj="ñ",rj="≸",oj="⋪",ij="⋬",sj="⋫",aj="⋭",lj="Ν ",cj="ν ",dj="#",uj="№",_j=" ",pj="≍⃒",mj="⊬",gj="⊭",fj="⊮",hj="⊯",Ej="≥⃒",Sj=">⃒",bj="⤄",Tj="⧞",yj="⤂",vj="≤⃒",Cj="<⃒",Rj="⊴⃒",Oj="⤃",Nj="⊵⃒",Aj="∼⃒",Ij="⤣",xj="↖",wj="⇖",Dj="↖",Mj="⤧",Lj="Ó",kj="ó",Pj="⊛",Fj="Ô",Uj="ô",Bj="⊚",Gj="О ",qj="о ",Yj="⊝",Hj="Ő",Vj="ő",zj="⨸", $ j="⊙",Wj="⦼",Kj="Œ",Qj="œ",jj="⦿",Xj="𝔒 ",Zj="𝔬 ",Jj="˛ ",eX="Ò",tX="ò",nX="⧁",rX="⦵",oX="Ω",iX="∮",sX="↺",aX="⦾",lX="⦻",cX="‾",dX="⧀",uX="Ō",_X="ō",pX="Ω",mX="ω",gX="Ο ",fX="ο ",hX="⦶",EX="⊖",SX="𝕆 ",bX="𝕠 ",TX="⦷",yX="“",vX="‘ ",CX="⦹",RX="⊕",OX="↻",NX="⩔",AX="∨ ",IX="⩝",xX="ℴ ",wX="ℴ ",DX="ª",MX="º",LX="⊶",kX="⩖",PX="⩗",FX="⩛",UX="Ⓢ",BX="𝒪 ",GX="ℴ ",qX="Ø",YX="ø",HX="⊘",VX="Õ",zX="õ", $ X="⨶",WX="⨷",KX="⊗",QX="Ö",jX="ö",XX="⌽",ZX="‾",JX="⏞",eZ="⎴",tZ="⏜",nZ="¶",rZ="∥",oZ="∥",iZ="⫳",sZ="⫽",aZ="∂",lZ="∂",cZ="П",dZ="п",uZ="%",_Z=".",pZ="‰",mZ="⊥",gZ="‱",fZ="𝔓 ",hZ="𝔭 ",EZ="Φ",SZ="φ",bZ="ϕ",TZ="ℳ ",yZ="☎",vZ="Π",CZ="π",RZ="⋔",OZ="ϖ",NZ="ℏ",AZ="ℎ ",IZ="ℏ",xZ="⨣",wZ="⊞",DZ="⨢",MZ="+",LZ="∔",kZ="⨥",PZ="⩲",FZ="±",UZ="±",BZ="⨦",GZ="⨧",qZ="±",YZ="ℌ ",HZ="⨕",VZ="𝕡 ",zZ="ℙ ", $ Z="£",WZ="⪷",KZ="⪻",QZ="≺",jZ="≼",XZ="⪷",ZZ="≺",JZ="≼",eJ="≺",tJ="⪯",nJ="≼",rJ="≾",oJ="⪯",iJ="⪹",sJ="⪵",aJ="⋨",lJ="⪯",cJ="⪳",dJ="≾",uJ="′ ",_J="″",pJ="ℙ ",mJ="⪹",gJ="⪵",fJ="⋨",hJ="∏",EJ="∏",SJ="⌮",bJ="⌒",TJ="⌓",yJ="∝",vJ="∝",CJ="∷",RJ="∝",OJ="≾",NJ="⊰",AJ="𝒫 ",IJ="𝓅 ",xJ="Ψ",wJ="ψ",DJ=" ",MJ="𝔔 ",LJ="𝔮 ",kJ="⨌",PJ="𝕢 ",FJ="ℚ ",UJ="⁗",BJ="𝒬 ",GJ="𝓆 ",qJ="ℍ ",YJ="⨖",HJ="?",VJ="≟",zJ='"', $ J='"',WJ="⇛",KJ="∽̱",QJ="Ŕ",jJ="ŕ",XJ="√",ZJ="⦳",JJ="⟩",eee="⟫",tee="⦒",nee="⦥",ree="⟩",oee="»",iee="⥵",see="⇥",aee="⤠",lee="⤳",cee="→",dee="↠",uee="⇒",_ee="⤞",pee="↪",mee="↬",gee="⥅",fee="⥴",hee="⤖",Eee="↣",See="↝",bee="⤚",Tee="⤜",yee="∶ ",vee="ℚ ",Cee="⤍",Ree="⤏",Oee="⤐",Nee="❳ ",Aee="}",Iee="]",xee="⦌",wee="⦎",Dee="⦐",Mee="Ř",Lee="ř",kee="Ŗ",Pee="ŗ",Fee="⌉",Uee="}",Bee="Р ",Gee="р ",qee="⤷",Yee="⥩",Hee="”",Vee="”",zee="↳", $ ee="ℜ ",Wee="ℛ ",Kee="ℜ ",Qee="ℝ ",jee="ℜ ",Xee="▭",Zee="®",Jee="®",ete="∋",tte="⇋",nte="⥯",rte="⥽",ote="⌋",ite="𝔯 ",ste="ℜ ",ate="⥤",lte="⇁",cte="⇀",dte
` ," "],t_e=["{","}","|"," \\ ","^"," ` "].concat(e_e),n_e=[" '"].concat(t_e),wp=["%","/","?",";","#"].concat(n_e),Dp=["/","?","#"],r_e=255,Mp=/^[+a-z0-9A-Z_-]{0,63}$/,o_e=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Lp={javascript:!0,"javascript:":!0},kp={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function i_e(t,e){if(t&&t instanceof di)return t;var n=new di;return n.parse(t,e),n}di.prototype.parse=function(t,e){var n,r,o,i,s,a=t;if(a=a.trim(),!e&&t.split("#").length===1){var l=Jue.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var c=Xue.exec(a);if(c&&(c=c[0],o=c.toLowerCase(),this.protocol=c,a=a.substr(c.length)),(e||c||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s=a.substr(0,2)==="//",s&&!(c&&Lp[c])&&(a=a.substr(2),this.slashes=!0)),!Lp[c]&&(s||c&&!kp[c])){var d=-1;for(n=0;n<Dp.length;n++)i=a.indexOf(Dp[n]),i!==-1&&(d===-1||i<d)&&(d=i);var u,p;for(d===-1?p=a.lastIndexOf("@"):p=a.lastIndexOf("@",d),p!==-1&&(u=a.slice(0,p),a=a.slice(p+1),this.auth=u),d=-1,n=0;n<wp.length;n++)i=a.indexOf(wp[n]),i!==-1&&(d===-1||i<d)&&(d=i);d===-1&&(d=a.length),a[d-1]===":"&&d--;var _=a.slice(0,d);a=a.slice(d),this.parseHost(_),this.hostname=this.hostname||"";var g=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!g){var f=this.hostname.split(/\./);for(n=0,r=f.length;n<r;n++){var E=f[n];if(E&&!E.match(Mp)){for(var h="",S=0,T=E.length;S<T;S++)E.charCodeAt(S)>127?h+="x":h+=E[S];if(!h.match(Mp)){var R=f.slice(0,n),x=f.slice(n+1),O=E.match(o_e);O&&(R.push(O[1]),x.unshift(O[2])),x.length&&(a=x.join(".")+a),this.hostname=R.join(".");break}}}}this.hostname.length>r_e&&(this.hostname=""),g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var M=a.indexOf("#");M!==-1&&(this.hash=a.substr(M),a=a.slice(0,M));var b=a.indexOf("?");return b!==-1&&(this.search=a.substr(b),a=a.slice(0,b)),a&&(this.pathname=a),kp[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this};di.prototype.parseHost=function(t){var e=Zue.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var s_e=i_e;wr.encode=Wue;wr.decode=Que;wr.format=jue;wr.parse=s_e;var xn={},ys,Pp;function Nb(){return Pp||(Pp=1,ys=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),ys}var vs,Fp;function Ab(){return Fp||(Fp=1,vs=/[\0-\x1F\x7F-\x9F]/),vs}var Cs,Up;function a_e(){return Up||(Up=1,Cs=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Cs}var Rs,Bp;function Ib(){return Bp||(Bp=1,Rs=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Rs}var Gp;function l_e(){return Gp||(Gp=1,xn.Any=Nb(),xn.Cc=Ab(),xn.Cf=a_e(),xn.P=Lu,xn.Z=Ib()),xn}(function(t){function e(P){return Object.prototype.toString.call(P)}function n(P){return e(P)==="[object String]"}var r=Object.prototype.hasOwnProperty;function o(P,ie){return r.call(P,ie)}function i(P){var ie=Array.prototype.slice.call(arguments,1);return ie.forEach(function(z){if(z){if(typeof z!="object")throw new TypeError(z+"must be object");Object.keys(z).forEach(function(A){P[A]=z[A]})}}),P}function s(P,ie,z){return[].concat(P.slice(0,ie),z,P.slice(ie+1))}function a(P){return!(P>=55296&&P<=57343||P>=64976&&P<=65007||(P&65535)===65535||(P&65535)===65534||P>=0&&P<=8||P===11||P>=14&&P<=31||P>=127&&P<=159||P>1114111)}function l(P){if(P>65535){P-=65536;var ie=55296+(P>>10),z=56320+(P&1023);return String.fromCharCode(ie,z)}return String.fromCharCode(P)}var c=/\\([!"#$%&' ( ) * + , \ - . \ / : ; <= > ? @ [ \ \ \ ] ^ _ ` {|}~])/g,d=/&([a-z#][a-z0-9]{1,31});/gi,u=new RegExp(c.source+"|"+d.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,_=Ob;function g(P,ie){var z=0;return o(_,ie)?_[ie]:ie.charCodeAt(0)===35&&p.test(ie)&&(z=ie[1].toLowerCase()==="x"?parseInt(ie.slice(2),16):parseInt(ie.slice(1),10),a(z))?l(z):P}function f(P){return P.indexOf(" \\ ")<0?P:P.replace(c," $ 1")}function E(P){return P.indexOf(" \\ "
` }; $ t.fence=function(t,e,n,r,o){var i=t[e],s=i.info?m_e(i.info).trim():"",a="",l="",c,d,u,p,_;return s&&(u=s.split(/( \s +)/g),a=u[0],l=u.slice(2).join("")),n.highlight?c=n.highlight(i.content,a,l)||Wn(i.content):c=Wn(i.content),c.indexOf("<pre")===0?c+ `
2023-06-12 18:56:48 +00:00
` :s?(d=i.attrIndex("class"),p=i.attrs?i.attrs.slice():[],d<0?p.push(["class",n.langPrefix+a]):(p[d]=p[d].slice(),p[d][1]+=" "+n.langPrefix+a),_={attrs:p},"<pre><code"+o.renderAttrs(_)+">"+c+ ` < / c o d e > < / p r e >
2023-06-09 23:37:50 +00:00
` ):"<pre><code"+o.renderAttrs(i)+">"+c+ ` < / c o d e > < / p r e >
2023-06-14 22:26:12 +00:00
` }; $ t.image=function(t,e,n,r,o){var i=t[e];return i.attrs[i.attrIndex("alt")][1]=o.renderInlineAsText(i.children,n,r),o.renderToken(t,e,n)}; $ t.hardbreak=function(t,e,n){return n.xhtmlOut? ` < br / >
2023-06-07 07:39:38 +00:00
` : ` < br >
2023-06-14 22:26:12 +00:00
` }; $ t.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut? ` < br / >
2023-06-07 07:39:38 +00:00
` : ` < br >
` : `
2023-06-14 22:26:12 +00:00
` }; $ t.text=function(t,e){return Wn(t[e].content)}; $ t.html_block=function(t,e){return t[e].content}; $ t.html_inline=function(t,e){return t[e].content};function Dr(){this.rules=p_e({}, $ t)}Dr.prototype.renderAttrs=function(e){var n,r,o;if(!e.attrs)return"";for(o="",n=0,r=e.attrs.length;n<r;n++)o+=" "+Wn(e.attrs[n][0])+'="'+Wn(e.attrs[n][1])+'"';return o};Dr.prototype.renderToken=function(e,n,r){var o,i="",s=!1,a=e[n];return a.hidden?"":(a.block&&a.nesting!==-1&&n&&e[n-1].hidden&&(i+= `
2023-06-09 23:37:50 +00:00
` ),i+=(a.nesting===-1?"</":"<")+a.tag,i+=this.renderAttrs(a),a.nesting===0&&r.xhtmlOut&&(i+=" /"),a.block&&(s=!0,a.nesting===1&&n+1<e.length&&(o=e[n+1],(o.type==="inline"||o.hidden||o.nesting===-1&&o.tag===a.tag)&&(s=!1))),i+=s? ` >
2023-06-14 22:26:12 +00:00
` :">",i)};Dr.prototype.renderInline=function(t,e,n){for(var r,o="",i=this.rules,s=0,a=t.length;s<a;s++)r=t[s].type,typeof i[r]<"u"?o+=i[r](t,s,e,n,this):o+=this.renderToken(t,s,e);return o};Dr.prototype.renderInlineAsText=function(t,e,n){for(var r="",o=0,i=t.length;o<i;o++)t[o].type==="text"?r+=t[o].content:t[o].type==="image"?r+=this.renderInlineAsText(t[o].children,e,n):t[o].type==="softbreak"&&(r+= `
` );return r};Dr.prototype.render=function(t,e,n){var r,o,i,s="",a=this.rules;for(r=0,o=t.length;r<o;r++)i=t[r].type,i==="inline"?s+=this.renderInline(t[r].children,e,n):typeof a[i]<"u"?s+=a[t[r].type](t,r,e,n,this):s+=this.renderToken(t,r,e,n);return s};var g_e=Dr;function Lt(){this.__rules__=[],this.__cache__=null}Lt.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};Lt.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){e.indexOf(r)<0&&e.push(r)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||t.__cache__[n].push(r.fn))})})};Lt.prototype.at=function(t,e,n){var r=this.__find__(t),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__[r].fn=e,this.__rules__[r].alt=o.alt||[],this.__cache__=null};Lt.prototype.before=function(t,e,n,r){var o=this.__find__(t),i=r||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o,0,{name:e,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};Lt.prototype.after=function(t,e,n,r){var o=this.__find__(t),i=r||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o+1,0,{name:e,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};Lt.prototype.push=function(t,e,n){var r=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null};Lt.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var o=this.__find__(r);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!0,n.push(r)},this),this.__cache__=null,n};Lt.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};Lt.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var o=this.__find__(r);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!1,n.push(r)},this),this.__cache__=null,n};Lt.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var ku=Lt,f_e=/ \r \n ?| \n /g,h_e=/ \0 /g,E_e=function(e){var n;n=e.src.replace(f_e, `
` ),n=n.replace(h_e,"<22> "),e.src=n},S_e=function(e){var n;e.inlineMode?(n=new e.Token("inline","",0),n.content=e.src,n.map=[0,1],n.children=[],e.tokens.push(n)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},b_e=function(e){var n=e.tokens,r,o,i;for(o=0,i=n.length;o<i;o++)r=n[o],r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)},T_e=Pe.arrayReplaceAt;function y_e(t){return/^<a[> \s ]/i.test(t)}function v_e(t){return/^< \/ a \s *>/i.test(t)}var C_e=function(e){var n,r,o,i,s,a,l,c,d,u,p,_,g,f,E,h,S=e.tokens,T;if(e.md.options.linkify){for(r=0,o=S.length;r<o;r++)if(!(S[r].type!=="inline"||!e.md.linkify.pretest(S[r].content)))for(i=S[r].children,g=0,n=i.length-1;n>=0;n--){if(a=i[n],a.type==="link_close"){for(n--;i[n].level!==a.level&&i[n].type!=="link_open";)n--;continue}if(a.type==="html_inline"&&(y_e(a.content)&&g>0&&g--,v_e(a.content)&&g++),!(g>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(d=a.content,T=e.md.linkify.match(d),l=[],_=a.level,p=0,T.length>0&&T[0].index===0&&n>0&&i[n-1].type==="text_special"&&(T=T.slice(1)),c=0;c<T.length;c++)f=T[c].url,E=e.md.normalizeLink(f),e.md.validateLink(E)&&(h=T[c].text,T[c].schema?T[c].schema==="mailto:"&&!/^mailto:/i.test(h)?h=e.md.normalizeLinkText("mailto:"+h).replace(/^mailto:/,""):h=e.md.normalizeLinkText(h):h=e.md.normalizeLinkText("http://"+h).replace(/^http: \/ \/ /,""),u=T[c].index,u>p&&(s=new e.Token("text","",0),s.content=d.slice(p,u),s.level=_,l.push(s)),s=new e.Token("link_open","a",1),s.attrs=[["href",E]],s.level=_++,s.markup="linkify",s.info="auto",l.push(s),s=new e.Token("text","",0),s.content=h,s.level=_,l.push(s),s=new e.Token("link_close","a",-1),s.level=--_,s.markup="linkify",s.info="auto",l.push(s),p=T[c].lastIndex);p<d.length&&(s=new e.Token("text","",0),s.content=d.slice(p),s.level=_,l.push(s)),S[r].children=i=T_e(i,n,l)}}}},xb=/ \+ -| \. \. | \? \? \? \? |!!!!|,,|--/,R_e=/ \( (c|tm|r) \) /i,O_e=/ \( (c|tm|r) \) /ig,N_e={c:"©",r:"®",tm:"™"};function A_e(t,e){return N_e[e.toLowerCase()]}function I_e(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&(n.content=n.content.replace(O_e,A_e)),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}function x_e(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&xb.test(n.content)&&(n.content=n.content.replace(/ \+ -/g,"±").replace(/ \. {2,}/g,"…").replace(/([?!])…/g," $ 1..").replace(/([?!]){4,}/g," $ 1 $ 1 $ 1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]| $ )/mg," $ 1—").replace(/(^| \s )--(?= \s | $ )/mg," $ 1– ").replace(/(^|[^- \s ])--(?=[^- \s ]| $ )/mg," $ 1– ")),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}var w_e=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(R_e.test(e.tokens[n].content)&&I_e(e.tokens[n].children),xb.test(e.tokens[n].content)&&x_e(e.tokens[n].children))},Yp=Pe.isWhiteSpace,Hp=Pe.isPunctChar,Vp=Pe.isMdAsciiPunct,D_e=/['"]/,zp=/['"]/g, $ p="’ ";function Do(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function M_e(t,e){var n,r,o,i,s,a,l,c,d,u,p,_,g,f,E,h,S,T,R,x,O;for(R=[],n=0;n<t.length;n++){for(r=t[n],l=t[n].level,S=R.length-1;S>=0&&!(R[S].level<=l);S--);if(R.length=S+1,r.type==="text"){o=r.content,s=0,a=o.length;e:for(;s<a&&(zp.lastIndex=s,i=zp.exec(o),!!i);){if(E=h=!0,s=i.index+1,T=i[0]==="'",d=32,i.index-1>=0)d=o.charCodeAt(i.index-1);else for(S=n-1;S>=0&&!(t[S].type==="softbreak"||t[S].type==="hardbreak");S--)if(t[S].content){d=t[S].content.charCodeAt(t[S].content.length-1);break}if(u=32,s<a)u=o.charCodeAt(s);else for(S=n+1;S<t.length&&!(t[S].type==="softbreak"||t[S].type==="hardbreak");S++)if(t[S].content){u=t[S].content.charCodeAt(0);break}if(p=Vp(d)||Hp(String.fromCharCode(d)),_=Vp(u)||Hp(String.fromCharCode(u)),g=Yp(d),f=Yp(u),f?E=!1:_&&(g||p||(E=!1)),g?h=!1:p&&(f||_||(h=!1)),u===34&&i[0]==='"'&&d>=48&&d<=57&&(h=E=!1),E&&h&&(E=p,h=_),!E&&!h){T&&(r.content=Do(r.content,i.index, $ p));continue}if(h){for(S=R.length-1;S>=0&&(c=R[S],!(R[S].level<l));S--)if(c.single===T&&R[S].level===l){c=R[S],T?(x=e.md.options.quotes[2],O=e.md.options.quotes[
` ,s.map=[n,e.line],!0},Y_e=function(e,n,r,o){var i,s,a,l,c,d,u,p=!1,_=e.bMarks[n]+e.tShift[n],g=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||_+3>g||(i=e.src.charCodeAt(_),i!==126&&i!==96)||(c=_,_=e.skipChars(_,i),s=_-c,s<3)||(u=e.src.slice(c,_),a=e.src.slice(_,g),i===96&&a.indexOf(String.fromCharCode(i))>=0))return!1;if(o)return!0;for(l=n;l++,!(l>=r||(_=c=e.bMarks[l]+e.tShift[l],g=e.eMarks[l],_<g&&e.sCount[l]<e.blkIndent));)if(e.src.charCodeAt(_)===i&&!(e.sCount[l]-e.blkIndent>=4)&&(_=e.skipChars(_,i),!(_-c<s)&&(_=e.skipSpaces(_),!(_<g)))){p=!0;break}return s=e.sCount[n],e.line=l+(p?1:0),d=e.push("fence","code",0),d.info=a,d.content=e.getLines(n+1,l,s,!0),d.markup=u,d.map=[n,e.line],!0},Kp=Pe.isSpace,H_e=function(e,n,r,o){var i,s,a,l,c,d,u,p,_,g,f,E,h,S,T,R,x,O,M,b,C=e.lineMax,I=e.bMarks[n]+e.tShift[n],D=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(I++)!==62)return!1;if(o)return!0;for(l=_=e.sCount[n]+1,e.src.charCodeAt(I)===32?(I++,l++,_++,i=!1,R=!0):e.src.charCodeAt(I)===9?(R=!0,(e.bsCount[n]+_)%4===3?(I++,l++,_++,i=!1):i=!0):R=!1,g=[e.bMarks[n]],e.bMarks[n]=I;I<D&&(s=e.src.charCodeAt(I),Kp(s));){s===9?_+=4-(_+e.bsCount[n]+(i?1:0))%4:_++;I++}for(f=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(R?1:0),d=I>=D,S=[e.sCount[n]],e.sCount[n]=_-l,T=[e.tShift[n]],e.tShift[n]=I-e.bMarks[n],O=e.md.block.ruler.getRules("blockquote"),h=e.parentType,e.parentType="blockquote",p=n+1;p<r&&(b=e.sCount[p]<e.blkIndent,I=e.bMarks[p]+e.tShift[p],D=e.eMarks[p],!(I>=D));p++){if(e.src.charCodeAt(I++)===62&&!b){for(l=_=e.sCount[p]+1,e.src.charCodeAt(I)===32?(I++,l++,_++,i=!1,R=!0):e.src.charCodeAt(I)===9?(R=!0,(e.bsCount[p]+_)%4===3?(I++,l++,_++,i=!1):i=!0):R=!1,g.push(e.bMarks[p]),e.bMarks[p]=I;I<D&&(s=e.src.charCodeAt(I),Kp(s));){s===9?_+=4-(_+e.bsCount[p]+(i?1:0))%4:_++;I++}d=I>=D,f.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(R?1:0),S.push(e.sCount[p]),e.sCount[p]=_-l,T.push(e.tShift[p]),e.tShift[p]=I-e.bMarks[p];continue}if(d)break;for(x=!1,a=0,c=O.length;a<c;a++)if(O[a](e,p,r,!0)){x=!0;break}if(x){e.lineMax=p,e.blkIndent!==0&&(g.push(e.bMarks[p]),f.push(e.bsCount[p]),T.push(e.tShift[p]),S.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}g.push(e.bMarks[p]),f.push(e.bsCount[p]),T.push(e.tShift[p]),S.push(e.sCount[p]),e.sCount[p]=-1}for(E=e.blkIndent,e.blkIndent=0,M=e.push("blockquote_open","blockquote",1),M.markup=">",M.map=u=[n,0],e.md.block.tokenize(e,n,p),M=e.push("blockquote_close","blockquote",-1),M.markup=">",e.lineMax=C,e.parentType=h,u[1]=e.line,a=0;a<T.length;a++)e.bMarks[a+n]=g[a],e.tShift[a+n]=T[a],e.sCount[a+n]=S[a],e.bsCount[a+n]=f[a];return e.blkIndent=E,!0},V_e=Pe.isSpace,z_e=function(e,n,r,o){var i,s,a,l,c=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(i=e.src.charCodeAt(c++),i!==42&&i!==45&&i!==95))return!1;for(s=1;c<d;){if(a=e.src.charCodeAt(c++),a!==i&&!V_e(a))return!1;a===i&&s++}return s<3?!1:(o||(e.line=n+1,l=e.push("hr","hr",0),l.map=[n,e.line],l.markup=Array(s+1).join(String.fromCharCode(i))),!0)},Db=Pe.isSpace;function Qp(t,e){var n,r,o,i;return r=t.bMarks[e]+t.tShift[e],o=t.eMarks[e],n=t.src.charCodeAt(r++),n!==42&&n!==45&&n!==43||r<o&&(i=t.src.charCodeAt(r),!Db(i))?-1:r}function jp(t,e){var n,r=t.bMarks[e]+t.tShift[e],o=r,i=t.eMarks[e];if(o+1>=i||(n=t.src.charCodeAt(o++),n<48||n>57))return-1;for(;;){if(o>=i)return-1;if(n=t.src.charCodeAt(o++),n>=48&&n<=57){if(o-r>=10)return-1;continue}if(n===41||n===46)break;return-1}return o<i&&(n=t.src.charCodeAt(o),!Db(n))?-1:o}function $ _e(t,e){var n,r,o=t.level+2;for(n=e+2,r=t.tokens.length-2;n<r;n++)t.tokens[n].level===o&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var W_e=function(e,n,r,o){var i,s,a,l,c,d,u,p,_,g,f,E,h,S,T,R,x,O,M,b,C,I,D,k,K,P,ie,z,A=!1,q=!0;if(e.sCount[n]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[n]-e.listIndent>=4&&e.sCount[n]<e.blkIndent)return!1;if(o&&e.parentType==="paragraph"&&e.sCount[n]>=e.blkIndent&&(A=!0),(D=jp(e,n))>=0){if(u=!0,K=e.bMarks[n]+e.tShift[n],h=Number(e.src.slice(K,D-1)),A&&h!==1)return!1}else if((D=Qp(e,n))>=0)u=!1;else return!1;if(A&&e.skipSpaces(D)>=e.
https : //github.com/highlightjs/highlight.js/issues/2277`),_e=A,me=q),H===void 0&&(H=!0);const ee={code:me,language:_e};ie("before:highlight",ee);const ge=ee.result?ee.result:u(ee.language,ee.code,H);return ge.code=ee.code,ie("after:highlight",ge),ge}function u(A,q,H,me){const _e=Object.create(null);function ee(Q,oe){return Q.keywords[oe]}function ge(){if(!G.keywords){Y.addText(X);return}let Q=0;G.keywordPatternRe.lastIndex=0;let oe=G.keywordPatternRe.exec(X),pe="";for(;oe;){pe+=X.substring(Q,oe.index);const ye=B.case_insensitive?oe[0].toLowerCase():oe[0],Ie=ee(G,ye);if(Ie){const[Fe,Ne]=Ie;if(Y.addText(pe),pe="",_e[ye]=(_e[ye]||0)+1,_e[ye]<=wze&&(ae+=Ne),Fe.startsWith("_"))pe+=oe[0];else{const ze=B.classNameAliases[Fe]||Fe;$(oe[0],ze)}}else pe+=oe[0];Q=G.keywordPatternRe.lastIndex,oe=G.keywordPatternRe.exec(X)}pe+=X.substring(Q),Y.addText(pe)}function Ee(){if(X==="")return;let Q=null;if(typeof G.subLanguage=="string"){if(!e[G.subLanguage]){Y.addText(X);return}Q=u(G.subLanguage,X,!0,re[G.subLanguage]),re[G.subLanguage]=Q._top}else Q=_(X,G.subLanguage.length?G.subLanguage:null);G.relevance>0&&(ae+=Q.relevance),Y.__addSublanguage(Q._emitter,Q.language)}function L(){G.subLanguage!=null?Ee():ge(),X=""}function $(Q,oe){Q!==""&&(Y.startScope(oe),Y.addText(Q),Y.endScope())}function V(Q,oe){let pe=1;const ye=oe.length-1;for(;pe<=ye;){if(!Q._emit[pe]){pe++;continue}const Ie=B.classNameAliases[Q[pe]]||Q[pe],Fe=oe[pe];Ie?$(Fe,Ie):(X=Fe,ge(),X=""),pe++}}function Z(Q,oe){return Q.scope&&typeof Q.scope=="string"&&Y.openNode(B.classNameAliases[Q.scope]||Q.scope),Q.beginScope&&(Q.beginScope._wrap?($(X,B.classNameAliases[Q.beginScope._wrap]||Q.beginScope._wrap),X=""):Q.beginScope._multi&&(V(Q.beginScope,oe),X="")),G=Object.create(Q,{parent:{value:G}}),G}function J(Q,oe,pe){let ye=WVe(Q.endRe,pe);if(ye){if(Q["on:end"]){const Ie=new _m(Q);Q["on:end"](oe,Ie),Ie.isMatchIgnored&&(ye=!1)}if(ye){for(;Q.endsParent&&Q.parent;)Q=Q.parent;return Q}}if(Q.endsWithParent)return J(Q.parent,oe,pe)}function de(Q){return G.matcher.regexIndex===0?(X+=Q[0],1):(Te=!0,0)}function le(Q){const oe=Q[0],pe=Q.rule,ye=new _m(pe),Ie=[pe.__beforeBegin,pe["on:begin"]];for(const Fe of Ie)if(Fe&&(Fe(Q,ye),ye.isMatchIgnored))return de(oe);return pe.skip?X+=oe:(pe.excludeBegin&&(X+=oe),L(),!pe.returnBegin&&!pe.excludeBegin&&(X=oe)),Z(pe,Q),pe.returnBegin?0:oe.length}function y(Q){const oe=Q[0],pe=q.substring(Q.index),ye=J(G,Q,pe);if(!ye)return Em;const Ie=G;G.endScope&&G.endScope._wrap?(L(),$(oe,G.endScope._wrap)):G.endScope&&G.endScope._multi?(L(),V(G.endScope,Q)):Ie.skip?X+=oe:(Ie.returnEnd||Ie.excludeEnd||(X+=oe),L(),Ie.excludeEnd&&(X=oe));do G.scope&&Y.closeNode(),!G.skip&&!G.subLanguage&&(ae+=G.relevance),G=G.parent;while(G!==ye.parent);return ye.starts&&Z(ye.starts,Q),Ie.returnEnd?0:oe.length}function N(){const Q=[];for(let oe=G;oe!==B;oe=oe.parent)oe.scope&&Q.unshift(oe.scope);Q.forEach(oe=>Y.openNode(oe))}let F={};function U(Q,oe){const pe=oe&&oe[0];if(X+=Q,pe==null)return L(),0;if(F.type==="begin"&&oe.type==="end"&&F.index===oe.index&&pe===""){if(X+=q.slice(oe.index,oe.index+1),!o){const ye=new Error(`0 width match regex (${A})`);throw ye.languageName=A,ye.badRule=F.rule,ye}return 1}if(F=oe,oe.type==="begin")return le(oe);if(oe.type==="illegal"&&!H){const ye=new Error('Illegal lexeme "'+pe+'" for mode "'+(G.scope||"<unnamed>")+'"');throw ye.mode=G,ye}else if(oe.type==="end"){const ye=y(oe);if(ye!==Em)return ye}if(oe.type==="illegal"&&pe==="")return 1;if(ce>1e5&&ce>oe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return X+=pe,pe.length}const B=C(A);if(!B)throw Vn(i.replace("{}",A)),new Error('Unknown language: "'+A+'"');const te=Nze(B);let se="",G=me||te;const re={},Y=new a.__emitter(a);N();let X="",ae=0,ue=0,ce=0,Te=!1;try{if(B.__emitTokens)B.__emitTokens(q,Y);else{for(G.matcher.considerAll();;){ce++,Te?Te=!1:G.matcher.considerAll(),G.matcher.lastIndex=ue;const Q=G.matcher.exec(q);if(!Q)break;const oe=q.substring(ue,Q.index),pe=U(oe,Q);ue=Q.index+pe}U(q.substring(ue))}return Y.finalize(),se=Y.toHTML(),{language:A,value:se,rel
` },g]}}return Tl=o,Tl}var yl,of;function E5e(){if(of)return yl;of=1;function t(e){const n="[a-zA-Z_][ \\ w.]*",r="< \\ ?(lasso(script)?|=)",o=" \\ ]| \\ ?>",i={ $ pattern:n+"|&[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"},s=e.COMMENT("<!--","-->",{relevance:0}),a={className:"meta",begin:" \\ [noprocess \\ ]",starts:{end:" \\ [/noprocess \\ ]",returnEnd:!0,contains:[s]}},l={className:"meta",begin:" \\ [/noprocess|"+r},c={className:"symbol",begin:"'"+n+"'"},d=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN) \\ b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:" ` ",end:" ` "},{variants:[{begin:"[# $ ]"+n},{begin:"#",end:" \\ d+",illegal:" \\ W"}]},{className:"type",begin:":: \\ s*",end:n,illegal:" \\ W"},{className:"params",variants:[{begin:"-(?!infinity)"+n,relevance:0},{begin:"( \\ . \\ . \\ .)"}]},{begin:/(->| \. ) \s */,relevance:0,contains:[c]},{className:"class",beginKeywords:"define",returnEnd:!0,end:" \\ (|=>",contains:[e.inherit(e.TITLE_MODE,{begin:n+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:i,contains:[{className:"meta",begin:o,relevance:0,starts:{end:" \\ [|"+r,returnEnd:!0,relevance:0,contains:[s]}},a,l,{className:"meta",begin:" \\ [no_square_brackets",starts:{end:" \\ [/no_square_brackets \\ ]",keywords:i,contains:[{className:"meta",begin:o,relevance:0,starts:{end:" \\ [noprocess \\ ]|"+r,returnEnd:!0,contains:[s]}},a,l].concat(d)}},{className:"meta",begin:" \\ [",relevance:0},{className:"meta",begin:"^#!",end:"lasso9 $ ",relevance:10}].concat(d)}}return yl=t,yl}var vl,sf;function S5e(){if(sf)return vl;sf=1;function t(e){const r=e.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?dot|hat|tilde|bar)"].map(D=>D+"(?![a-zA-Z@:_])")),o=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-
] ` ,g={scope:"string",variants:[d,c,u,p]},f={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},E=["false","null","true"],h=["__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"],S=["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"],R={keyword:h,literal:(P=>{const ie=[];return P.forEach(z=>{ie.push(z),z.toLowerCase()===z?ie.push(z.toUpperCase()):ie.push(z.toLowerCase())}),ie})(E),built_in:S},x=P=>P.map(ie=>ie.replace(/ \| \d + $ /,"")),O={variants:[{match:[/new/,n.concat(_,"+"),n.concat("(?!",x(S).join(" \\ b|")," \\ b)"),i],scope:{1:"keyword",4:"title.class"}}]},M=n.concat(o," \\ b(?! \\ ()"),b={variants:[{match:[n.concat(/::/,n.lookahead(/(?!class \b )/)),M],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,n.concat(/::/,n.lookahead(/(?!class \b )/)),M],scope:{1:"title.class",3:"variable.constant"}},{match:[i,n.concat("::",n.lookahead(/(?!class \b )/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},C={scope:"attr",match:n.concat(o,n.lookahead(":"),n.lookahead(/(?!::)/))},I={relevance:0,begin:/ \( /,end:/ \) /,keywords:R,contains:[C,s,b,e.C_BLOCK_COMMENT_MODE,g,f,O]},D={relevance:0,match:[/ \b /,n.concat("(?!fn \\ b|function \\ b|",x(h).join(" \\ b|"),"|",x(S).join(" \\ b|")," \\ b)"),o,n.concat(_,"*"),n.lookahead(/(?= \( )/)],scope:{3:"title.function.invoke"},contains:[I]};I.contains.push(D);const k=[C,b,e.C_BLOCK_COMMENT_MODE,g,f,O],K={begin:n.concat(/# \[ \s */,i),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:E,keyword:["new","array"]},contains:[{begin:/ \[ /,end:/]/,keywords:{literal:E,keyword:["new","array"]},contains:["self",...k]},
] * ; ` ,relevance:0},{begin:"[vp][0-9]+"}]}}return kc=t,kc}var Pc,Sh;function D $ e(){if(Sh)return Pc;Sh=1;function t(e){const n="[a-z][a-zA-Z0-9_]*",r={className:"string",begin:" \\ $ .{1}"},o={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:" \\ b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:n+":",relevance:0},e.C_NUMBER_MODE,o,r,{begin:" \\ |[ ]*"+n+"([ ]+"+n+")*[ ]* \\ |",returnBegin:!0,end:/ \| /,illegal:/ \S /,contains:[{begin:"( \\ |[ ]*)?"+n}]},{begin:"# \\ (",end:" \\ )",contains:[e.APOS_STRING_MODE,r,e.C_NUMBER_MODE,o]}]}}return Pc=t,Pc}var Fc,bh;function M $ e(){if(bh)return Fc;bh=1;function t(e){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},e.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' ] * "},e.inherit(e.APOS_STRING_MODE,{className:" string ",relevance:0}),e.inherit(e.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 Fc=t,Fc}var Uc,Th;function L$e(){if(Th)return Uc;Th=1;function t(e){const n={className:" variable ",begin:/\b_+[a-zA-Z]\w*/},r={className:" title ",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},o={className:" string ",variants:[{begin:'" ',end:' "',contains:[{begin:'" "',relevance:0}]},{begin:" '",end:"' ",contains:[{begin:" '' ",relevance:0}]}]},i=[" 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 "],s=[" 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 "],a=[" 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 "," addPublicVariableEventHandler "," addRating "," addResources "," addScore "," addScoreSide "," addSecondaryWeaponItem "," addSwitchableUnit "," addTeamMember "," addToRemainsCollector "," addTorque "," addUniform "," addUserActionEventHandler "," a
2023-06-07 07:39:38 +00:00
] * ? "'`},{begin:`" [ ^ \ r
2023-06-14 22:26:12 +00:00
"]*" ` }]},{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)(?= \\ ()"}]},e.COMMENT("^[ ]* \\ *.* $ ",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return qc=t,qc}var Yc,Rh;function U $ e(){if(Rh)return Yc;Rh=1;function t(e){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},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/ \\ * \\ *!"," \\ */"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:" \\ d+",illegal:" \\ W"}]}]}}return Yc=t,Yc}var Hc,Oh;function B $ e(){if(Oh)return Hc;Oh=1;const t=a=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:a.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:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:a.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_-]*/}}),e=["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","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],r=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","i
2023-06-07 07:39:38 +00:00
( multipart ) ? ` ,end: ` \ \ ]
2023-06-14 22:26:12 +00: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 Vc=t,Vc}var zc,Ah;function q $ e(){if(Ah)return zc;Ah=1;function t(b){return b?typeof b=="string"?b:b.source:null}function e(b){return n("(?=",b,")")}function n(...b){return b.map(I=>t(I)).join("")}function r(b){const C=b[b.length-1];return typeof C=="object"&&C.constructor===Object?(b.splice(b.length-1,1),C):{}}function o(...b){return"("+(r(b).capture?"":"?:")+b.map(D=>t(D)).join("|")+")"}const i=b=>n(/ \b /,b,/ \w $ /.test(b)?/ \b /:/ \B /),s=["Protocol","Type"].map(i),a=["init","self"].map(i),l=["Any","Self"],c=["actor","any","associatedtype","async","await",/as \? /,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","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","mutating","nonmutating",/open \( set \) /,"open","operator","optional","override","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"],d=["false","nil","true"],u=["assignment","associativity","higherThan","left","lowerThan","none","right"],p=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],_=["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"],g=o(/[/= \- +!*%<>&|^~?]/,/[ \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]/),f=o(g,/[ \u 0300- \u 036F]/,/[ \u 1DC0- \u 1DFF]/,/[ \u 20D0- \u 20FF]/,/[ \u FE00- \u FE0F]/,/[ \u FE20- \u FE2F]/),E=n(g,f,"*"),h=o(/[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]/),S=o(h,/ \d /,/[ \u 0300- \u 036F \u 1DC0- \u 1DFF \u 20D0- \u 20FF \u FE20- \u FE2F]/),T=n(h,S,"*"),R=n(/[A-Z]/,S,"*"),x=["autoclosure",n(/convention \( /,o("swift","block","c"),/ \) /),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",n(/objc \( /,T,/ \) /),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],O=["iOS","iOSApplicationExtension","
` ,544),[[Ve,o.message]]),m("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:e[4]||(e[4]=(...s)=>i.addFiles&&i.addFiles(...s)),multiple:""},null,544),m("button",{type:"button",onClick:e[5]||(e[5]=be(s=>t. $ refs.fileDialog.click(),["stop"])),title:"Add files",class:"absolute inset-y-0 right-0 flex items-center mr-2 w-6 hover:text-secondary duration-75 active:scale-90"},O6e)]),m("div",N6e,[n.loading?fe("",!0):(W(),ne("button",{key:0,type:"button",onClick:e[6]||(e[6]=(...s)=>i.submit&&i.submit(...s)),class:"w-6 hover:text-secondary duration-75 active:scale-90"},x6e)),n.loading?(W(),ne("div",w6e,M6e)):fe("",!0)])])])])])])}const sT=Ze(J9e,[["render",L6e],["__scopeId","data-v-0f50df52"]]),k6e={name:"WelcomeComponent",setup(){return{}}},P6e={class:"flex flex-col text-center"},F6e=fu('<div class="flex flex-col text-center items-center"><div class="flex items-center gap-3 text-5xl drop-shadow-md align-middle pt-24"><img class="w-24 animate-bounce" title="lollms-webui" src="'+ $ n+'" alt="Logo"><p class="">lollms-webui</p></div><hr class="mt-1 w-96 h-1 mx-auto my-2 md:my-2 dark:bg-bg-dark-tone-panel bg-bg-light-tone-panel border-0 rounded"><p class="text-lg">Welcome, please create a new discussion or select existing one to start</p></div>',1),U6e=[F6e];function B6e(t,e,n,r,o,i){return W(),ne("div",P6e,U6e)}const aT=Ze(k6e,[["render",B6e]]);const G6e={setup(){return{}},name:"DragDrop",emits:["panelLeave","panelDrop"],data(){return{fileList:[],show:!1,dropRelease:!1}},mounted(){Se(()=>{Ce.replace()})},methods:{async panelDrop(t){const e="getAsFileSystemHandle"in DataTransferItem.prototype,n="webkitGetAsEntry"in DataTransferItem.prototype;if(!e&&!n)return;const r=[...t.dataTransfer.items].filter(i=>i.kind==="file").map(i=>e?i.getAsFileSystemHandle():i.webkitGetAsEntry());let o=[];for await(const i of r)(i.kind==="directory"||i.isDirectory)&&o.push(i.name);this.dropRelease=!0,t.dataTransfer.files.length>0&&[...t.dataTransfer.files].forEach(i=>{o.includes(i.name)||this.fileList.push(i)}),Se(()=>{Ce.replace()}),this. $ emit("panelDrop",this.fileList),this.fileList=[],this.show=!1},panelLeave(){this. $ emit("panelLeave"),console.log("exit/leave"),this.dropRelease=!1,this.show=!1,Se(()=>{Ce.replace()})}}},q6e={class:"text-4xl text-center"};function Y6e(t,e,n,r,o,i){return W(),lt(yn,{name:"list",tag:"div"},{default:nt(()=>[o.show?(W(),ne("div",{key:"dropmenu",class:"select-none text-slate-50 absolute top-0 left-0 right-0 bottom-0 flex flex-col items-center justify-center bg-black bg-opacity-50 duration-200 backdrop-blur-sm",onDragleave:e[0]||(e[0]=be(s=>i.panelLeave(s),["prevent"])),onDrop:e[1]||(e[1]=be(s=>i.panelDrop(s),["stop","prevent"]))},[m("div",{class:ke(["flex flex-col items-center justify-center p-8 rounded-lg shadow-lg border-dashed border-4 border-secondary w-4/5 h-4/5",o.dropRelease?"":"pointer-events-none"])},[m("div",q6e,[WE(t. $ slots,"default",{},()=>[we(" Drop your files here ")])])],2)],32)):fe("",!0)]),_:3})}const $ d=Ze(G6e,[["render",Y6e]]);var H6e=function(){function t(e,n){n===void 0&&(n=[]),this._eventType=e,this._eventFunctions=n}return t.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(n){typeof window<"u"&&window.addEventListener(e._eventType,n)})},t}(),pi=globalThis&&globalThis.__assign||function(){return pi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},pi.apply(this,arguments)},mi={alwaysOpen:!1,activeClasses:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white",inactiveClasses:"text-gray-500 dark:text-gray-400",onOpen:function(){},onClose:function(){},onToggle:function(){}},lT=function(){function t(e,n){e===void 0&&(e=[]),n===void 0&&(n=mi),this._items=e,this._options=pi(pi({},mi),n),this._init()}return t.prototype._init=function(){var e=this;this._items.length&&this._items.map(function(n){n.active&&e.open(n.id),n.triggerEl.addEventListener("click",function(){e.toggle(n.id)})})},t.prototype.getItem=function(e){return this
` +e.message,4,!1),null}},async parseJsonFile(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=o=>e(this.parseJsonObj(o.target.result)),r.onerror=o=>n(o),r.readAsText(t)})},async exportDiscussions(){const t=this.list.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(t.length>0){console.log("export",t);let e=new Date;const n=e.getFullYear(),r=(e.getMonth()+1).toString().padStart(2,"0"),o=e.getDate().toString().padStart(2,"0"),i=e.getHours().toString().padStart(2,"0"),s=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),c="discussions_export_"+(n+"."+r+"."+o+"."+i+s+a)+".json";this.loading=!0;const d=await this.export_multiple_discussions(t);d?(this.saveJSONtoFile(d,c),this. $ refs.toast.showToast("Successfully exported",4,!0),this.isCheckbox=!1):this. $ refs.toast.showToast("Failed to export discussions",4,!1),this.loading=!1}},async importDiscussions(t){const e=await this.parseJsonFile(t.target.files[0]);await this.import_multiple_discussions(e)?(this. $ refs.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this. $ refs.toast.showToast("Failed to import discussions",4,!1)},async getPersonalityAvatars(){let t=[];const e=await this.api_get_req("get_all_personalities"),n=Object.keys(e);for(let r=0;r<n.length;r++){const o=n[r],i=e[o],s=Object.keys(i);for(let a=0;a<s.length;a++){const l=s[a],d=i[l].map(u=>{let p={};return p=u,p.category=l,p.language=o,p});t.length==0?t=d:t=t.concat(d)}}this.personalityAvatars=t.map(r=>({name:r.name,avatar:r.avatar}))},getAvatar(t){const e=this.personalityAvatars.findIndex(r=>r.name===t),n=this.personalityAvatars[e];if(n)return n.avatar},setFileListChat(t){this. $ refs.chatBox.fileList=this. $ refs.chatBox.fileList.concat(t),this.isDragOverChat=!1},setDropZoneChat(){this.isDragOverChat=!0,this. $ refs.dragdropChat.show=!0},async setFileListDiscussion(t){if(t.length>1){this. $ refs.toast.showToast("Failed to import discussions. Too many files",4,!1);return}const e=await this.parseJsonFile(t[0]);await this.import_multiple_discussions(e)?(this. $ refs.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this. $ refs.toast.showToast("Failed to import discussions",4,!1),this.isDragOverDiscussion=!1},setDropZoneDiscussion(){this.isDragOverDiscussion=!0,this. $ refs.dragdropDiscussion.show=!0}},async created(){this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),this.isCreated=!0,Se(()=>{Ce.replace()}),Ke.on("infos",this.createBotMsg),Ke.on("message",this.streamMessageContent),Ke.on("final",this.finalMsgEvent)},async activated(){console.log("settings changed",this. $ store.state.mountedPersonalities),console.log("Websocket connected (activated)",this.socketConnected),await this.getPersonalityAvatars(),this.isCreated&&(this.loadLastUsedDiscussion(),Se(()=>{const t=document.getElementById("messages-list");this.scrollBottom(t)}))},components:{Discussion:Rb,Message:iT,ChatBox:sT,WelcomeComponent:aT,Toast:wu,DragDrop: $ d},watch:{filterTitle(t){t==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(t){Se(()=>{Ce.replace()}),t||(this.isSelectAll=!1)},socketConnected(t){console.log("Websocket connected (watch)",t)},showConfirmation(){Se(()=>{Ce.replace()})},isSearch(){Se(()=>{Ce.replace()})}},computed:{socketConnected(){return!0},selectedDiscussions(){return Se(()=>{Ce.replace()}),this.list.filter(t=>t.checkBoxValue==!0)}}},QWe=Object.assign(KWe,{__name:"DiscussionsView",setup(t){return Li(()=>{Q8e()}),Ge.defaults.baseURL="/",(e,n)=>(W(),ne(Be,null,[m("div",X8e,[m("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll no-scrollbar",onDragover:n[13]||(n[13]=be(r=>e.setDropZoneDiscussion(),["stop","prevent"]))},[m("div",Z8e,[m("div",J8e,[m("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Create new discussion",type:"button",onClick:n[0]||(n[0]=r=>e.createNewDiscussion())},tWe),m("button",{class:ke(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isCheckbox?"text-secondary":""]),tit