@e280/quay 0.0.0-17 → 0.0.0-19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -4
- package/package.json +6 -4
- package/s/cellar/cask.ts +0 -18
- package/s/cellar/cellar.test.ts +19 -38
- package/s/cellar/cellar.ts +16 -20
- package/s/cellar/index.ts +0 -4
- package/s/cellar/mammoth.ts +50 -0
- package/s/cellar/mammoth.worker.bundle.ts +30 -0
- package/s/genius/parts/hy-tree.ts +10 -9
- package/s/logic/presets/media/library.test.ts +2 -3
- package/s/logic/presets/media/library.ts +84 -14
- package/s/logic/presets/media/schema.ts +6 -0
- package/x/cellar/cask.d.ts +0 -2
- package/x/cellar/cask.js +0 -13
- package/x/cellar/cask.js.map +1 -1
- package/x/cellar/cellar.d.ts +9 -7
- package/x/cellar/cellar.js +17 -22
- package/x/cellar/cellar.js.map +1 -1
- package/x/cellar/cellar.test.d.ts +2 -3
- package/x/cellar/cellar.test.js +19 -35
- package/x/cellar/cellar.test.js.map +1 -1
- package/x/cellar/index.d.ts +0 -3
- package/x/cellar/index.js +0 -3
- package/x/cellar/index.js.map +1 -1
- package/x/cellar/mammoth.d.ts +23 -0
- package/x/cellar/mammoth.js +34 -0
- package/x/cellar/mammoth.js.map +1 -0
- package/x/cellar/mammoth.worker.bundle.d.ts +1 -0
- package/x/cellar/mammoth.worker.bundle.js +20 -0
- package/x/cellar/mammoth.worker.bundle.js.map +1 -0
- package/x/cellar/mammoth.worker.bundle.min.js +8 -0
- package/x/cellar/mammoth.worker.bundle.min.js.map +7 -0
- package/x/demo/main.bundle.min.js +43 -43
- package/x/demo/main.bundle.min.js.map +4 -4
- package/x/genius/parts/hy-tree.js +9 -8
- package/x/genius/parts/hy-tree.js.map +1 -1
- package/x/index.html +2 -2
- package/x/logic/presets/media/library.d.ts +4 -2
- package/x/logic/presets/media/library.js +71 -12
- package/x/logic/presets/media/library.js.map +1 -1
- package/x/logic/presets/media/library.test.d.ts +1 -1
- package/x/logic/presets/media/library.test.js +2 -2
- package/x/logic/presets/media/library.test.js.map +1 -1
- package/x/logic/presets/media/schema.d.ts +6 -0
- package/s/cellar/forklift.ts +0 -9
- package/s/cellar/memory-forklift.ts +0 -30
- package/s/cellar/opfs-forklift.ts +0 -47
- package/x/cellar/forklift.d.ts +0 -7
- package/x/cellar/forklift.js +0 -2
- package/x/cellar/forklift.js.map +0 -1
- package/x/cellar/memory-forklift.d.ts +0 -9
- package/x/cellar/memory-forklift.js +0 -22
- package/x/cellar/memory-forklift.js.map +0 -1
- package/x/cellar/opfs-forklift.d.ts +0 -11
- package/x/cellar/opfs-forklift.js +0 -42
- package/x/cellar/opfs-forklift.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),jt=/'/g,Ht=/"/g,Rt=/^(?:script|style|textarea|title)$/i,ht=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),p=ht(1),Ho=ht(2),Lo=ht(3),V=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),Lt=new WeakMap,G=W.createTreeWalker(W,129);function qt(r,e){if(!dt(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Pt!==void 0?Pt.createHTML(e):e}var Dt=(r,e)=>{let t=r.length-1,o=[],s,n=e===2?"<svg>":e===3?"<math>":"",i=ae;for(let l=0;l<t;l++){let a=r[l],c,u,f=-1,H=0;for(;H<a.length&&(i.lastIndex=H,u=i.exec(a),u!==null);)H=i.lastIndex,i===ae?u[1]==="!--"?i=Ot:u[1]!==void 0?i=Mt:u[2]!==void 0?(Rt.test(u[2])&&(s=RegExp("</"+u[2],"g")),i=F):u[3]!==void 0&&(i=F):i===F?u[0]===">"?(i=s??ae,f=-1):u[1]===void 0?f=-2:(f=i.lastIndex-u[2].length,c=u[1],i=u[3]===void 0?F:u[3]==='"'?Ht:jt):i===Ht||i===jt?i=F:i===Ot||i===Mt?i=ae:(i=F,s=void 0);let D=i===F&&r[l+1].startsWith("/>")?" ":"";n+=i===ae?a+Yr:f>=0?(o.push(c),a.slice(0,f)+pt+a.slice(f)+N+D):a+N+(f===-2?l:D)}return[qt(r,n+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},ue=class r{constructor({strings:e,_$litType$:t},o){let s;this.parts=[];let n=0,i=0,l=e.length-1,a=this.parts,[c,u]=Dt(e,t);if(this.el=r.createElement(c,o),G.currentNode=this.el.content,t===2||t===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(s=G.nextNode())!==null&&a.length<l;){if(s.nodeType===1){if(s.hasAttributes())for(let f of s.getAttributeNames())if(f.endsWith(pt)){let H=u[i++],D=s.getAttribute(f).split(N),ve=/([.?@])?(.*)/.exec(H);a.push({type:1,index:n,name:ve[2],strings:D,ctor:ve[1]==="."?ke:ve[1]==="?"?Ce:ve[1]==="@"?Be:K}),s.removeAttribute(f)}else f.startsWith(N)&&(a.push({type:6,index:n}),s.removeAttribute(f));if(Rt.test(s.tagName)){let f=s.textContent.split(N),H=f.length-1;if(H>0){s.textContent=_e?_e.emptyScript:"";for(let D=0;D<H;D++)s.append(f[D],ce()),G.nextNode(),a.push({type:2,index:++n});s.append(f[H],ce())}}}else if(s.nodeType===8)if(s.data===ft)a.push({type:2,index:n});else{let f=-1;for(;(f=s.data.indexOf(N,f+1))!==-1;)a.push({type:7,index:n}),f+=N.length-1}n++}}static createElement(e,t){let o=W.createElement("template");return o.innerHTML=e,o}};function Q(r,e,t=r,o){if(e===V)return e;let s=o!==void 0?t._$Co?.[o]:t._$Cl,n=le(e)?void 0:e._$litDirective$;return s?.constructor!==n&&(s?._$AO?.(!1),n===void 0?s=void 0:(s=new n(r),s._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=s:t._$Cl=s),s!==void 0&&(e=Q(r,s._$AS(r,e.values),s,o)),e}var Ee=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,s=(e?.creationScope??W).importNode(t,!0);G.currentNode=s;let n=G.nextNode(),i=0,l=0,a=o[0];for(;a!==void 0;){if(i===a.index){let c;a.type===2?c=new te(n,n.nextSibling,this,e):a.type===1?c=new a.ctor(n,a.name,a.strings,this,e):a.type===6&&(c=new Te(n,this,e)),this._$AV.push(c),a=o[++l]}i!==a?.index&&(n=G.nextNode(),i++)}return G.currentNode=W,s}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},te=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,s){this.type=2,this._$AH=g,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Q(this,e,t),le(e)?e===g||e==null||e===""?(this._$AH!==g&&this._$AR(),this._$AH=g):e!==this._$AH&&e!==V&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Nt(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==g&&le(this._$AH)?this._$AA.nextSibling.data=e:this.T(W.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:o}=e,s=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=ue.createElement(qt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===s)this._$AH.p(t);else{let n=new Ee(s,this),i=n.u(this.options);n.p(t),this.T(i),this._$AH=n}}_$AC(e){let t=Lt.get(e.strings);return t===void 0&&Lt.set(e.strings,t=new ue(e)),t}k(e){dt(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,s=0;for(let n of e)s===t.length?t.push(o=new r(this.O(ce()),this.O(ce()),this,this.options)):o=t[s],o._$AI(n),s++;s<t.length&&(this._$AR(o&&o._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},K=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,s,n){this.type=1,this._$AH=g,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=g}_$AI(e,t=this,o,s){let n=this.strings,i=!1;if(n===void 0)e=Q(this,e,t,0),i=!le(e)||e!==this._$AH&&e!==V,i&&(this._$AH=e);else{let l=e,a,c;for(e=n[0],a=0;a<n.length-1;a++)c=Q(this,l[o+a],t,a),c===V&&(c=this._$AH[a]),i||=!le(c)||c!==this._$AH[a],c===g?e=g:e!==g&&(e+=(c??"")+n[a+1]),this._$AH[a]=c}i&&!s&&this.j(e)}j(e){e===g?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ke=class extends K{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===g?void 0:e}},Ce=class extends K{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==g)}},Be=class extends K{constructor(e,t,o,s,n){super(e,t,o,s,n),this.type=5}_$AI(e,t=this){if((e=Q(this,e,t,0)??g)===V)return;let o=this._$AH,s=e===g&&o!==g||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==g&&(o===g||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Te=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){Q(this,e)}},Ut={M:pt,P:N,A:ft,C:1,L:Dt,R:Ee,D:Nt,V:Q,I:te,H:K,N:Ce,U:Be,B:ke,F:Te},Xr=ut.litHtmlPolyfillSupport;Xr?.(ue,te),(ut.litHtmlVersions??=[]).push("3.3.0");var y=(r,e,t)=>{let o=t?.renderBefore??e,s=o._$litPart$;if(s===void 0){let n=t?.renderBefore??null;o._$litPart$=s=new te(e.insertBefore(ce(),n),n,void 0,t??{})}return s._$AI(r),s};var mt=globalThis,re=class extends L{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=y(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return V}};re._$litElement$=!0,re.finalized=!0,mt.litElementHydrateSupport?.({LitElement:re});var eo=mt.litElementPolyfillSupport;eo?.({LitElement:re});(mt.litElementVersions??=[]).push("4.2.0");var C={string:(r,e)=>r.getAttribute(e)??void 0,number:(r,e)=>{let t=r.getAttribute(e);return t===null||!t?void 0:Number(t)},boolean:(r,e)=>r.getAttribute(e)!==null},v={string:(r,e,t)=>(t===void 0?r.removeAttribute(e):r.setAttribute(e,t),!0),number:(r,e,t)=>(t===void 0?r.removeAttribute(e):r.setAttribute(e,t.toString()),!0),boolean:(r,e,t)=>(t?r.setAttribute(e,""):r.removeAttribute(e),!0),any:(r,e,t)=>{t==null?r.removeAttribute(e):typeof t=="string"?r.setAttribute(e,t):typeof t=="number"?r.setAttribute(e,t.toString()):typeof t=="boolean"?t===!0?r.setAttribute(e,""):r.removeAttribute(e):console.warn(`invalid attribute "${e}" type is "${typeof t}"`)},entries:(r,e)=>{for(let[t,o]of e)v.any(r,t,o)},record:(r,e)=>v.entries(r,Object.entries(e))};function It(r,e={}){let t=document.createElement(r);return v.record(t,e),t}function Ft(r){let e=document.createDocumentFragment();return y(r,e),e.firstElementChild}function ze(r,e){let t=[];for(let[o,s]of Object.entries(e))if(typeof s=="function")r.addEventListener(o,s),t.push(()=>r.removeEventListener(o,s));else{let[n,i]=s;r.addEventListener(o,i,n),t.push(()=>r.removeEventListener(o,i))}return()=>t.forEach(o=>o())}function Gt(r,e){let t=new MutationObserver(e);return t.observe(r,{attributes:!0}),()=>t.disconnect()}var Pe=class{element;constructor(e){this.element=e}strings=new Proxy({},{get:(e,t)=>C.string(this.element,t),set:(e,t,o)=>v.string(this.element,t,o)});numbers=new Proxy({},{get:(e,t)=>C.number(this.element,t),set:(e,t,o)=>v.number(this.element,t,o)});booleans=new Proxy({},{get:(e,t)=>C.boolean(this.element,t),set:(e,t,o)=>v.boolean(this.element,t,o)})};var Wt=(r,e,t={})=>new Proxy(e,{get:(o,s)=>{switch(e[s]){case String:return C.string(r,s);case Number:return C.number(r,s);case Boolean:return C.boolean(r,s);default:throw new Error(`invalid attribute type for "${s}"`)}},set:(o,s,n)=>{try{switch(t.beforeSet?.(s),e[s]){case String:return v.string(r,s,n);case Number:return v.number(r,s,n);case Boolean:return v.boolean(r,s,n);default:throw new Error(`invalid attribute type for "${s}"`)}}finally{t.afterSet?.(s)}}});function oe(r){let e=new Pe(r);return{strings:e.strings,numbers:e.numbers,booleans:e.booleans,on:t=>Gt(r,t),spec:(t,o={})=>Wt(r,t,o)}}oe.get=C;oe.set=v;function Vt(r){return new gt(r)}var gt=class{tagName;#e=new Map;#t=[];constructor(e){this.tagName=e}attr(e,t=!0){return this.#e.set(e,t),this}attrs(e){for(let[t,o]of Object.entries(e))this.attr(t,o);return this}children(...e){return this.#t.push(...e),this}done(){let e=document.createElement(this.tagName);return v.entries(e,this.#e),e.append(...this.#t),e}};function se(r,e=document){let t=e.querySelector(r);if(!t)throw new Error(`element not found (${r})`);return t}function Oe(r,e=document){return e.querySelector(r)}function Me(r,e=document){return Array.from(e.querySelectorAll(r))}var je=class r{element;#e;constructor(e){this.element=e}in(e){return new r(typeof e=="string"?se(e,this.element):e)}require(e){return se(e,this.element)}maybe(e){return Oe(e,this.element)}all(e){return Me(e,this.element)}render(...e){return y(e,this.element)}get attrs(){return this.#e??=oe(this.element)}events(e){return ze(this.element,e)}};function Qt(r){return r.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function Kt(r,e={}){let{soft:t=!1,upgrade:o=!0}=e;for(let[s,n]of Object.entries(r)){let i=Qt(s),l=customElements.get(i);t&&l||(customElements.define(i,n),o&&document.querySelectorAll(i).forEach(a=>{a.constructor===HTMLElement&&customElements.upgrade(a)}))}}function w(r,e=document){return se(r,e)}w.in=(r,e=document)=>new je(e).in(r);w.need=se;w.maybe=Oe;w.all=Me;w.el=It;w.elmer=Vt;w.mk=Ft;w.events=ze;w.attrs=oe;w.register=Kt;w.render=(r,...e)=>y(e,r);var Ne={};Et(Ne,{DragAndDrops:()=>yt,Drops:()=>bt,files:()=>io,hasFiles:()=>no,outsideCurrentTarget:()=>he});var B={};Et(B,{clone:()=>pe,equal:()=>to,freeze:()=>ro});function pe(r,e=new Set){if(e.has(r))throw new Error("cannot clone circular reference");let t;return typeof r=="function"||r!==null&&typeof r=="object"?(e.add(r),Array.isArray(r)?t=r.map(o=>pe(o,new Set(e))):r.constructor===Object?t=Object.fromEntries(Object.entries(r).map(([o,s])=>[o,pe(s,new Set(e))])):r instanceof Map?t=new Map(Array.from(r,([o,s])=>[o,pe(s,new Set(e))])):r instanceof Set?t=new Set(Array.from(r,o=>pe(o,new Set(e)))):r instanceof Date?t=new Date(r.getTime()):t=r,e.delete(r)):t=r,t}var fe=Object.freeze({happy:r=>r!=null,sad:r=>r==null,boolean:r=>typeof r=="boolean",number:r=>typeof r=="number",string:r=>typeof r=="string",bigint:r=>typeof r=="bigint",object:r=>typeof r=="object"&&r!==null,array:r=>Array.isArray(r),fn:r=>typeof r=="function",symbol:r=>typeof r=="symbol"});var to=(r,e)=>{function t(o,s,n){if(!fe.object(o)||!fe.object(s))return o===s;if(n.includes(o))throw new Error("forbidden circularity detected in deep equal comparison");let i=[...n,o];if(o instanceof Map&&s instanceof Map){if(o.size!==s.size)return!1;for(let[l,a]of o)if(!s.has(l)||!t(a,s.get(l),i))return!1}else if(o instanceof Set&&s instanceof Set){if(o.size!==s.size)return!1;for(let l of o)if(!Array.from(s).some(a=>t(l,a,i)))return!1}else{let l=Object.keys(o),a=Object.keys(s);if(l.length!==a.length)return!1;for(let c of l)if(!a.includes(c)||!t(o[c],s[c],i))return!1}return!0}return t(r,e,[])};function ro(r){function e(t,o){if(!fe.object(t)||o.includes(t))return t;let s=[...o,t];if(t instanceof Map)for(let n of t.entries())for(let i of n)e(i,s);else if(t instanceof Set)for(let n of t)e(n,s);else if(Array.isArray(t))for(let n of t)e(n,s);else for(let n of Object.values(t))e(n,s);return Object.freeze(t)}return e(r,[])}function Zt(r){if(r.ok)return r.value;let{error:e}=r;throw e instanceof Error?e:typeof e=="string"?new Error(e):new Error("unknown")}function Jt(r){if(r.ok)throw new Error("didn't get needed error");return r.error}function Yt(r,e,t){if(r.has(e))return r.get(e);{let o=t();return r.set(e,o),o}}var He=class{#e=new Set;#t=[];#r=new WeakMap;#s=0;#o=new Set;read(e){this.#t.at(-1)?.add(e)}write(e){let t=this.#r.get(e);if(t){for(let o of t)this.#o.add(o);this.#s===0&&this.#n()}}observe(e){let t=new Set;this.#t.push(t);try{let o=e();return{seen:t,value:o}}finally{this.#t.pop()}}subscribe(e,t){let o=Yt(this.#r,e,()=>new Set);return o.add(t),()=>{o.delete(t),o.size===0&&this.#r.delete(e)}}batch=e=>{this.#s++;try{return e()}finally{this.#s--,this.#s===0&&this.#n()}};#i(e){if(this.#e.has(e))throw new Error("circularity forbidden");this.#e.add(e);try{e()}finally{this.#e.delete(e)}}#n(){for(;this.#o.size>0;){let e=[...this.#o];this.#o.clear();for(let t of e)this.#i(t)}}};var b=globalThis[Symbol.for("e280.tracker.2")]??=new He;function h(r){return function e(){return arguments.length===0?(b.read(e),r):(r=arguments[0],b.write(e),r)}}var wn=b.batch;function er(r){return B.freeze(B.clone(r))}var T=Symbol("optic");var de=class{calculate;#e=!1;#t;constructor(e){this.calculate=e,this.#t=e()}get(){return this.#e&&(this.#e=!1,this.#t=this.calculate()),this.#t}invalidate(){this.#e=!0}};var Le=class r{[T];#e;#t;#r;constructor(e){this[T]=e,this.#e=B.clone(e.getState()),this.#t=new de(()=>B.clone(e.getState())),this.#r=new de(()=>er(e.getState()))}update(){let e=this[T].getState();!B.equal(e,this.#e)&&(this.#t.invalidate(),this.#r.invalidate(),this.#e=B.clone(e),b.write(this))}get state(){return b.read(this),this.#t.get()}get frozen(){return b.read(this),this.#r.get()}mutate(e){return this[T].mutate(e)}lens(e){let t=new r({getState:()=>e(this[T].getState()),mutate:o=>this[T].mutate(s=>o(e(s))),registerLens:this[T].registerLens});return this[T].registerLens(t),t}};function tr(r){if(!r.done)throw new Error("wait not done");return Zt(r)}function rr(r){if(!r.done)throw new Error("wait not done");return Jt(r)}var or=r=>!r.done;var sr=r=>r.done&&r.ok;function nr(r,e){let{pending:t=()=>{},ok:o=()=>{},err:s=()=>{}}=e;return or(r)?t():sr(r)?o(tr(r)):s(rr(r))}function no(r){return!!(r.dataTransfer&&r.dataTransfer.types.includes("Files"))}function io(r){return r.dataTransfer?Array.from(r.dataTransfer.files):[]}function he(r){let e=r.currentTarget,t=r.relatedTarget;return!e||!t||!e.contains(t)}var yt=class{params;$draggy=h(void 0);$droppy=h(void 0);constructor(e){this.params=e}get dragging(){return this.$draggy()}get hovering(){return this.$droppy()}dragzone=e=>({draggable:"true",dragstart:t=>{this.$draggy(e())},dragend:t=>{this.$draggy(void 0),this.$droppy(void 0)}});dropzone=e=>({dragenter:t=>{},dragover:t=>{t.preventDefault(),this.$draggy()?this.$droppy(e()):this.params.backchannelDrops?.dragover(t)},dragleave:t=>{he(t)&&this.$droppy(void 0),this.params.backchannelDrops?.dragleave(t)},drop:t=>{t.preventDefault();let{acceptDrop:o}=this.params,s=this.$draggy(),n=this.$droppy();try{s&&n?o(t,s,n):this.params.backchannelDrops?.drop(t)}finally{this.$draggy(void 0),this.$droppy(void 0)}}})};var bt=class{params;$indicator=h(!1);constructor(e){this.params=e}dragover=e=>{e.preventDefault(),this.$indicator(this.params.predicate(e))};dragleave=e=>{he(e)&&this.$indicator(!1)};drop=e=>{e.preventDefault(),this.$indicator(!1),this.params.predicate(e)&&this.params.acceptDrop(e)}};function me(){let r,e,t=new Promise((s,n)=>{r=s,e=n});function o(s){return s.then(r).catch(e),t}return{promise:t,resolve:r,reject:e,entangle:o}}function Re(r){let e=null;return((...t)=>(e?e.params=t:(e={params:t,deferred:me()},queueMicrotask(()=>{let{params:o,deferred:s}=e;e=null,Promise.resolve(r(...o)).then(s.resolve).catch(s.reject)})),e.deferred.promise))}function ir(r,e,t){if(r.has(e))return r.get(e);{let o=t();return r.set(e,o),o}}function ar(r){let e,t=!1,o=()=>{t=!0,clearTimeout(e)},s=async()=>{t||(await r(o),!t&&(e=setTimeout(s,0)))};return s(),o}var cr=(r=0)=>new Promise(e=>setTimeout(e,r));var qe=d`
|
|
1
|
+
var Lr=Object.defineProperty;var yt=(r,e)=>{for(var t in e)Lr(r,t,{get:e[t],enumerable:!0})};var xe=globalThis,ye=xe.ShadowRoot&&(xe.ShadyCSS===void 0||xe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nt=Symbol(),wt=new WeakMap,oe=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==nt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(ye&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=wt.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&wt.set(t,e))}return e}toString(){return this.cssText}},$t=r=>new oe(typeof r=="string"?r:r+"",void 0,nt),h=(r,...e)=>{let t=r.length===1?r[0]:e.reduce(((o,s,n)=>o+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+r[n+1]),r[0]);return new oe(t,r,nt)},we=(r,e)=>{if(ye)r.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(let t of e){let o=document.createElement("style"),s=xe.litNonce;s!==void 0&&o.setAttribute("nonce",s),o.textContent=t.cssText,r.appendChild(o)}},Y=ye?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return $t(t)})(r):r;var{is:Rr,defineProperty:qr,getOwnPropertyDescriptor:Dr,getOwnPropertyNames:Nr,getOwnPropertySymbols:Hr,getPrototypeOf:jr}=Object,$e=globalThis,At=$e.trustedTypes,Ur=At?At.emptyScript:"",Fr=$e.reactiveElementPolyfillSupport,se=(r,e)=>r,it={toAttribute(r,e){switch(e){case Boolean:r=r?Ur:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},St=(r,e)=>!Rr(r,e),_t={attribute:!0,type:String,converter:it,reflect:!1,useDefault:!1,hasChanged:St};Symbol.metadata??=Symbol("metadata"),$e.litPropertyMetadata??=new WeakMap;var q=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=_t){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),s=this.getPropertyDescriptor(e,o,t);s!==void 0&&qr(this.prototype,e,s)}}static getPropertyDescriptor(e,t,o){let{get:s,set:n}=Dr(this.prototype,e)??{get(){return this[t]},set(a){this[t]=a}};return{get:s,set(a){let u=s?.call(this);n?.call(this,a),this.requestUpdate(e,u,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??_t}static _$Ei(){if(this.hasOwnProperty(se("elementProperties")))return;let e=jr(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(se("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(se("properties"))){let t=this.properties,o=[...Nr(t),...Hr(t)];for(let s of o)this.createProperty(s,t[s])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,s]of t)this.elementProperties.set(o,s)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let s=this._$Eu(t,o);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let s of o)t.unshift(Y(s))}else e!==void 0&&t.push(Y(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return we(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$ET(e,t){let o=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,o);if(s!==void 0&&o.reflect===!0){let n=(o.converter?.toAttribute!==void 0?o.converter:it).toAttribute(t,o.type);this._$Em=e,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(e,t){let o=this.constructor,s=o._$Eh.get(e);if(s!==void 0&&this._$Em!==s){let n=o.getPropertyOptions(s),a=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:it;this._$Em=s,this[s]=a.fromAttribute(t,n.type)??this._$Ej?.get(s)??null,this._$Em=null}}requestUpdate(e,t,o){if(e!==void 0){let s=this.constructor,n=this[e];if(o??=s.getPropertyOptions(e),!((o.hasChanged??St)(n,t)||o.useDefault&&o.reflect&&n===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,o))))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:o,reflect:s,wrapped:n},a){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),n!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(t=void 0),this._$AL.set(e,t)),s===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,n]of this._$Ep)this[s]=n;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[s,n]of o){let{wrapped:a}=n,u=this[s];a!==!0||this._$AL.has(s)||u===void 0||this.C(s,void 0,n,u)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((o=>o.hostUpdate?.())),this.update(t)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};q.elementStyles=[],q.shadowRootOptions={mode:"open"},q[se("elementProperties")]=new Map,q[se("finalized")]=new Map,Fr?.({ReactiveElement:q}),($e.reactiveElementVersions??=[]).push("2.1.0");var ct=globalThis,Ae=ct.trustedTypes,Et=Ae?Ae.createPolicy("lit-html",{createHTML:r=>r}):void 0,lt="$lit$",D=`lit$${Math.random().toFixed(9).slice(2)}$`,ut="?"+D,Ir=`<${ut}>`,B=document,ie=()=>B.createComment(""),ae=r=>r===null||typeof r!="object"&&typeof r!="function",pt=Array.isArray,Ot=r=>pt(r)||typeof r?.[Symbol.iterator]=="function",at=`[
|
|
2
|
+
\f\r]`,ne=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,kt=/-->/g,Ct=/>/g,F=RegExp(`>|${at}(?:([^\\s"'>=/]+)(${at}*=${at}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Tt=/'/g,Pt=/"/g,Mt=/^(?:script|style|textarea|title)$/i,dt=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),p=dt(1),Eo=dt(2),ko=dt(3),G=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),zt=new WeakMap,I=B.createTreeWalker(B,129);function Lt(r,e){if(!pt(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Et!==void 0?Et.createHTML(e):e}var Rt=(r,e)=>{let t=r.length-1,o=[],s,n=e===2?"<svg>":e===3?"<math>":"",a=ne;for(let u=0;u<t;u++){let i=r[u],c,l,d=-1,E=0;for(;E<i.length&&(a.lastIndex=E,l=a.exec(i),l!==null);)E=a.lastIndex,a===ne?l[1]==="!--"?a=kt:l[1]!==void 0?a=Ct:l[2]!==void 0?(Mt.test(l[2])&&(s=RegExp("</"+l[2],"g")),a=F):l[3]!==void 0&&(a=F):a===F?l[0]===">"?(a=s??ne,d=-1):l[1]===void 0?d=-2:(d=a.lastIndex-l[2].length,c=l[1],a=l[3]===void 0?F:l[3]==='"'?Pt:Tt):a===Pt||a===Tt?a=F:a===kt||a===Ct?a=ne:(a=F,s=void 0);let H=a===F&&r[u+1].startsWith("/>")?" ":"";n+=a===ne?i+Ir:d>=0?(o.push(c),i.slice(0,d)+lt+i.slice(d)+D+H):i+D+(d===-2?u:H)}return[Lt(r,n+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},ce=class r{constructor({strings:e,_$litType$:t},o){let s;this.parts=[];let n=0,a=0,u=e.length-1,i=this.parts,[c,l]=Rt(e,t);if(this.el=r.createElement(c,o),I.currentNode=this.el.content,t===2||t===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=I.nextNode())!==null&&i.length<u;){if(s.nodeType===1){if(s.hasAttributes())for(let d of s.getAttributeNames())if(d.endsWith(lt)){let E=l[a++],H=s.getAttribute(d).split(D),be=/([.?@])?(.*)/.exec(E);i.push({type:1,index:n,name:be[2],strings:H,ctor:be[1]==="."?Se:be[1]==="?"?Ee:be[1]==="@"?ke:V}),s.removeAttribute(d)}else d.startsWith(D)&&(i.push({type:6,index:n}),s.removeAttribute(d));if(Mt.test(s.tagName)){let d=s.textContent.split(D),E=d.length-1;if(E>0){s.textContent=Ae?Ae.emptyScript:"";for(let H=0;H<E;H++)s.append(d[H],ie()),I.nextNode(),i.push({type:2,index:++n});s.append(d[E],ie())}}}else if(s.nodeType===8)if(s.data===ut)i.push({type:2,index:n});else{let d=-1;for(;(d=s.data.indexOf(D,d+1))!==-1;)i.push({type:7,index:n}),d+=D.length-1}n++}}static createElement(e,t){let o=B.createElement("template");return o.innerHTML=e,o}};function W(r,e,t=r,o){if(e===G)return e;let s=o!==void 0?t._$Co?.[o]:t._$Cl,n=ae(e)?void 0:e._$litDirective$;return s?.constructor!==n&&(s?._$AO?.(!1),n===void 0?s=void 0:(s=new n(r),s._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=s:t._$Cl=s),s!==void 0&&(e=W(r,s._$AS(r,e.values),s,o)),e}var _e=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,s=(e?.creationScope??B).importNode(t,!0);I.currentNode=s;let n=I.nextNode(),a=0,u=0,i=o[0];for(;i!==void 0;){if(a===i.index){let c;i.type===2?c=new X(n,n.nextSibling,this,e):i.type===1?c=new i.ctor(n,i.name,i.strings,this,e):i.type===6&&(c=new Ce(n,this,e)),this._$AV.push(c),i=o[++u]}a!==i?.index&&(n=I.nextNode(),a++)}return I.currentNode=B,s}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},X=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,s){this.type=2,this._$AH=g,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=W(this,e,t),ae(e)?e===g||e==null||e===""?(this._$AH!==g&&this._$AR(),this._$AH=g):e!==this._$AH&&e!==G&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ot(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==g&&ae(this._$AH)?this._$AA.nextSibling.data=e:this.T(B.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:o}=e,s=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=ce.createElement(Lt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===s)this._$AH.p(t);else{let n=new _e(s,this),a=n.u(this.options);n.p(t),this.T(a),this._$AH=n}}_$AC(e){let t=zt.get(e.strings);return t===void 0&&zt.set(e.strings,t=new ce(e)),t}k(e){pt(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,s=0;for(let n of e)s===t.length?t.push(o=new r(this.O(ie()),this.O(ie()),this,this.options)):o=t[s],o._$AI(n),s++;s<t.length&&(this._$AR(o&&o._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},V=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,s,n){this.type=1,this._$AH=g,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=g}_$AI(e,t=this,o,s){let n=this.strings,a=!1;if(n===void 0)e=W(this,e,t,0),a=!ae(e)||e!==this._$AH&&e!==G,a&&(this._$AH=e);else{let u=e,i,c;for(e=n[0],i=0;i<n.length-1;i++)c=W(this,u[o+i],t,i),c===G&&(c=this._$AH[i]),a||=!ae(c)||c!==this._$AH[i],c===g?e=g:e!==g&&(e+=(c??"")+n[i+1]),this._$AH[i]=c}a&&!s&&this.j(e)}j(e){e===g?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Se=class extends V{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===g?void 0:e}},Ee=class extends V{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==g)}},ke=class extends V{constructor(e,t,o,s,n){super(e,t,o,s,n),this.type=5}_$AI(e,t=this){if((e=W(this,e,t,0)??g)===G)return;let o=this._$AH,s=e===g&&o!==g||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==g&&(o===g||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Ce=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){W(this,e)}},qt={M:lt,P:D,A:ut,C:1,L:Rt,R:_e,D:Ot,V:W,I:X,H:V,N:Ee,U:ke,B:Se,F:Ce},Br=ct.litHtmlPolyfillSupport;Br?.(ce,X),(ct.litHtmlVersions??=[]).push("3.3.0");var v=(r,e,t)=>{let o=t?.renderBefore??e,s=o._$litPart$;if(s===void 0){let n=t?.renderBefore??null;o._$litPart$=s=new X(e.insertBefore(ie(),n),n,void 0,t??{})}return s._$AI(r),s};var ht=globalThis,ee=class extends q{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=v(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return G}};ee._$litElement$=!0,ee.finalized=!0,ht.litElementHydrateSupport?.({LitElement:ee});var Gr=ht.litElementPolyfillSupport;Gr?.({LitElement:ee});(ht.litElementVersions??=[]).push("4.2.0");var T={string:(r,e)=>r.getAttribute(e)??void 0,number:(r,e)=>{let t=r.getAttribute(e);return t===null||!t?void 0:Number(t)},boolean:(r,e)=>r.getAttribute(e)!==null},y={string:(r,e,t)=>(t===void 0?r.removeAttribute(e):r.setAttribute(e,t),!0),number:(r,e,t)=>(t===void 0?r.removeAttribute(e):r.setAttribute(e,t.toString()),!0),boolean:(r,e,t)=>(t?r.setAttribute(e,""):r.removeAttribute(e),!0),any:(r,e,t)=>{t==null?r.removeAttribute(e):typeof t=="string"?r.setAttribute(e,t):typeof t=="number"?r.setAttribute(e,t.toString()):typeof t=="boolean"?t===!0?r.setAttribute(e,""):r.removeAttribute(e):console.warn(`invalid attribute "${e}" type is "${typeof t}"`)},entries:(r,e)=>{for(let[t,o]of e)y.any(r,t,o)},record:(r,e)=>y.entries(r,Object.entries(e))};function Dt(r,e={}){let t=document.createElement(r);return y.record(t,e),t}function Nt(r){let e=document.createDocumentFragment();return v(r,e),e.firstElementChild}function Te(r,e){let t=[];for(let[o,s]of Object.entries(e))if(typeof s=="function")r.addEventListener(o,s),t.push(()=>r.removeEventListener(o,s));else{let[n,a]=s;r.addEventListener(o,a,n),t.push(()=>r.removeEventListener(o,a))}return()=>t.forEach(o=>o())}function Ht(r,e){let t=new MutationObserver(e);return t.observe(r,{attributes:!0}),()=>t.disconnect()}var Pe=class{element;constructor(e){this.element=e}strings=new Proxy({},{get:(e,t)=>T.string(this.element,t),set:(e,t,o)=>y.string(this.element,t,o)});numbers=new Proxy({},{get:(e,t)=>T.number(this.element,t),set:(e,t,o)=>y.number(this.element,t,o)});booleans=new Proxy({},{get:(e,t)=>T.boolean(this.element,t),set:(e,t,o)=>y.boolean(this.element,t,o)})};var jt=(r,e,t={})=>new Proxy(e,{get:(o,s)=>{switch(e[s]){case String:return T.string(r,s);case Number:return T.number(r,s);case Boolean:return T.boolean(r,s);default:throw new Error(`invalid attribute type for "${s}"`)}},set:(o,s,n)=>{try{switch(t.beforeSet?.(s),e[s]){case String:return y.string(r,s,n);case Number:return y.number(r,s,n);case Boolean:return y.boolean(r,s,n);default:throw new Error(`invalid attribute type for "${s}"`)}}finally{t.afterSet?.(s)}}});function te(r){let e=new Pe(r);return{strings:e.strings,numbers:e.numbers,booleans:e.booleans,on:t=>Ht(r,t),spec:(t,o={})=>jt(r,t,o)}}te.get=T;te.set=y;function Ut(r){return new ft(r)}var ft=class{tagName;#e=new Map;#t=[];constructor(e){this.tagName=e}attr(e,t=!0){return this.#e.set(e,t),this}attrs(e){for(let[t,o]of Object.entries(e))this.attr(t,o);return this}children(...e){return this.#t.push(...e),this}done(){let e=document.createElement(this.tagName);return y.entries(e,this.#e),e.append(...this.#t),e}};function re(r,e=document){let t=e.querySelector(r);if(!t)throw new Error(`element not found (${r})`);return t}function ze(r,e=document){return e.querySelector(r)}function Oe(r,e=document){return Array.from(e.querySelectorAll(r))}var Me=class r{element;#e;constructor(e){this.element=e}in(e){return new r(typeof e=="string"?re(e,this.element):e)}require(e){return re(e,this.element)}maybe(e){return ze(e,this.element)}all(e){return Oe(e,this.element)}render(...e){return v(e,this.element)}get attrs(){return this.#e??=te(this.element)}events(e){return Te(this.element,e)}};function Ft(r){return r.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function It(r,e={}){let{soft:t=!1,upgrade:o=!0}=e;for(let[s,n]of Object.entries(r)){let a=Ft(s),u=customElements.get(a);t&&u||(customElements.define(a,n),o&&document.querySelectorAll(a).forEach(i=>{i.constructor===HTMLElement&&customElements.upgrade(i)}))}}function w(r,e=document){return re(r,e)}w.in=(r,e=document)=>new Me(e).in(r);w.need=re;w.maybe=ze;w.all=Oe;w.el=Dt;w.elmer=Ut;w.mk=Nt;w.events=Te;w.attrs=te;w.register=It;w.render=(r,...e)=>v(e,r);var qe={};yt(qe,{DragAndDrops:()=>mt,Drops:()=>gt,files:()=>Jr,hasFiles:()=>Zr,outsideCurrentTarget:()=>de});var P={};yt(P,{clone:()=>le,equal:()=>Wr,freeze:()=>Vr});function le(r,e=new Set){if(e.has(r))throw new Error("cannot clone circular reference");let t;return typeof r=="function"||r!==null&&typeof r=="object"?(e.add(r),Array.isArray(r)?t=r.map(o=>le(o,new Set(e))):r.constructor===Object?t=Object.fromEntries(Object.entries(r).map(([o,s])=>[o,le(s,new Set(e))])):r instanceof Map?t=new Map(Array.from(r,([o,s])=>[o,le(s,new Set(e))])):r instanceof Set?t=new Set(Array.from(r,o=>le(o,new Set(e)))):r instanceof Date?t=new Date(r.getTime()):t=r,e.delete(r)):t=r,t}var ue=Object.freeze({happy:r=>r!=null,sad:r=>r==null,boolean:r=>typeof r=="boolean",number:r=>typeof r=="number",string:r=>typeof r=="string",bigint:r=>typeof r=="bigint",object:r=>typeof r=="object"&&r!==null,array:r=>Array.isArray(r),fn:r=>typeof r=="function",symbol:r=>typeof r=="symbol"});var Wr=(r,e)=>{function t(o,s,n){if(!ue.object(o)||!ue.object(s))return o===s;if(n.includes(o))throw new Error("forbidden circularity detected in deep equal comparison");let a=[...n,o];if(o instanceof Map&&s instanceof Map){if(o.size!==s.size)return!1;for(let[u,i]of o)if(!s.has(u)||!t(i,s.get(u),a))return!1}else if(o instanceof Set&&s instanceof Set){if(o.size!==s.size)return!1;for(let u of o)if(!Array.from(s).some(i=>t(u,i,a)))return!1}else{let u=Object.keys(o),i=Object.keys(s);if(u.length!==i.length)return!1;for(let c of u)if(!i.includes(c)||!t(o[c],s[c],a))return!1}return!0}return t(r,e,[])};function Vr(r){function e(t,o){if(!ue.object(t)||o.includes(t))return t;let s=[...o,t];if(t instanceof Map)for(let n of t.entries())for(let a of n)e(a,s);else if(t instanceof Set)for(let n of t)e(n,s);else if(Array.isArray(t))for(let n of t)e(n,s);else for(let n of Object.values(t))e(n,s);return Object.freeze(t)}return e(r,[])}function Bt(r){if(r.ok)return r.value;let{error:e}=r;throw e instanceof Error?e:typeof e=="string"?new Error(e):new Error("unknown")}function Gt(r){if(r.ok)throw new Error("didn't get needed error");return r.error}function Wt(r,e,t){if(r.has(e))return r.get(e);{let o=t();return r.set(e,o),o}}var Le=class{#e=new Set;#t=[];#r=new WeakMap;#s=0;#o=new Set;read(e){this.#t.at(-1)?.add(e)}write(e){let t=this.#r.get(e);if(t){for(let o of t)this.#o.add(o);this.#s===0&&this.#n()}}observe(e){let t=new Set;this.#t.push(t);try{let o=e();return{seen:t,value:o}}finally{this.#t.pop()}}subscribe(e,t){let o=Wt(this.#r,e,()=>new Set);return o.add(t),()=>{o.delete(t),o.size===0&&this.#r.delete(e)}}batch=e=>{this.#s++;try{return e()}finally{this.#s--,this.#s===0&&this.#n()}};#i(e){if(this.#e.has(e))throw new Error("circularity forbidden");this.#e.add(e);try{e()}finally{this.#e.delete(e)}}#n(){for(;this.#o.size>0;){let e=[...this.#o];this.#o.clear();for(let t of e)this.#i(t)}}};var b=globalThis[Symbol.for("e280.tracker.2")]??=new Le;function f(r){return function e(){return arguments.length===0?(b.read(e),r):(r=arguments[0],b.write(e),r)}}var pn=b.batch;function Qt(r){return P.freeze(P.clone(r))}var z=Symbol("optic");var pe=class{calculate;#e=!1;#t;constructor(e){this.calculate=e,this.#t=e()}get(){return this.#e&&(this.#e=!1,this.#t=this.calculate()),this.#t}invalidate(){this.#e=!0}};var Re=class r{[z];#e;#t;#r;constructor(e){this[z]=e,this.#e=P.clone(e.getState()),this.#t=new pe(()=>P.clone(e.getState())),this.#r=new pe(()=>Qt(e.getState()))}update(){let e=this[z].getState();!P.equal(e,this.#e)&&(this.#t.invalidate(),this.#r.invalidate(),this.#e=P.clone(e),b.write(this))}get state(){return b.read(this),this.#t.get()}get frozen(){return b.read(this),this.#r.get()}mutate(e){return this[z].mutate(e)}lens(e){let t=new r({getState:()=>e(this[z].getState()),mutate:o=>this[z].mutate(s=>o(e(s))),registerLens:this[z].registerLens});return this[z].registerLens(t),t}};function Kt(r){if(!r.done)throw new Error("wait not done");return Bt(r)}function Zt(r){if(!r.done)throw new Error("wait not done");return Gt(r)}var Jt=r=>!r.done;var Yt=r=>r.done&&r.ok;function Xt(r,e){let{pending:t=()=>{},ok:o=()=>{},err:s=()=>{}}=e;return Jt(r)?t():Yt(r)?o(Kt(r)):s(Zt(r))}function Zr(r){return!!(r.dataTransfer&&r.dataTransfer.types.includes("Files"))}function Jr(r){return r.dataTransfer?Array.from(r.dataTransfer.files):[]}function de(r){let e=r.currentTarget,t=r.relatedTarget;return!e||!t||!e.contains(t)}var mt=class{params;$draggy=f(void 0);$droppy=f(void 0);constructor(e){this.params=e}get dragging(){return this.$draggy()}get hovering(){return this.$droppy()}dragzone=e=>({draggable:"true",dragstart:t=>{this.$draggy(e())},dragend:t=>{this.$draggy(void 0),this.$droppy(void 0)}});dropzone=e=>({dragenter:t=>{},dragover:t=>{t.preventDefault(),this.$draggy()?this.$droppy(e()):this.params.backchannelDrops?.dragover(t)},dragleave:t=>{de(t)&&this.$droppy(void 0),this.params.backchannelDrops?.dragleave(t)},drop:t=>{t.preventDefault();let{acceptDrop:o}=this.params,s=this.$draggy(),n=this.$droppy();try{s&&n?o(t,s,n):this.params.backchannelDrops?.drop(t)}finally{this.$draggy(void 0),this.$droppy(void 0)}}})};var gt=class{params;$indicator=f(!1);constructor(e){this.params=e}dragover=e=>{e.preventDefault(),this.$indicator(this.params.predicate(e))};dragleave=e=>{de(e)&&this.$indicator(!1)};drop=e=>{e.preventDefault(),this.$indicator(!1),this.params.predicate(e)&&this.params.acceptDrop(e)}};function he(){let r,e,t=new Promise((s,n)=>{r=s,e=n});function o(s){return s.then(r).catch(e),t}return{promise:t,resolve:r,reject:e,entangle:o}}function De(r){let e=null;return((...t)=>(e?e.params=t:(e={params:t,deferred:he()},queueMicrotask(()=>{let{params:o,deferred:s}=e;e=null,Promise.resolve(r(...o)).then(s.resolve).catch(s.reject)})),e.deferred.promise))}function er(r,e,t){if(r.has(e))return r.get(e);{let o=t();return r.set(e,o),o}}function tr(r){let e,t=!1,o=()=>{t=!0,clearTimeout(e)},s=async()=>{t||(await r(o),!t&&(e=setTimeout(s,0)))};return s(),o}var rr=(r=0)=>new Promise(e=>setTimeout(e,r));var Ne=h`
|
|
4
4
|
* {
|
|
5
5
|
margin: 0;
|
|
6
6
|
padding: 0;
|
|
@@ -14,18 +14,18 @@ var Ir=Object.defineProperty;var Et=(r,e)=>{for(var t in e)Ir(r,t,{get:e[t],enum
|
|
|
14
14
|
::-webkit-scrollbar-track { background: transparent; }
|
|
15
15
|
::-webkit-scrollbar-thumb { background: #888; border-radius: 1em; }
|
|
16
16
|
::-webkit-scrollbar-thumb:hover { background: #999; }
|
|
17
|
-
`;var
|
|
17
|
+
`;var He=class r extends HTMLElement{static register(){w.register({SlyShadow:r},{soft:!0})}connectedCallback(){this.hasAttribute("view")||this.setAttribute("view","")}};var je=class{render;count=0;rendered=he();constructor(e){this.render=e}doneRender(){this.count++,this.rendered.resolve(),this.rendered=he()}},j=class extends je{host;shadow;constructor(e,t,o){super(e),this.host=t,this.shadow=o}};var vt=class{#e=[];get scope(){let e=this.#e.at(-1);if(!e)throw new Error("hooks must be called within a render fn");return e}increment(){let e=this.scope,t=e.position++;return{scope:e,position:t}}wrap(e,t){e.position=0,this.#e.push(e);try{return t()}finally{this.#e.pop()}}},C=globalThis[Symbol.for("e280.hooks")]??=new vt;var Q=class{#e=[];clear(){this.#e.forEach(e=>e()),this.#e=[]}observe(e,t){let{seen:o,value:s}=b.observe(e);this.clear();for(let n of o){let a=b.subscribe(n,t);this.#e.push(a)}return s}};function k(r){let{scope:e,position:t}=C.increment();return er(e.values,t,r)}function N(r){let{scope:e}=C.increment();return k(()=>e.mounts.mount(r))}var Ue=class{#e=[];#t=[];mount(e){this.#e.push(e),this.#t.push(e())}unmountAll(){for(let e of this.#t)e();this.#t=[]}remountAll(){for(let e of this.#e)this.#t.push(e())}};var K=class{cx;position=0;values=new Map;mounts=new Ue;constructor(e){this.cx=e}};var{I:za}=qt;var or=r=>r.strings===void 0;var sr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ie=r=>(...e)=>({_$litDirective$:r,values:e}),Fe=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var fe=(r,e)=>{let t=r._$AN;if(t===void 0)return!1;for(let o of t)o._$AO?.(e,!1),fe(o,e);return!0},Be=r=>{let e,t;do{if((e=r._$AM)===void 0)break;t=e._$AN,t.delete(r),r=e}while(t?.size===0)},nr=r=>{for(let e;e=r._$AM;r=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(r))break;t.add(r),ro(e)}};function eo(r){this._$AN!==void 0?(Be(this),this._$AM=r,nr(this)):this._$AM=r}function to(r,e=!1,t=0){let o=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(e)if(Array.isArray(o))for(let n=t;n<o.length;n++)fe(o[n],!1),Be(o[n]);else o!=null&&(fe(o,!1),Be(o));else fe(this,r)}var ro=r=>{r.type==sr.CHILD&&(r._$AP??=to,r._$AQ??=eo)},me=class extends Fe{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,o){super._$AT(e,t,o),nr(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(fe(this,e),Be(this))}setValue(e){if(or(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};function _(r){return class extends HTMLElement{#e;#t;#r=new Q;#s=this.attachShadow({mode:"open"});constructor(){super();let e=De(()=>{if(!this.isConnected)return;let t=this.#o();v(t,this.#e.shadow),this.#e.doneRender()});this.#e=new j(e,this,this.#s),this.#t=new K(this.#e)}#o(){return this.#r.observe(()=>C.wrap(this.#t,()=>r()),this.#e.render)}render(){v(this.#o(),this.#e.shadow),this.#e.doneRender()}connectedCallback(){this.#t.mounts.remountAll(),this.#e.render()}disconnectedCallback(){this.#t.mounts.unmountAll(),this.#r.clear()}}}function Ge(r){return k(()=>new bt(r))}var bt=class{current;constructor(e){this.current=e}};function ir(){let{scope:r}=C.increment();return r.cx}function ar(){let r=ir();if(!(r instanceof j))throw new Error("this hook only works on shadow views (but was called in a light view)");return r}function Z(){return ir().render}function x(){return ar().host}function cr(){return ar().shadow}function lr(r,e){we(r,oo(e))}function oo(r){let e=[];if(Array.isArray(r)){let t=new Set(r.flat(1/0).reverse());for(let o of t)e.unshift(Y(o))}else r!==void 0&&e.push(Y(r));return e}function so(...r){let e=cr();k(()=>lr(e,r))}var m=so;function We(r=""){let e=x();k(()=>e.setAttribute("view",r))}function ur(r){return k(()=>f(r))}function pr(r){let e=Z(),t=Ge(r),o=s=>{let n=typeof s=="function"?s(t.current):s;Object.is(n,t.current)||(t.current=n,e())};return[t.current,o]}function dr(r,e){for(let[t,o]of Object.entries(e))no(r,t,o)}function no(r,e,t){let o=r.getAttribute(e),s=io(t);s!==o&&(s===null?r.removeAttribute(e):r.setAttribute(e,s))}function io(r){return typeof r=="string"?r:typeof r=="number"?r.toString():r?"":null}function ao(){He.register();let r=document.createElement("sly-shadow"),e=r.attachShadow({mode:"open"});return{host:r,shadow:e}}function J(r){return hr(ao,r)}J.setup=r=>(e=>hr(r,e));function hr(r,e){let t=Ie(class extends me{#e;#t;#r;#s=new Q;constructor(s){super(s);let{host:n,shadow:a}=r(),u=De(()=>{if(!this.#r)throw new Error("cannot render before props");if(!this.isConnected)return;let i=this.#o(this.#r);v(i,this.#e.shadow),this.#e.doneRender()});this.#e=new j(u,n,a),this.#t=new K(this.#e)}#o(s){return this.#r=s,this.#s.observe(()=>C.wrap(this.#t,()=>e(...this.#r)),this.#e.render)}render({props:s,children:n,attrs:a}){let{host:u}=this.#e;return this.isConnected&&(a&&dr(u,a),v(n,this.#e.host),v(this.#o(s),this.#e.shadow),this.#e.doneRender()),u}disconnected(){v(null,this.#e.shadow),v(null,this.#e.host),this.#t.mounts.unmountAll(),this.#s.clear()}reconnected(){this.#t.mounts.remountAll(),this.#e.render()}});function o(...s){return t({props:s})}return o.with=t,o}function O(r,e){return()=>co({hz:r,frames:e})}var co=J(({hz:r,frames:e})=>{We("loading"),m(Ne,lo);let t=ur(0);return N(()=>tr(async()=>{await rr(1e3/r);let o=t()+1;t(o>=e.length?0:o)})),e.at(t())}),lo=h`
|
|
18
18
|
:host {
|
|
19
19
|
font-family: monospace;
|
|
20
20
|
white-space: pre;
|
|
21
21
|
user-select: none;
|
|
22
22
|
}
|
|
23
|
-
`;var
|
|
23
|
+
`;var M=J(r=>(We("error"),m(Ne,uo),typeof r=="string"?r:r instanceof Error?p`<strong>${r.name}:</strong> <span>${r.message}</span>`:"error")),uo=h`
|
|
24
24
|
:host {
|
|
25
25
|
font-family: monospace;
|
|
26
26
|
color: red;
|
|
27
27
|
}
|
|
28
|
-
`;function O(r,e){return(t,o)=>nr(t,{pending:r,err:e,ok:o})}var Fl=O(z(10,[" "," ",". ",".. ","..."," .."," ."]),P);var Kl=O(z(3,["\u{1F30E}","\u{1F30F}","\u{1F30D}"]),P);var eu=O(z(10,["\u{1F312}","\u{1F313}","\u{1F314}","\u{1F315}","\u{1F316}","\u{1F317}","\u{1F318}","\u{1F311}","\u{1F311}","\u{1F311}"]),P);var nu=O(z(16,["|","/","-","\\"]),P);var uu=O(z(20,[":....",":....","::...",".::..","..::.","...::","....:","....:","...::","..::.",".::..","::..."]),P);var M=Object.freeze({eq(r,e){if(r.length!==e.length)return!1;for(let t=0;t<=r.length;t++)if(r.at(t)!==e.at(t))return!1;return!0},random(r){return crypto.getRandomValues(new Uint8Array(r))}});var q=Object.freeze({fromBytes(r){return[...r].map(e=>e.toString(16).padStart(2,"0")).join("")},toBytes(r){if(r.length%2!==0)throw new Error("must have even number of hex characters");let e=new Uint8Array(r.length/2);for(let t=0;t<r.length;t+=2)e[t/2]=parseInt(r.slice(t,t+2),16);return e},random(r=32){return this.fromBytes(M.random(r))},string(r){return q.fromBytes(r)},bytes(r){return q.toBytes(r)}});var wt=58,Ke="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",$t=Object.freeze({fromBytes(r){let e=BigInt("0x"+q.fromBytes(r)),t="";for(;e>0;){let o=e%BigInt(wt);e=e/BigInt(wt),t=Ke[Number(o)]+t}for(let o of r)if(o===0)t=Ke[0]+t;else break;return t},toBytes(r){let e=BigInt(0);for(let i of r){let l=Ke.indexOf(i);if(l===-1)throw new Error(`Invalid character '${i}' in base58 string`);e=e*BigInt(wt)+BigInt(l)}let t=e.toString(16);t.length%2!==0&&(t="0"+t);let o=q.toBytes(t),s=0;for(let i of r)if(i===Ke[0])s++;else break;let n=new Uint8Array(s+o.length);return n.set(o,s),n},random(r=32){return this.fromBytes(M.random(r))},string(r){return $t.fromBytes(r)},bytes(r){return $t.toBytes(r)}});var vr=class{lexicon;static lexicons=Object.freeze({base2:{characters:"01"},hex:{characters:"0123456789abcdef"},base36:{characters:"0123456789abcdefghijklmnopqrstuvwxyz"},base58:{characters:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"},base62:{characters:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"},base64url:{negativePrefix:"~",characters:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},base64:{characters:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",padding:{character:"=",size:4}}});lookup;negativePrefix;constructor(e){this.lexicon=e,this.lookup=Object.fromEntries([...e.characters].map((t,o)=>[t,o])),this.negativePrefix=e.negativePrefix??"-"}toBytes(e){let t=Math.log2(this.lexicon.characters.length);if(Number.isInteger(t)){let l=0,a=0,c=[];for(let u of e){if(u===this.lexicon.padding?.character)continue;let f=this.lookup[u];if(f===void 0)throw new Error(`Invalid character: ${u}`);for(l=l<<t|f,a+=t;a>=8;)a-=8,c.push(l>>a&255)}return new Uint8Array(c)}let o=0n,s=BigInt(this.lexicon.characters.length),n=!1;e.startsWith(this.negativePrefix)&&(e=e.slice(this.negativePrefix.length),n=!0);for(let l of e){let a=this.lookup[l];if(a===void 0)throw new Error(`Invalid character: ${l}`);o=o*s+BigInt(a)}let i=[];for(;o>0n;)i.unshift(Number(o%256n)),o=o/256n;return new Uint8Array(i)}fromBytes(e){let t=Math.log2(this.lexicon.characters.length);if(Number.isInteger(t)){let i=0,l=0,a="";for(let c of e)for(i=i<<8|c,l+=8;l>=t;){l-=t;let u=i>>l&(1<<t)-1;a+=this.lexicon.characters[u]}if(l>0){let c=i<<t-l&(1<<t)-1;a+=this.lexicon.characters[c]}if(this.lexicon.padding)for(;a.length%this.lexicon.padding.size!==0;)a+=this.lexicon.padding.character;return a}let o=0n;for(let i of e)o=(o<<8n)+BigInt(i);if(o===0n)return this.lexicon.characters[0];let s=BigInt(this.lexicon.characters.length),n="";for(;o>0n;)n=this.lexicon.characters[Number(o%s)]+n,o=o/s;return n}toInteger(e){if(!e)return 0;let t=0n,o=!1,s=BigInt(this.lexicon.characters.length);e.startsWith(this.negativePrefix)&&(e=e.slice(this.negativePrefix.length),o=!0);for(let n of e){let i=this.lookup[n];if(i===void 0)throw new Error(`Invalid character: ${n}`);t=t*s+BigInt(i)}return Number(o?-t:t)}fromInteger(e){e=Math.floor(e);let t=e<0,o=BigInt(t?-e:e);if(o===0n)return this.lexicon.characters[0];let s=BigInt(this.lexicon.characters.length),n="";for(;o>0n;)n=this.lexicon.characters[Number(o%s)]+n,o=o/s;return t?`${this.negativePrefix}${n}`:n}random(e=32){return this.fromBytes(M.random(e))}};var At=Object.freeze({fromBytes(r){return typeof btoa=="function"?btoa(String.fromCharCode(...r)):Buffer.from(r).toString("base64")},toBytes(r){return typeof atob=="function"?Uint8Array.from(atob(r),e=>e.charCodeAt(0)):Uint8Array.from(Buffer.from(r,"base64"))},random(r=32){return this.fromBytes(M.random(r))},string(r){return At.fromBytes(r)},bytes(r){return At.toBytes(r)}});var wr=Object.freeze({fromBytes(r){return new TextDecoder().decode(r)},toBytes(r){return new TextEncoder().encode(r)},string(r){return wr.fromBytes(r)},bytes(r){return wr.toBytes(r)}});var St=Object.freeze({set:r=>r!=null,unset:r=>r==null,boolean:r=>typeof r=="boolean",number:r=>typeof r=="number",string:r=>typeof r=="string",bigint:r=>typeof r=="bigint",object:r=>typeof r=="object"&&r!==null,array:r=>Array.isArray(r),fn:r=>typeof r=="function",symbol:r=>typeof r=="symbol"});function $r(){let r,e,t=new Promise((s,n)=>{r=s,e=n});function o(s){return s.then(r).catch(e),t}return{promise:t,resolve:r,reject:e,entangle:o}}var A=class r extends Map{static require(e,t){let o=e.get(t);if(o===void 0)throw new Error(`required key not found: "${t}"`);return o}static guarantee(e,t,o){let s=e.get(t);return s===void 0&&(s=o(),e.set(t,s)),s}array(){return[...this]}require(e){return r.require(this,e)}guarantee(e,t){return r.guarantee(this,e,t)}};function wo(r){return{map:e=>Ar(r,e),filter:e=>Sr(r,e)}}wo.pipe=Object.freeze({map:r=>(e=>Ar(e,r)),filter:r=>(e=>Sr(e,r))});var Ar=(r,e)=>Object.fromEntries(Object.entries(r).map(([t,o])=>[t,e(o,t)])),Sr=(r,e)=>Object.fromEntries(Object.entries(r).filter(([t,o])=>e(o,t)));function $o(){let r=new Set;function e(n){return r.add(n),()=>{r.delete(n)}}async function t(...n){await Promise.all([...r].map(i=>i(...n)))}async function o(){let{promise:n,resolve:i}=$r(),l=e((...a)=>{i(a),l()});return n}function s(){r.clear()}return e.pub=t,e.sub=e,e.on=e,e.once=o,e.clear=s,t.pub=t,t.sub=e,t.on=e,t.once=o,t.clear=s,[t,e]}function j(r){let e=$o()[1];return r&&e.sub(r),e}var Ze=class{#e=new A;setGroup(e,t){return this.#e.set(e,t),t}getGroup(e){return this.#e.require(e)}};var Je=new Ze;var Ye=class{group;#e=new Ne.DragAndDrops({acceptDrop:(e,t,o)=>this.group.move(t,o)});constructor(e){this.group=e}#t=h(void 0);get grabbed(){return this.#e.dragging}get hovering(){return this.#e.hovering??this.#t()}dragenter=(e,t)=>{e.preventDefault(),this.#e.dropzone(()=>t).dragenter(e),this.#t(t)};dragleave=e=>{let t=this.hovering;t&&this.#e.dropzone(()=>t).dragleave(e),this.#t(void 0)};dragstart=(e,t)=>{e.stopPropagation(),this.#e.dragzone(()=>t).dragstart(e)};dragover=(e,t)=>{e.preventDefault(),this.#e.dropzone(()=>t).dragover(e)};dragend=e=>{this.#e.$draggy(void 0),this.#e.$droppy(void 0),this.#t(void 0)};drop=(e,t)=>{e.preventDefault();let o=Array.from(e.dataTransfer?.files||[]);o.length&&this.group.upload(o,t);let s=this.grabbed?.id===this.hovering?.id,n=this.grabbed?.children.some(l=>this.hovering?.id===l.id),i=this.grabbed?.parent?.id===this.hovering?.id;!s&&!n&&!i&&this.#e.dropzone(()=>t).drop(e),this.#t(void 0)};change=(e,t)=>{let o=e.currentTarget,s=Array.from(o.files??[]);s.length&&this.group.upload(s,t)}};var Xe=class{signal=h([]);constructor(e){this.signal([e])}setTrail(e,t){if(e.target!==e.currentTarget)return;let o=[],s=t.kind==="folder"?t:t.parent;for(;s;)o.unshift(s),s=s.parent;this.signal(o)}get currentFolder(){return this.signal().at(-1)?.children??[]}};var et=class{config;trail;dropzone=new Ye(this);searchText=h("");selectedFilter=h("");selectedSort=h("");on={newFolder:j(),move:j(),delete:j(),rename:j(),upload:j(),search:j(),refresh:j()};constructor(e){this.config=e,this.selectedFilter(e.defaultFilter),this.selectedSort(e.defaultSort),this.trail=new Xe(e.root)}get permissions(){return this.config.permissions}getFilterFn(e){return this.config.filters.get(e)??(()=>!0)}getSearchFn(e){let t=e.trim().toLowerCase().split(/\s+/);return o=>this.config.search(t,o)}getSortFn(e){return this.config.sorts?.get(e)??(()=>0)}sort(e){let t=this.getSortFn(this.selectedSort());return[...e].sort(t)}matches(e){let t=this.getFilterFn(this.selectedFilter()),o=this.getSearchFn(this.searchText());return t(e)&&o(e)}move(e,t){if(!this.permissions(e).move)throw new Error("move permission not granted");e.detach(),t.attach(e),this.on.move.pub({item:e,target:t})}delete(e){if(!this.permissions(e).delete)throw new Error("delete permission not granted");let t=[...e.crawl()].map(([o])=>o);return e.destroy(),this.on.delete.pub({items:t})}rename(e,t){if(!this.permissions(e).rename)throw new Error("rename permission not granted");this.on.rename.pub({item:e,newName:t})}upload(e,t){if(!this.permissions(t).upload)throw new Error("upload permission not granted");return this.on.upload.pub({files:e,target:t}).then(()=>this.on.refresh.pub({}))}addFolder(e){if(!this.permissions(e).newFolder)throw new Error("add folder permission not granted");this.on.newFolder.pub({parent:e})}components=()=>this.components};var be;(function(r){r.rename="rename",r.move="move",r.delete="delete",r.refresh="refresh",r.newFolder="newFolder",r.search="search",r.upload="upload"})(be||(be={}));var Ao=Object.values(be);function _t(r,e={}){let t={};for(let o of Ao)t[o]=o in e?e[o]:r;return t}var _r={all:_t(!0),readOnly:_t(!1,{[be.refresh]:!0,[be.search]:!0}),none:_t(!1)};var tt=class{taxonomy;onChange=j();#e=new A;constructor(e){this.taxonomy=e}getSpecimen(e){return this.#e.require(e)}setSpecimen(e,t,o){this.#e.set(e,[t,o]),this.onChange.pub()}query(e){let[t,o]=this.getSpecimen(e),s=this.taxonomy.taxon(t);return{kind:t,taxon:s,specimen:o}}};var rt=class{#e=new A;constructor(e){for(let[t,o]of Object.entries(e))this.#e.set(t,o)}taxon(e){return this.#e.require(e)}};var ot=class{#e=new A;#t=new A;has(e){return this.#e.has(e)}getChildren(e){return this.#e.require(e)}getParent(e){return this.#t.get(e)}establishRoot(e){this.#e.set(e,new Set)}attach(e,...t){let o=this.getChildren(e);for(let s of t){if(this.getParent(s))throw new Error("child already has parent");o.add(s),this.#t.set(s,e),this.#e.set(s,new Set)}}detach(e){if(!this.has(e))return;let t=this.getParent(e);t&&(this.getChildren(t).delete(e),this.#t.delete(e))}destroy(e){this.detach(e);let t=[...this.crawl(e)];for(let[o]of t)this.#e.delete(o),this.#t.delete(o)}*crawl(e,t=()=>!0){let o=[[e,[]]],s=new Set;for(;o.length;){let[n,i]=o.shift();if(!(s.has(n)||!t(n,i))){s.add(n),yield[n,i];for(let l of this.getChildren(n))o.push([l,[...i,n]])}}}};var st=class{codex;id;signal=h(this);constructor(e,t){this.codex=e,this.id=t}get kind(){return this.codex.clade.query(this.id).kind}isKind(e){return e===this.kind}get taxon(){return this.codex.clade.query(this.id).taxon}get specimen(){return this.codex.clade.query(this.id).specimen}get parent(){let e=this.codex.hierarchy.getParent(this.id);return e?this.codex.require(e):void 0}get children(){return[...this.codex.hierarchy.getChildren(this.id)].map(e=>this.codex.require(e))}attach(...e){return this.codex.hierarchy.attach(this.id,...e.map(t=>t.id)),this.signal(this),this}detach(){this.codex.hierarchy.detach(this.id),this.signal(this)}create(e,t){let o=this.codex.create(e,t);return this.attach(o),o}destroy(){this.codex.hierarchy.destroy(this.id),this.signal(this)}*crawl(e=()=>!0){let t=this.codex.hierarchy.crawl(this.id,(o,s)=>e(this.codex.require(o),s.map(n=>this.codex.require(n))));for(let[o,s]of t)yield[this.codex.require(o),s.map(n=>this.codex.require(n))]}};function Er(){return q.random()}var nt=class{clade;hierarchy;static setup(e){let t=new rt(e),o=new tt(t),s=new ot;return new this(o,s)}#e=new A;constructor(e,t){this.clade=e,this.hierarchy=t}create(e,t){let o=Er();this.clade.setSpecimen(o,e,t);let s=new st(this,o);return this.#e.set(o,s),s.signal()}root(e){return this.hierarchy.establishRoot(e.id),e.signal()}require(e){return this.#e.require(e).signal()}};var it=class r extends et{static config=()=>{let e=new A().set("audio",p`<sl-icon name=music-note-beamed></sl-icon>`).set("video",p`<sl-icon name=film></sl-icon>`).set("image",p`<sl-icon name=image></sl-icon>`).set("other",p`<sl-icon name=file-earmark></sl-icon>`),t=new Map().set("all",()=>!0).set("video",a=>a.isKind("folder")||a.isKind("file")&&a.specimen.format==="video").set("audio",a=>a.isKind("folder")||a.isKind("file")&&a.specimen.format==="audio"),o=new Map().set("label",(a,c)=>a.specimen.label.localeCompare(c.specimen.label)).set("format",(a,c)=>a.isKind("file")&&c.isKind("file")?a.specimen.format.localeCompare(c.specimen.format):a.isKind("file")?-1:c.isKind("file")?1:0),s=(a,c)=>{let u=a.join(" ").trim().toLowerCase();return u===""?!0:c.kind==="folder"?c.children.some(f=>s(a,f)):c.specimen.label.toLowerCase().includes(u)},n=nt.setup({folder:{icon:p`<sl-icon name="folder"></sl-icon>`},file:{icon:p`<sl-icon name="file"></sl-icon>`}}),i=n.root(n.create("folder",{label:"project"})),l=(a,c)=>a.isKind("file")?e.require(a.specimen.format):c?p`<sl-icon name="folder2-open"></sl-icon>`:a.taxon.icon;return{codex:n,root:i,sorts:o,filters:t,defaultFilter:"all",defaultSort:"label",search:(a,c)=>a.some(u=>c.kind.includes(u)||c.id.includes(u)||c.specimen.label.includes(u))||s(a,c),renderIcon:l,renderLabel:a=>a.specimen.label,renderPreview:a=>a.isKind("file")&&a.specimen.previewUrl?p`<img src=${a.specimen.previewUrl}>`:l(a,!1),permissions:a=>_r.all}};constructor(){super(r.config())}};var $=d`@layer theme, view; @layer theme {
|
|
28
|
+
`;function L(r,e){return(t,o)=>Xt(t,{pending:r,err:e,ok:o})}var Ll=L(O(10,[" "," ",". ",".. ","..."," .."," ."]),M);var Hl=L(O(3,["\u{1F30E}","\u{1F30F}","\u{1F30D}"]),M);var Bl=L(O(10,["\u{1F312}","\u{1F313}","\u{1F314}","\u{1F315}","\u{1F316}","\u{1F317}","\u{1F318}","\u{1F311}","\u{1F311}","\u{1F311}"]),M);var Kl=L(O(16,["|","/","-","\\"]),M);var eu=L(O(20,[":....",":....","::...",".::..","..::.","...::","....:","....:","...::","..::.",".::..","::..."]),M);var fr=Object.freeze({eq(r,e){if(r.length!==e.length)return!1;for(let t=0;t<=r.length;t++)if(r.at(t)!==e.at(t))return!1;return!0},random(r){return crypto.getRandomValues(new Uint8Array(r))}});var Ve=Object.freeze({fromBytes(r){return[...r].map(e=>e.toString(16).padStart(2,"0")).join("")},toBytes(r){if(r.length%2!==0)throw new Error("must have even number of hex characters");let e=new Uint8Array(r.length/2);for(let t=0;t<r.length;t+=2)e[t/2]=parseInt(r.slice(t,t+2),16);return e},random(r=32){return this.fromBytes(fr.random(r))},string(r){return Ve.fromBytes(r)},bytes(r){return Ve.toBytes(r)}});function mr(){let r,e,t=new Promise((s,n)=>{r=s,e=n});function o(s){return s.then(r).catch(e),t}return{promise:t,resolve:r,reject:e,entangle:o}}var A=class r extends Map{static require(e,t){if(e.has(t))return e.get(t);throw new Error(`required key not found: "${t}"`)}static guarantee(e,t,o){if(e.has(t))return e.get(t);{let s=o();return e.set(t,s),s}}array(){return[...this]}require(e){return r.require(this,e)}guarantee(e,t){return r.guarantee(this,e,t)}};function po(){let r=new Set;async function e(...i){await Promise.all([...r].map(c=>c(...i)))}function t(i){return r.add(i),()=>{r.delete(i)}}async function o(...i){return e(...i)}function s(i){return t(i)}async function n(i){let{promise:c,resolve:l}=mr(),d=s(async(...E)=>{i&&await i(...E),l(E),d()});return c}function a(){r.clear()}let u={pub:o,sub:s,publish:e,subscribe:t,on:t,next:n,clear:a};return Object.assign(s,u),Object.assign(o,u),u}function R(r){let e=po();return r&&e.sub(r),e.sub}var Qe=class{#e=new A;setGroup(e,t){return this.#e.set(e,t),t}getGroup(e){return this.#e.require(e)}};var Ke=new Qe;var Ze=class{group;#e=new qe.DragAndDrops({acceptDrop:(e,t,o)=>this.group.move(t,o)});constructor(e){this.group=e}#t=f(void 0);get grabbed(){return this.#e.dragging}get hovering(){return this.#e.hovering??this.#t()}dragenter=(e,t)=>{e.preventDefault(),this.#e.dropzone(()=>t).dragenter(e),this.#t(t)};dragleave=e=>{let t=this.hovering;t&&this.#e.dropzone(()=>t).dragleave(e),this.#t(void 0)};dragstart=(e,t)=>{e.stopPropagation(),this.#e.dragzone(()=>t).dragstart(e)};dragover=(e,t)=>{e.preventDefault(),this.#e.dropzone(()=>t).dragover(e)};dragend=e=>{this.#e.$draggy(void 0),this.#e.$droppy(void 0),this.#t(void 0)};drop=(e,t)=>{e.preventDefault();let o=Array.from(e.dataTransfer?.files||[]);o.length&&this.group.upload(o,t);let s=this.grabbed?.id===this.hovering?.id,n=this.grabbed?.children.some(u=>this.hovering?.id===u.id),a=this.grabbed?.parent?.id===this.hovering?.id;!s&&!n&&!a&&this.#e.dropzone(()=>t).drop(e),this.#t(void 0)};change=(e,t)=>{let o=e.currentTarget,s=Array.from(o.files??[]);s.length&&this.group.upload(s,t)}};var Je=class{signal=f([]);constructor(e){this.signal([e])}setTrail(e,t){if(e.target!==e.currentTarget)return;let o=[],s=t.kind==="folder"?t:t.parent;for(;s;)o.unshift(s),s=s.parent;this.signal(o)}get currentFolder(){return this.signal().at(-1)?.children??[]}};var Ye=class{config;trail;dropzone=new Ze(this);searchText=f("");selectedFilter=f("");selectedSort=f("");on={newFolder:R(),move:R(),delete:R(),rename:R(),upload:R(),search:R(),refresh:R()};constructor(e){this.config=e,this.selectedFilter(e.defaultFilter),this.selectedSort(e.defaultSort),this.trail=new Je(e.root)}get permissions(){return this.config.permissions}getFilterFn(e){return this.config.filters.get(e)??(()=>!0)}getSearchFn(e){let t=e.trim().toLowerCase().split(/\s+/);return o=>this.config.search(t,o)}getSortFn(e){return this.config.sorts?.get(e)??(()=>0)}sort(e){let t=this.getSortFn(this.selectedSort());return[...e].sort(t)}matches(e){let t=this.getFilterFn(this.selectedFilter()),o=this.getSearchFn(this.searchText());return t(e)&&o(e)}move(e,t){if(!this.permissions(e).move)throw new Error("move permission not granted");e.detach(),t.attach(e),this.on.move.pub({item:e,target:t})}delete(e){if(!this.permissions(e).delete)throw new Error("delete permission not granted");let t=[...e.crawl()].map(([o])=>o);return e.destroy(),this.on.delete.pub({items:t})}rename(e,t){if(!this.permissions(e).rename)throw new Error("rename permission not granted");this.on.rename.pub({item:e,newName:t})}upload(e,t){if(!this.permissions(t).upload)throw new Error("upload permission not granted");return this.on.upload.pub({files:e,target:t}).then(()=>this.on.refresh.pub({}))}addFolder(e){if(!this.permissions(e).newFolder)throw new Error("add folder permission not granted");this.on.newFolder.pub({parent:e})}components=()=>this.components};var ge;(function(r){r.rename="rename",r.move="move",r.delete="delete",r.refresh="refresh",r.newFolder="newFolder",r.search="search",r.upload="upload"})(ge||(ge={}));var ho=Object.values(ge);function xt(r,e={}){let t={};for(let o of ho)t[o]=o in e?e[o]:r;return t}var gr={all:xt(!0),readOnly:xt(!1,{[ge.refresh]:!0,[ge.search]:!0}),none:xt(!1)};var Xe=class{taxonomy;onChange=R();#e=new A;constructor(e){this.taxonomy=e}getSpecimen(e){return this.#e.require(e)}setSpecimen(e,t,o){this.#e.set(e,[t,o]),this.onChange.pub()}query(e){let[t,o]=this.getSpecimen(e),s=this.taxonomy.taxon(t);return{kind:t,taxon:s,specimen:o}}};var et=class{#e=new A;constructor(e){for(let[t,o]of Object.entries(e))this.#e.set(t,o)}taxon(e){return this.#e.require(e)}};var tt=class{#e=new A;#t=new A;has(e){return this.#e.has(e)}getChildren(e){return this.#e.require(e)}getParent(e){return this.#t.get(e)}establishRoot(e){this.#e.set(e,new Set)}attach(e,...t){let o=this.getChildren(e);for(let s of t){if(this.getParent(s))throw new Error("child already has parent");o.add(s),this.#t.set(s,e),this.#e.set(s,new Set)}}detach(e){if(!this.has(e))return;let t=this.getParent(e);t&&(this.getChildren(t).delete(e),this.#t.delete(e))}destroy(e){this.detach(e);let t=[...this.crawl(e)];for(let[o]of t)this.#e.delete(o),this.#t.delete(o)}*crawl(e,t=()=>!0){let o=[[e,[]]],s=new Set;for(;o.length;){let[n,a]=o.shift();if(!(s.has(n)||!t(n,a))){s.add(n),yield[n,a];for(let u of this.getChildren(n))o.push([u,[...a,n]])}}}};var rt=class{codex;id;signal=f(this);constructor(e,t){this.codex=e,this.id=t}get kind(){return this.codex.clade.query(this.id).kind}isKind(e){return e===this.kind}get taxon(){return this.codex.clade.query(this.id).taxon}get specimen(){return this.codex.clade.query(this.id).specimen}get parent(){let e=this.codex.hierarchy.getParent(this.id);return e?this.codex.require(e):void 0}get children(){return[...this.codex.hierarchy.getChildren(this.id)].map(e=>this.codex.require(e))}attach(...e){return this.codex.hierarchy.attach(this.id,...e.map(t=>t.id)),this.signal(this),this}detach(){this.codex.hierarchy.detach(this.id),this.signal(this)}create(e,t){let o=this.codex.create(e,t);return this.attach(o),o}destroy(){this.codex.hierarchy.destroy(this.id),this.signal(this)}*crawl(e=()=>!0){let t=this.codex.hierarchy.crawl(this.id,(o,s)=>e(this.codex.require(o),s.map(n=>this.codex.require(n))));for(let[o,s]of t)yield[this.codex.require(o),s.map(n=>this.codex.require(n))]}};function vr(){return Ve.random()}var ot=class{clade;hierarchy;static setup(e){let t=new et(e),o=new Xe(t),s=new tt;return new this(o,s)}#e=new A;constructor(e,t){this.clade=e,this.hierarchy=t}create(e,t){let o=vr();this.clade.setSpecimen(o,e,t);let s=new rt(this,o);return this.#e.set(o,s),s.signal()}root(e){return this.hierarchy.establishRoot(e.id),e.signal()}require(e){return this.#e.require(e).signal()}};var st=class r extends Ye{static config=()=>{let e=new A().set("audio",p`<sl-icon name=music-note-beamed></sl-icon>`).set("video",p`<sl-icon name=film></sl-icon>`).set("image",p`<sl-icon name=image></sl-icon>`).set("other",p`<sl-icon name=file-earmark></sl-icon>`),t=new Map().set("all",()=>!0).set("video",i=>i.isKind("folder")||i.isKind("file")&&i.specimen.format==="video").set("audio",i=>i.isKind("folder")||i.isKind("file")&&i.specimen.format==="audio"),o=new Map().set("label",(i,c)=>i.specimen.label.localeCompare(c.specimen.label)).set("format",(i,c)=>i.isKind("file")&&c.isKind("file")?i.specimen.format.localeCompare(c.specimen.format):i.isKind("file")?-1:c.isKind("file")?1:0),s=(i,c)=>{let l=i.join(" ").trim().toLowerCase();return l===""?!0:c.kind==="folder"?c.children.some(d=>s(i,d)):c.specimen.label.toLowerCase().includes(l)},n=ot.setup({folder:{icon:p`<sl-icon name="folder"></sl-icon>`},file:{icon:p`<sl-icon name="file"></sl-icon>`}}),a=n.root(n.create("folder",{label:"project"})),u=(i,c)=>i.isKind("file")?e.require(i.specimen.format):c?p`<sl-icon name="folder2-open"></sl-icon>`:i.taxon.icon;return{codex:n,root:a,sorts:o,filters:t,defaultFilter:"all",defaultSort:"label",search:(i,c)=>i.some(l=>c.kind.includes(l)||c.id.includes(l)||c.specimen.label.includes(l))||s(i,c),renderIcon:u,renderLabel:i=>i.specimen.label,renderPreview:i=>i.isKind("file")&&i.specimen.previewUrl?p`<img src=${i.specimen.previewUrl}>`:u(i,!1),permissions:i=>gr.all}};constructor(){super(r.config())}};var $=h`@layer theme, view; @layer theme {
|
|
29
29
|
|
|
30
30
|
:host {
|
|
31
31
|
--surface: var(--quay-surface, #0f0f11);
|
|
@@ -97,7 +97,7 @@ sl-input:focus-within::part(base) {
|
|
|
97
97
|
color: var(--text);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
}`;function
|
|
100
|
+
}`;function br(r){for(let e=r;e;e=e.parentElement){let t=e.getAttribute("group");if(t)return t}return"default"}function S(r){let e=br(r);return Ke.getGroup(e)}var xr=_(()=>{let r=x(),e=S(r);return m($,h`
|
|
101
101
|
sl-button sl-icon {
|
|
102
102
|
font-size: var(--font-size-sm);
|
|
103
103
|
}
|
|
@@ -128,7 +128,7 @@ sl-input:focus-within::part(base) {
|
|
|
128
128
|
`)}
|
|
129
129
|
</sl-menu>
|
|
130
130
|
</sl-dropdown>
|
|
131
|
-
</div>`});var
|
|
131
|
+
</div>`});var yr=_(()=>{let r=x(),e=S(r);return m($,h`
|
|
132
132
|
sl-menu {
|
|
133
133
|
margin-top: var(--space-xs);
|
|
134
134
|
|
|
@@ -155,7 +155,7 @@ sl-input:focus-within::part(base) {
|
|
|
155
155
|
`)}
|
|
156
156
|
</sl-menu>
|
|
157
157
|
</sl-dropdown>
|
|
158
|
-
</div>`});var
|
|
158
|
+
</div>`});var wr=h`
|
|
159
159
|
|
|
160
160
|
.toolbar {
|
|
161
161
|
display: flex;
|
|
@@ -270,16 +270,16 @@ sl-tooltip {
|
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
-
`;var
|
|
273
|
+
`;var $r=_(()=>{m($,wr);let r=x(),e=Z(),t=S(r),{trail:o,config:s}=t,[n,a]=pr("tiles");N(()=>{let l=t.on.refresh.sub(()=>e());return()=>l()});let u=()=>t.sort(o.currentFolder).filter(l=>t.matches(l));return p`
|
|
274
274
|
<div class="toolbar">
|
|
275
275
|
<sl-button-group label="View mode">
|
|
276
276
|
<sl-tooltip content="Tiles">
|
|
277
|
-
<sl-button size="small" outline data-active=${n==="tiles"} @click=${()=>
|
|
277
|
+
<sl-button size="small" outline data-active=${n==="tiles"} @click=${()=>a("tiles")}>
|
|
278
278
|
<sl-icon name="grid-3x3-gap"></sl-icon>
|
|
279
279
|
</sl-button>
|
|
280
280
|
</sl-tooltip>
|
|
281
281
|
<sl-tooltip content="Details">
|
|
282
|
-
<sl-button size="small" outline data-active=${n==="details"} @click=${()=>
|
|
282
|
+
<sl-button size="small" outline data-active=${n==="details"} @click=${()=>a("details")}>
|
|
283
283
|
<sl-icon name="list"></sl-icon>
|
|
284
284
|
</sl-button>
|
|
285
285
|
</sl-tooltip>
|
|
@@ -288,31 +288,31 @@ sl-tooltip {
|
|
|
288
288
|
|
|
289
289
|
${n==="details"?p`
|
|
290
290
|
<div class="details">
|
|
291
|
-
${
|
|
292
|
-
<div @click=${
|
|
293
|
-
${s.renderIcon(
|
|
291
|
+
${u().map(l=>p`
|
|
292
|
+
<div @click=${d=>o.setTrail(d,l)} class="card">
|
|
293
|
+
${s.renderIcon(l,!1)}
|
|
294
294
|
<div class=meta>
|
|
295
|
-
<div class=name>${s.renderLabel(
|
|
296
|
-
<div class=type>${
|
|
295
|
+
<div class=name>${s.renderLabel(l)}</div>
|
|
296
|
+
<div class=type>${l.kind}</div>
|
|
297
297
|
</div>
|
|
298
298
|
</div>
|
|
299
299
|
`)}
|
|
300
300
|
</div>
|
|
301
301
|
`:p`
|
|
302
302
|
<div class="tiles">
|
|
303
|
-
${
|
|
304
|
-
<div class="item" @click="${
|
|
303
|
+
${u().map(l=>p`
|
|
304
|
+
<div class="item" @click="${d=>o.setTrail(d,l)}">
|
|
305
305
|
<div class="media-icon">
|
|
306
|
-
${s.renderPreview(
|
|
306
|
+
${s.renderPreview(l)??s.renderIcon(l,!1)}
|
|
307
307
|
</div>
|
|
308
|
-
<div class="label" title="${s.renderLabel(
|
|
309
|
-
${s.renderLabel(
|
|
308
|
+
<div class="label" title="${s.renderLabel(l)}">
|
|
309
|
+
${s.renderLabel(l)}
|
|
310
310
|
</div>
|
|
311
311
|
</div>
|
|
312
312
|
`)}
|
|
313
313
|
</div>
|
|
314
314
|
`}
|
|
315
|
-
`});var
|
|
315
|
+
`});var Ar=h`
|
|
316
316
|
|
|
317
317
|
.dropzone {
|
|
318
318
|
width: 100%;
|
|
@@ -362,7 +362,7 @@ sl-tooltip {
|
|
|
362
362
|
color: var(--text-muted);
|
|
363
363
|
}
|
|
364
364
|
|
|
365
|
-
`;var
|
|
365
|
+
`;var _r=_(()=>{m($,Ar);let r=x(),e=S(r),{dropzone:t,config:{root:o}}=e;return p`
|
|
366
366
|
<div class="dropzone" ?data-hovering=${t.hovering}>
|
|
367
367
|
<input
|
|
368
368
|
type="file"
|
|
@@ -378,7 +378,7 @@ sl-tooltip {
|
|
|
378
378
|
Drop files here
|
|
379
379
|
</div>
|
|
380
380
|
</div>
|
|
381
|
-
`});var
|
|
381
|
+
`});var Sr=h`
|
|
382
382
|
|
|
383
383
|
sl-tree-item::part(expand-button) {
|
|
384
384
|
rotate: none;
|
|
@@ -438,41 +438,41 @@ sl-tree-item[data-hover] {
|
|
|
438
438
|
background: var(--surface-selected);
|
|
439
439
|
}
|
|
440
440
|
|
|
441
|
-
`;var
|
|
441
|
+
`;var Er=J(r=>{m($,Sr);let e=Z(),{config:t}=r,{dropzone:o,trail:s,config:{root:n}}=r;N(()=>{let c=r.on.upload.sub(()=>e());return()=>c()});let a=c=>p`
|
|
442
442
|
<input
|
|
443
|
-
@dragenter=${
|
|
443
|
+
@dragenter=${l=>o.dragenter(l,c)}
|
|
444
444
|
@dragleave=${o.dragleave}
|
|
445
|
-
@dragover=${
|
|
446
|
-
@drop=${
|
|
447
|
-
@click=${
|
|
445
|
+
@dragover=${l=>o.dragover(l,c)}
|
|
446
|
+
@drop=${l=>o.drop(l,c)}
|
|
447
|
+
@click=${l=>l.preventDefault()}
|
|
448
448
|
id="file-import"
|
|
449
449
|
class="file-import folder-hover"
|
|
450
450
|
>
|
|
451
451
|
<span class="folder" slot="expand-icon">${t.renderIcon(c,!1)}</span>
|
|
452
452
|
<span class="folder" slot="collapse-icon">${t.renderIcon(c,!0)}</span>
|
|
453
453
|
${t.renderLabel(c)}
|
|
454
|
-
`,
|
|
454
|
+
`,u=c=>p`
|
|
455
455
|
${t.renderIcon(c,!1)}
|
|
456
456
|
${t.renderLabel(c)}
|
|
457
|
-
`,
|
|
457
|
+
`,i=c=>p`
|
|
458
458
|
<sl-tree-item
|
|
459
459
|
draggable="true"
|
|
460
|
-
@dragstart=${
|
|
460
|
+
@dragstart=${l=>o.dragstart(l,c)}
|
|
461
461
|
@dragend=${o.dragend}
|
|
462
|
-
@click=${
|
|
462
|
+
@click=${l=>s.setTrail(l,c)}
|
|
463
463
|
data-type=${c.kind}
|
|
464
464
|
?data-hover=${o.hovering?.id===c.id}
|
|
465
465
|
>
|
|
466
|
-
${c.kind==="folder"?
|
|
467
|
-
${r.sort(c.children).map(
|
|
466
|
+
${c.kind==="folder"?a(c):u(c)}
|
|
467
|
+
${r.sort(c.children).map(l=>r.matches(l)?i(l):null)}
|
|
468
468
|
</sl-tree-item>
|
|
469
469
|
`;return p`
|
|
470
470
|
<sl-tree selection=leaf>
|
|
471
|
-
${
|
|
472
|
-
</sl-tree>`});var
|
|
471
|
+
${i(n)}
|
|
472
|
+
</sl-tree>`});var kr=_(()=>{m($);let r=x(),e=S(r);return p`
|
|
473
473
|
<div class="panel">
|
|
474
|
-
${
|
|
475
|
-
</div>`});var
|
|
474
|
+
${Er(e)}
|
|
475
|
+
</div>`});var fo=h`
|
|
476
476
|
sl-input::part(base) {
|
|
477
477
|
border-radius: var(--radius);
|
|
478
478
|
}
|
|
@@ -480,7 +480,7 @@ sl-tree-item[data-hover] {
|
|
|
480
480
|
sl-input::part(prefix) {
|
|
481
481
|
padding-left: var(--space-sm);
|
|
482
482
|
}
|
|
483
|
-
`,
|
|
483
|
+
`,Cr=_(()=>{m($,fo);let r=x(),e=S(r);return p`
|
|
484
484
|
<sl-input
|
|
485
485
|
size='small'
|
|
486
486
|
pill
|
|
@@ -490,7 +490,7 @@ sl-tree-item[data-hover] {
|
|
|
490
490
|
>
|
|
491
491
|
<sl-icon name='search' slot='prefix'></sl-icon>
|
|
492
492
|
</sl-input>
|
|
493
|
-
`});var
|
|
493
|
+
`});var Tr=_(()=>{m($);let r=S(x()),{trail:e,config:{codex:t,renderLabel:o}}=r,s=n=>a=>r.trail.setTrail(a,n);return p`
|
|
494
494
|
<sl-breadcrumb>
|
|
495
495
|
${e.signal().map(n=>p`
|
|
496
496
|
<sl-breadcrumb-item @click="${s(n)}">
|
|
@@ -498,6 +498,6 @@ sl-tree-item[data-hover] {
|
|
|
498
498
|
</sl-breadcrumb-item>
|
|
499
499
|
`)}
|
|
500
500
|
</sl-breadcrumb>
|
|
501
|
-
`});var
|
|
501
|
+
`});var Pr={QuayOutliner:kr,QuaySearchbar:Cr,QuayDropzone:_r,QuayBrowser:$r,QuayBreadcrumb:Tr,QuayFilter:yr,QuaySort:xr};function zr(){document.documentElement.className="sl-theme-dark"}var Or=Ke.setGroup("default",new st),{codex:U,root:mo}=Or.config,ve="/assets/preview.webp",go=U.create("file",{format:"video",label:"01\u2011introduction.mp4",previewUrl:ve}),vo=U.create("file",{format:"image",label:"cover.png",previewUrl:ve}),bo=U.create("file",{format:"audio",label:"click.wav",previewUrl:null}),Mr=U.create("folder",{label:"sprites"}),xo=U.create("file",{format:"image",label:"hero.png",previewUrl:ve}),yo=U.create("file",{format:"image",label:"enemy.png",previewUrl:ve});U.root(mo).attach(go).attach(vo).attach(bo).attach(Mr);Mr.attach(xo).attach(yo);Or.on.upload.sub(({files:r,target:e})=>{for(let t of r){let o=t.type.split("/")[0],s=U.create("file",{label:t.name,format:o,previewUrl:ve});e.attach(s)}});zr();w.register(Pr);
|
|
502
502
|
/*! For license information please see main.bundle.min.js.LEGAL.txt */
|
|
503
503
|
//# sourceMappingURL=main.bundle.min.js.map
|