@liip/liipgpt 3.4.1 → 3.4.2
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/chat/liipgpt-chat.iife.js +31 -31
- package/configurator/_app/env.js +1 -1
- package/configurator/_app/immutable/chunks/{DorsiQA9.js → BVWYCVQL.js} +26 -26
- package/configurator/_app/immutable/chunks/{B_3wCAsM.js → BXQ0Z8wW.js} +1 -1
- package/configurator/_app/immutable/chunks/{D-P6dqQf.js → CqmBCC3F.js} +1 -1
- package/configurator/_app/immutable/chunks/{DvaUWHif.js → D0zq2rZV.js} +1 -1
- package/configurator/_app/immutable/chunks/DGC7CooX.js +1 -0
- package/configurator/_app/immutable/chunks/{CRJbnnWi.js → DGqm4WKo.js} +1 -1
- package/configurator/_app/immutable/chunks/{CJpr6qk2.js → Do2M-_FB.js} +1 -1
- package/configurator/_app/immutable/chunks/g9pTgyF6.js +1 -0
- package/configurator/_app/immutable/chunks/{DPeXO3aA.js → w7MLzsSQ.js} +1 -1
- package/configurator/_app/immutable/entry/{app.B_XWKku_.js → app.ConDGFGi.js} +2 -2
- package/configurator/_app/immutable/entry/start.k8RQt7wE.js +1 -0
- package/configurator/_app/immutable/nodes/{0.B_XTb0XA.js → 0.Bgy3i8FQ.js} +1 -1
- package/configurator/_app/immutable/nodes/{1.DrYuOv_f.js → 1.WSWj9VWy.js} +1 -1
- package/configurator/_app/immutable/nodes/{2.KIpK6Gup.js → 2.DRCudqRI.js} +3 -3
- package/configurator/_app/immutable/nodes/{3.DLNSyQFh.js → 3.CMaEAJPV.js} +1 -1
- package/configurator/_app/version.json +1 -1
- package/configurator/index.html +6 -6
- package/configurator/sidebar.html +6 -6
- package/package.json +1 -1
- package/configurator/_app/immutable/chunks/3EFJgnry.js +0 -1
- package/configurator/_app/immutable/chunks/C7VUtzlA.js +0 -1
- package/configurator/_app/immutable/entry/start.Cu60dKF7.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../chunks/DsnmJJEf.js";import{p as ut,s as hn,r as mn}from"../chunks/hrZ0qwUL.js";import{B as jo,c as Kt,p as ar,s as Pe,e as be,t as Ie,F as lt,a as je,b as ir,d as Ke,m as dt,r as ge,E as Vo,g as st,k as We,C as gn,D as yo,f as xo,z as vn,ax as kn,ay as wn,o as $o,av as bn}from"../chunks/CfJtR48A.js";import{E as zo,H as Ao,s as Xe,J as Co,e as Ko,i as yn,K as xn,L as $n,o as zn,O as An,a as Cn,h as Sn,F as Tn}from"../chunks/
|
|
1
|
+
import"../chunks/DsnmJJEf.js";import{p as ut,s as hn,r as mn}from"../chunks/hrZ0qwUL.js";import{B as jo,c as Kt,p as ar,s as Pe,e as be,t as Ie,F as lt,a as je,b as ir,d as Ke,m as dt,r as ge,E as Vo,g as st,k as We,C as gn,D as yo,f as xo,z as vn,ax as kn,ay as wn,o as $o,av as bn}from"../chunks/CfJtR48A.js";import{E as zo,H as Ao,s as Xe,J as Co,e as Ko,i as yn,K as xn,L as $n,o as zn,O as An,a as Cn,h as Sn,F as Tn}from"../chunks/BVWYCVQL.js";import"../chunks/D0zq2rZV.js";import{b as jn,i as Tt}from"../chunks/Bg7q39r6.js";import{g as Vn}from"../chunks/g9pTgyF6.js";import{p as Kn}from"../chunks/DGC7CooX.js";var So={},To;function En(){return To||(To=1,(()=>{var L="4.2.1";function Y(e){let r=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&r.push(n+1);function o(n){let s=0,l=r.length;for(;l>0;){let c=(l|0)>>1,f=s+c;r[f]<=n?(s=f+1,l=l-c-1):l=c}s-=1;let d=n-r[s];return{line:s+1,column:d}}function t({line:n,column:s}){n-=1,n=Math.min(Math.max(n,0),r.length-1);let l=r[n],d=r[n+1]??l;return Math.min(Math.max(l+s,0),d)}return{find:o,findOffset:t}}var B=92,F=47,G=42,ye=34,q=39,re=58,le=59,Z=10,J=13,ce=32,P=9,ae=123,ie=125,ue=40,$e=41,ve=91,ze=93,Ee=45,ke=64,we=33,oe=class Eo extends Error{loc;constructor(r,o){if(o){let t=o[0],n=Y(t.code).find(o[1]);r=`${t.file}:${n.line}:${n.column+1}: ${r}`}super(r),this.name="CssSyntaxError",this.loc=o,Error.captureStackTrace&&Error.captureStackTrace(this,Eo)}};function Ae(e,r){let o=r?.from?{file:r.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let t=[],n=[],s=[],l=null,d=null,c="",f="",g=0,p;for(let v=0;v<e.length;v++){let k=e.charCodeAt(v);if(!(k===J&&(p=e.charCodeAt(v+1),p===Z)))if(k===B)c===""&&(g=v),c+=e.slice(v,v+2),v+=1;else if(k===F&&e.charCodeAt(v+1)===G){let m=v;for(let y=v+2;y<e.length;y++)if(p=e.charCodeAt(y),p===B)y+=1;else if(p===G&&e.charCodeAt(y+1)===F){v=y+1;break}let $=e.slice(m,v+1);if($.charCodeAt(2)===we){let y=kr($.slice(2,-2));n.push(y),o&&(y.src=[o,m,v+1],y.dst=[o,m,v+1])}}else if(k===q||k===ye){let m=Fe(e,v,k,o);c+=e.slice(v,m+1),v=m}else{if((k===ce||k===Z||k===P)&&(p=e.charCodeAt(v+1))&&(p===ce||p===Z||p===P||p===J&&(p=e.charCodeAt(v+2))&&p==Z))continue;if(k===Z){if(c.length===0)continue;p=c.charCodeAt(c.length-1),p!==ce&&p!==Z&&p!==P&&(c+=" ")}else if(k===Ee&&e.charCodeAt(v+1)===Ee&&c.length===0){let m="",$=v,y=-1;for(let C=v+2;C<e.length;C++)if(p=e.charCodeAt(C),p===B)C+=1;else if(p===q||p===ye)C=Fe(e,C,p,o);else if(p===F&&e.charCodeAt(C+1)===G){for(let x=C+2;x<e.length;x++)if(p=e.charCodeAt(x),p===B)x+=1;else if(p===G&&e.charCodeAt(x+1)===F){C=x+1;break}}else if(y===-1&&p===re)y=c.length+C-$;else if(p===le&&m.length===0){c+=e.slice($,C),v=C;break}else if(p===ue)m+=")";else if(p===ve)m+="]";else if(p===ae)m+="}";else if((p===ie||e.length-1===C)&&m.length===0){v=C-1,c+=e.slice($,C);break}else(p===$e||p===ze||p===ie)&&m.length>0&&e[C]===m[m.length-1]&&(m=m.slice(0,-1));let V=rt(c,y);if(!V)throw new oe("Invalid custom property, expected a value",o?[o,$,v]:null);o&&(V.src=[o,$,v],V.dst=[o,$,v]),l?l.nodes.push(V):t.push(V),c=""}else if(k===le&&c.charCodeAt(0)===ke)d=Ue(c),o&&(d.src=[o,g,v],d.dst=[o,g,v]),l?l.nodes.push(d):t.push(d),c="",d=null;else if(k===le&&f[f.length-1]!==")"){let m=rt(c);if(!m){if(c.length===0)continue;throw new oe(`Invalid declaration: \`${c.trim()}\``,o?[o,g,v]:null)}o&&(m.src=[o,g,v],m.dst=[o,g,v]),l?l.nodes.push(m):t.push(m),c=""}else if(k===ae&&f[f.length-1]!==")")f+="}",d=se(c.trim()),o&&(d.src=[o,g,v],d.dst=[o,g,v]),l&&l.nodes.push(d),s.push(l),l=d,c="",d=null;else if(k===ie&&f[f.length-1]!==")"){if(f==="")throw new oe("Missing opening {",o?[o,v,v]:null);if(f=f.slice(0,-1),c.length>0)if(c.charCodeAt(0)===ke)d=Ue(c),o&&(d.src=[o,g,v],d.dst=[o,g,v]),l?l.nodes.push(d):t.push(d),c="",d=null;else{let $=c.indexOf(":");if(l){let y=rt(c,$);if(!y)throw new oe(`Invalid declaration: \`${c.trim()}\``,o?[o,g,v]:null);o&&(y.src=[o,g,v],y.dst=[o,g,v]),l.nodes.push(y)}}let m=s.pop()??null;m===null&&l&&t.push(l),l=m,c="",d=null}else if(k===ue)f+=")",c+="(";else if(k===$e){if(f[f.length-1]!==")")throw new oe("Missing opening (",o?[o,v,v]:null);f=f.slice(0,-1),c+=")"}else{if(c.length===0&&(k===ce||k===Z||k===P))continue;c===""&&(g=v),c+=String.fromCharCode(k)}}}if(c.charCodeAt(0)===ke){let v=Ue(c);o&&(v.src=[o,g,e.length],v.dst=[o,g,e.length]),t.push(v)}if(f.length>0&&l){if(l.kind==="rule")throw new oe(`Missing closing } at ${l.selector}`,l.src?[l.src[0],l.src[1],l.src[1]]:null);if(l.kind==="at-rule")throw new oe(`Missing closing } at ${l.name} ${l.params}`,l.src?[l.src[0],l.src[1],l.src[1]]:null)}return n.length>0?n.concat(t):t}function Ue(e,r=[]){let o=e,t="";for(let n=5;n<e.length;n++){let s=e.charCodeAt(n);if(s===ce||s===P||s===ue){o=e.slice(0,n),t=e.slice(n);break}}return I(o.trim(),t.trim(),r)}function rt(e,r=e.indexOf(":")){if(r===-1)return null;let o=e.indexOf("!important",r+1);return i(e.slice(0,r).trim(),e.slice(r+1,o===-1?e.length:o).trim(),o!==-1)}function Fe(e,r,o,t=null){let n;for(let s=r+1;s<e.length;s++)if(n=e.charCodeAt(s),n===B)s+=1;else{if(n===o)return s;if(n===le&&(e.charCodeAt(s+1)===Z||e.charCodeAt(s+1)===J&&e.charCodeAt(s+2)===Z))throw new oe(`Unterminated string: ${e.slice(r,s+1)+String.fromCharCode(o)}`,t?[t,r,s+1]:null);if(n===Z||n===J&&e.charCodeAt(s+1)===Z)throw new oe(`Unterminated string: ${e.slice(r,s)+String.fromCharCode(o)}`,t?[t,r,s+1]:null)}return r}function Q(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(e),o=r.length,t=-1,n,s="",l=r.charCodeAt(0);if(o===1&&l===45)return"\\"+r;for(;++t<o;){if(n=r.charCodeAt(t),n===0){s+="�";continue}if(n>=1&&n<=31||n===127||t===0&&n>=48&&n<=57||t===1&&n>=48&&n<=57&&l===45){s+="\\"+n.toString(16)+" ";continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){s+=r.charAt(t);continue}s+="\\"+r.charAt(t)}return s}function xe(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,r=>r.length>2?String.fromCodePoint(Number.parseInt(r.slice(1).trim(),16)):r[1])}var Ge=new Map([["--font",["--font-weight","--font-size"]],["--inset",["--inset-shadow","--inset-ring"]],["--text",["--text-color","--text-decoration-color","--text-decoration-thickness","--text-indent","--text-shadow","--text-underline-offset"]],["--grid-column",["--grid-column-start","--grid-column-end"]],["--grid-row",["--grid-row-start","--grid-row-end"]]]);function Je(e,r){return(Ge.get(r)??[]).some(o=>e===o||e.startsWith(`${o}-`))}var He=class{constructor(e=new Map,r=new Set([])){this.values=e,this.keyframes=r}prefix=null;get size(){return this.values.size}add(e,r,o=0,t){if(e.endsWith("-*")){if(r!=="initial")throw new Error(`Invalid theme value \`${r}\` for namespace \`${e}\``);e==="--*"?this.values.clear():this.clearNamespace(e.slice(0,-2),0)}if(o&4){let n=this.values.get(e);if(n&&!(n.options&4))return}r==="initial"?this.values.delete(e):this.values.set(e,{value:r,options:o,src:t})}keysInNamespaces(e){let r=[];for(let o of e){let t=`${o}-`;for(let n of this.values.keys())n.startsWith(t)&&n.indexOf("--",2)===-1&&(Je(n,o)||r.push(n.slice(t.length)))}return r}get(e){for(let r of e){let o=this.values.get(r);if(o)return o.value}return null}hasDefault(e){return(this.getOptions(e)&4)===4}getOptions(e){return e=xe(this.#r(e)),this.values.get(e)?.options??0}entries(){return this.prefix?Array.from(this.values,e=>(e[0]=this.prefixKey(e[0]),e)):this.values.entries()}prefixKey(e){return this.prefix?`--${this.prefix}-${e.slice(2)}`:e}#r(e){return this.prefix?`--${e.slice(3+this.prefix.length)}`:e}clearNamespace(e,r){let o=Ge.get(e)??[];e:for(let t of this.values.keys())if(t.startsWith(e)){if(r!==0&&(this.getOptions(t)&r)!==r)continue;for(let n of o)if(t.startsWith(n))continue e;this.values.delete(t)}}#e(e,r){for(let o of r){let t=e!==null?`${o}-${e}`:o;if(!this.values.has(t))if(e!==null&&e.includes(".")){if(t=`${o}-${e.replaceAll(".","_")}`,!this.values.has(t))continue}else continue;if(!Je(t,o))return t}return null}#t(e){let r=this.values.get(e);if(!r)return null;let o=null;return r.options&2&&(o=r.value),`var(${Q(this.prefixKey(e))}${o?`, ${o}`:""})`}markUsedVariable(e){let r=xe(this.#r(e)),o=this.values.get(r);if(!o)return!1;let t=o.options&16;return o.options|=16,!t}resolve(e,r,o=0){let t=this.#e(e,r);if(!t)return null;let n=this.values.get(t);return(o|n.options)&1?n.value:this.#t(t)}resolveValue(e,r){let o=this.#e(e,r);return o?this.values.get(o).value:null}resolveWith(e,r,o=[]){let t=this.#e(e,r);if(!t)return null;let n={};for(let l of o){let d=`${t}${l}`,c=this.values.get(d);c&&(c.options&1?n[l]=c.value:n[l]=this.#t(d))}let s=this.values.get(t);return s.options&1?[s.value,n]:[this.#t(t),n]}namespace(e){let r=new Map,o=`${e}-`;for(let[t,n]of this.values)t===e?r.set(null,n.value):t.startsWith(`${o}-`)?r.set(t.slice(e.length),n.value):t.startsWith(o)&&r.set(t.slice(o.length),n.value);return r}addKeyframes(e){this.keyframes.add(e)}getKeyframes(){return Array.from(this.keyframes)}},ee=class extends Map{constructor(e){super(),this.factory=e}get(e){let r=super.get(e);return r===void 0&&(r=this.factory(e,this),this.set(e,r)),r}};function Le(e){return{kind:"word",value:e}}function No(e,r){return{kind:"function",value:e,nodes:r}}function Wo(e){return{kind:"separator",value:e}}function de(e){let r="";for(let o of e)switch(o.kind){case"word":case"separator":{r+=o.value;break}case"function":r+=o.value+"("+de(o.nodes)+")"}return r}var lr=92,Uo=41,sr=58,cr=44,Lo=34,ur=61,dr=62,fr=60,pr=10,Ro=40,Do=39,Mo=47,hr=32,mr=9;function te(e){e=e.replaceAll(`\r
|
|
2
2
|
`,`
|
|
3
3
|
`);let r=[],o=[],t=null,n="",s;for(let l=0;l<e.length;l++){let d=e.charCodeAt(l);switch(d){case lr:{n+=e[l]+e[l+1],l++;break}case Mo:{if(n.length>0){let f=Le(n);t?t.nodes.push(f):r.push(f),n=""}let c=Le(e[l]);t?t.nodes.push(c):r.push(c);break}case sr:case cr:case ur:case dr:case fr:case pr:case hr:case mr:{if(n.length>0){let p=Le(n);t?t.nodes.push(p):r.push(p),n=""}let c=l,f=l+1;for(;f<e.length&&(s=e.charCodeAt(f),!(s!==sr&&s!==cr&&s!==ur&&s!==dr&&s!==fr&&s!==pr&&s!==hr&&s!==mr));f++);l=f-1;let g=Wo(e.slice(c,f));t?t.nodes.push(g):r.push(g);break}case Do:case Lo:{let c=l;for(let f=l+1;f<e.length;f++)if(s=e.charCodeAt(f),s===lr)f+=1;else if(s===d){l=f;break}n+=e.slice(c,l+1);break}case Ro:{let c=No(n,[]);n="",t?t.nodes.push(c):r.push(c),o.push(c),t=c;break}case Uo:{let c=o.pop();if(n.length>0){let f=Le(n);c?.nodes.push(f),n=""}o.length>0?t=o[o.length-1]:t=null;break}default:n+=String.fromCharCode(d)}}return n.length>0&&r.push(Le(n)),r}var Et=(e=>(e[e.Continue=0]="Continue",e[e.Skip=1]="Skip",e[e.Stop=2]="Stop",e[e.Replace=3]="Replace",e[e.ReplaceSkip=4]="ReplaceSkip",e[e.ReplaceStop=5]="ReplaceStop",e))(Et||{}),_={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function W(e,r){typeof r=="function"?gr(e,r):gr(e,r.enter,r.exit)}function gr(e,r=()=>_.Continue,o=()=>_.Continue){let t={value:[e,0,null],prev:null},n={parent:null,depth:0,path(){let s=[],l=t;for(;l;){let d=l.value[2];d&&s.push(d),l=l.prev}return s.reverse(),s}};for(;t!==null;){let s=t.value,l=s[0],d=s[1],c=s[2];if(d>=l.length){t=t.prev,n.depth-=1;continue}if(n.parent=c,d>=0){let v=l[d],k=r(v,n)??_.Continue;switch(k.kind){case 0:{v.nodes&&v.nodes.length>0&&(n.depth+=1,t={value:[v.nodes,0,v],prev:t}),s[1]=~d;continue}case 2:return;case 1:{s[1]=~d;continue}case 3:{l.splice(d,1,...k.nodes);continue}case 5:{l.splice(d,1,...k.nodes);return}case 4:{l.splice(d,1,...k.nodes),s[1]+=k.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Et[k.kind]??`Unknown(${k.kind})`}\` in enter.`)}}let f=~d,g=l[f],p=o(g,n)??_.Continue;switch(p.kind){case 0:s[1]=f+1;continue;case 2:return;case 3:{l.splice(f,1,...p.nodes),s[1]=f+p.nodes.length;continue}case 5:{l.splice(f,1,...p.nodes);return}case 4:{l.splice(f,1,...p.nodes),s[1]=f+p.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Et[p.kind]??`Unknown(${p.kind})`}\` in exit.`)}}}function vr(e){let r=[];return W(te(e),o=>{if(!(o.kind!=="function"||o.value!=="var"))return W(o.nodes,t=>{t.kind!=="word"||t.value[0]!=="-"||t.value[1]!=="-"||r.push(t.value)}),_.Skip}),r}var Bo=64;function H(e,r=[]){return{kind:"rule",selector:e,nodes:r}}function I(e,r="",o=[]){return{kind:"at-rule",name:e,params:r,nodes:o}}function se(e,r=[]){return e.charCodeAt(0)===Bo?Ue(e,r):H(e,r)}function i(e,r,o=!1){return{kind:"declaration",property:e,value:r,important:o}}function kr(e){return{kind:"comment",value:e}}function qe(e,r){return{kind:"context",context:e,nodes:r}}function M(e){return{kind:"at-root",nodes:e}}function Ce(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(Ce),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(Ce),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(Ce),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(Ce),src:e.src,dst:e.dst};case"declaration":return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case"comment":return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw new Error(`Unknown node kind: ${e.kind}`)}}function Ft(e){return{depth:e.depth,get context(){let r={};for(let o of e.path())o.kind==="context"&&Object.assign(r,o.context);return Object.defineProperty(this,"context",{value:r}),r},get parent(){let r=this.path().pop()??null;return Object.defineProperty(this,"parent",{value:r}),r},path(){return e.path().filter(r=>r.kind!=="context")}}}function ot(e,r,o=3){let t=[],n=new Set,s=new ee(()=>new Set),l=new ee(()=>new Set),d=new Set,c=new Set,f=[],g=[],p=new ee(()=>new Set);function v(m,$,y={},V=0){if(m.kind==="declaration"){if(m.property==="--tw-sort"||m.value===void 0||m.value===null)return;if(y.theme&&m.property[0]==="-"&&m.property[1]==="-"){if(m.value==="initial"){m.value=void 0;return}y.keyframes||s.get($).add(m)}if(m.value.includes("var("))if(y.theme&&m.property[0]==="-"&&m.property[1]==="-")for(let C of vr(m.value))p.get(C).add(m.property);else r.trackUsedVariables(m.value);if(m.property==="animation")for(let C of br(m.value))c.add(C);o&2&&m.value.includes("color-mix(")&&!y.supportsColorMix&&!y.keyframes&&l.get($).add(m),$.push(m)}else if(m.kind==="rule"){let C=[];for(let O of m.nodes)v(O,C,y,V+1);let x={},N=new Set;for(let O of C){if(O.kind!=="declaration")continue;let E=`${O.property}:${O.value}:${O.important}`;x[E]??=[],x[E].push(O)}for(let O in x)for(let E=0;E<x[O].length-1;++E)N.add(x[O][E]);if(N.size>0&&(C=C.filter(O=>!N.has(O))),C.length===0)return;m.selector==="&"?$.push(...C):$.push({...m,nodes:C})}else if(m.kind==="at-rule"&&m.name==="@property"&&V===0){if(n.has(m.params))return;if(o&1){let x=m.params,N=null,O=!1;for(let U of m.nodes)U.kind==="declaration"&&(U.property==="initial-value"?N=U.value:U.property==="inherits"&&(O=U.value==="true"));let E=i(x,N??"initial");E.src=m.src,O?f.push(E):g.push(E)}n.add(m.params);let C={...m,nodes:[]};for(let x of m.nodes)v(x,C.nodes,y,V+1);$.push(C)}else if(m.kind==="at-rule"){m.name==="@keyframes"?y={...y,keyframes:!0}:m.name==="@supports"&&m.params.includes("color-mix(")&&(y={...y,supportsColorMix:!0});let C={...m,nodes:[]};for(let x of m.nodes)v(x,C.nodes,y,V+1);m.name==="@keyframes"&&y.theme&&d.add(C),(C.nodes.length>0||C.name==="@layer"||C.name==="@charset"||C.name==="@custom-media"||C.name==="@namespace"||C.name==="@import")&&$.push(C)}else if(m.kind==="at-root")for(let C of m.nodes){let x=[];v(C,x,y,0);for(let N of x)t.push(N)}else if(m.kind==="context"){if(m.context.reference)return;for(let C of m.nodes)v(C,$,{...y,...m.context},V)}else m.kind==="comment"&&$.push(m)}let k=[];for(let m of e)v(m,k,{},0);e:for(let[m,$]of s)for(let y of $){if(wr(y.property,r.theme,p)){if(y.property.startsWith(r.theme.prefixKey("--animate-")))for(let C of br(y.value))c.add(C);continue}let V=m.indexOf(y);if(m.splice(V,1),m.length===0){let C=Io(k,x=>x.kind==="rule"&&x.nodes===m);if(!C||C.length===0)continue e;C.unshift({kind:"at-root",nodes:k});do{let x=C.pop();if(!x)break;let N=C[C.length-1];if(!N||N.kind!=="at-root"&&N.kind!=="at-rule")break;let O=N.nodes.indexOf(x);if(O===-1)break;N.nodes.splice(O,1)}while(!0);continue e}}for(let m of d)if(!c.has(m.params)){let $=t.indexOf(m);t.splice($,1)}if(k=k.concat(t),o&2)for(let[m,$]of l)for(let y of $){let V=m.indexOf(y);if(V===-1||y.value==null)continue;let C=te(y.value),x=!1;if(W(C,E=>{if(E.kind!=="function"||E.value!=="color-mix")return;let U=!1,a=!1;if(W(E.nodes,u=>{if(u.kind=="word"&&u.value.toLowerCase()==="currentcolor"){a=!0,x=!0;return}let h=u,b=null,w=new Set;do{if(h.kind!=="function"||h.value!=="var")return;let z=h.nodes[0];if(!z||z.kind!=="word")return;let K=z.value;if(w.has(K)){U=!0;return}if(w.add(K),x=!0,b=r.theme.resolveValue(null,[z.value]),!b){U=!0;return}if(b.toLowerCase()==="currentcolor"){a=!0;return}b.startsWith("var(")?h=te(b)[0]:h=null}while(h);return _.Replace({kind:"word",value:b})}),U||a){let u=E.nodes.findIndex(b=>b.kind==="separator"&&b.value.trim().includes(","));if(u===-1)return;let h=E.nodes.length>u?E.nodes[u+1]:null;return h?_.Replace(h):void 0}else if(x){let u=E.nodes[2];u.kind==="word"&&(u.value==="oklab"||u.value==="oklch"||u.value==="lab"||u.value==="lch")&&(u.value="srgb")}}),!x)continue;let N={...y,value:de(C)},O=se("@supports (color: color-mix(in lab, red, red))",[y]);O.src=y.src,m.splice(V,1,N,O)}if(o&1){let m=[];if(f.length>0){let $=se(":root, :host",f);$.src=f[0].src,m.push($)}if(g.length>0){let $=se("*, ::before, ::after, ::backdrop",g);$.src=g[0].src,m.push($)}if(m.length>0){let $=k.findIndex(C=>!(C.kind==="comment"||C.kind==="at-rule"&&(C.name==="@charset"||C.name==="@import"))),y=I("@layer","properties",[]);y.src=m[0].src,k.splice($<0?k.length:$,0,y);let V=se("@layer properties",[I("@supports","((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))",m)]);V.src=m[0].src,V.nodes[0].src=m[0].src,k.push(V)}}return k}function Re(e,r){let o=0,t={file:null,code:""};function n(l,d=0){let c="",f=" ".repeat(d);if(l.kind==="declaration"){if(c+=`${f}${l.property}: ${l.value}${l.important?" !important":""};
|
|
4
4
|
`,r){o+=f.length;let g=o;o+=l.property.length,o+=2,o+=l.value?.length??0,l.important&&(o+=11);let p=o;o+=2,l.dst=[t,g,p]}}else if(l.kind==="rule"){if(c+=`${f}${l.selector} {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1774256638373"}
|
package/configurator/index.html
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<link rel="icon" href="./favicon.png" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
-
<link href="./_app/immutable/entry/start.
|
|
8
|
-
<link href="./_app/immutable/chunks/
|
|
7
|
+
<link href="./_app/immutable/entry/start.k8RQt7wE.js" rel="modulepreload">
|
|
8
|
+
<link href="./_app/immutable/chunks/g9pTgyF6.js" rel="modulepreload">
|
|
9
9
|
<link href="./_app/immutable/chunks/CfJtR48A.js" rel="modulepreload">
|
|
10
10
|
<link href="./_app/immutable/chunks/6gGOJNBB.js" rel="modulepreload">
|
|
11
|
-
<link href="./_app/immutable/entry/app.
|
|
11
|
+
<link href="./_app/immutable/entry/app.ConDGFGi.js" rel="modulepreload">
|
|
12
12
|
<link href="./_app/immutable/chunks/Bg7q39r6.js" rel="modulepreload">
|
|
13
13
|
<link href="./_app/immutable/chunks/hrZ0qwUL.js" rel="modulepreload">
|
|
14
14
|
<link href="./_app/immutable/chunks/DsnmJJEf.js" rel="modulepreload">
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<div style="display: contents">
|
|
19
19
|
<script>
|
|
20
20
|
{
|
|
21
|
-
|
|
21
|
+
__sveltekit_ik10cb = {
|
|
22
22
|
base: new URL(".", location).pathname.slice(0, -1),
|
|
23
23
|
assets: "/configurator"
|
|
24
24
|
};
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
const element = document.currentScript.parentElement;
|
|
27
27
|
|
|
28
28
|
Promise.all([
|
|
29
|
-
import("./_app/immutable/entry/start.
|
|
30
|
-
import("./_app/immutable/entry/app.
|
|
29
|
+
import("./_app/immutable/entry/start.k8RQt7wE.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.ConDGFGi.js")
|
|
31
31
|
]).then(([kit, app]) => {
|
|
32
32
|
kit.start(app, element);
|
|
33
33
|
});
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<link rel="icon" href="./favicon.png" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
-
<link href="./_app/immutable/entry/start.
|
|
8
|
-
<link href="./_app/immutable/chunks/
|
|
7
|
+
<link href="./_app/immutable/entry/start.k8RQt7wE.js" rel="modulepreload">
|
|
8
|
+
<link href="./_app/immutable/chunks/g9pTgyF6.js" rel="modulepreload">
|
|
9
9
|
<link href="./_app/immutable/chunks/CfJtR48A.js" rel="modulepreload">
|
|
10
10
|
<link href="./_app/immutable/chunks/6gGOJNBB.js" rel="modulepreload">
|
|
11
|
-
<link href="./_app/immutable/entry/app.
|
|
11
|
+
<link href="./_app/immutable/entry/app.ConDGFGi.js" rel="modulepreload">
|
|
12
12
|
<link href="./_app/immutable/chunks/Bg7q39r6.js" rel="modulepreload">
|
|
13
13
|
<link href="./_app/immutable/chunks/hrZ0qwUL.js" rel="modulepreload">
|
|
14
14
|
<link href="./_app/immutable/chunks/DsnmJJEf.js" rel="modulepreload">
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<div style="display: contents">
|
|
19
19
|
<script>
|
|
20
20
|
{
|
|
21
|
-
|
|
21
|
+
__sveltekit_ik10cb = {
|
|
22
22
|
base: new URL(".", location).pathname.slice(0, -1),
|
|
23
23
|
assets: "/configurator"
|
|
24
24
|
};
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
const element = document.currentScript.parentElement;
|
|
27
27
|
|
|
28
28
|
Promise.all([
|
|
29
|
-
import("./_app/immutable/entry/start.
|
|
30
|
-
import("./_app/immutable/entry/app.
|
|
29
|
+
import("./_app/immutable/entry/start.k8RQt7wE.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.ConDGFGi.js")
|
|
31
31
|
]).then(([kit, app]) => {
|
|
32
32
|
kit.start(app, element);
|
|
33
33
|
});
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a3 as r}from"./CfJtR48A.js";import{s as t,p as e}from"./C7VUtzlA.js";r();const a={get error(){return e.error},get status(){return e.status},get url(){return e.url}};t.updated.check;const p=a;export{p};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as pe,bh as _t,C as A,k as U,D as T,a4 as te,bH as wt}from"./CfJtR48A.js";import{o as De}from"./6gGOJNBB.js";const V=[];function Se(e,t=pe){let n=null;const r=new Set;function a(o){if(_t(e,o)&&(e=o,n)){const c=!V.length;for(const l of r)l[1](),V.push(l,e);if(c){for(let l=0;l<V.length;l+=2)V[l][0](V[l+1]);V.length=0}}}function i(o){a(o(e))}function s(o,c=pe){const l=[o,c];return r.add(l),r.size===1&&(n=t(a,i)||pe),o(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:a,update:i,subscribe:s}}class Re{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class xe{constructor(t,n){this.status=t,this.location=n}}class Le extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function vt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function yt(e){return e.split("%25").map(decodeURI).join("%25")}function bt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ge({href:e}){return e.split("#")[0]}function kt(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(s,o){if(o==="get"||o==="getAll"||o==="has")return(l,...d)=>(n(l),s[o](l,...d));t();const c=Reflect.get(s,o);return typeof c=="function"?c.bind(s):c}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];r&&i.push("hash");for(const s of i)Object.defineProperty(a,s,{get(){return t(),e[s]},enumerable:!0,configurable:!0});return a}function Et(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function St(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const Rt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&H.delete(Ae(e)),Rt(e,t));const H=new Map;function xt(e,t){const n=Ae(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...i}=JSON.parse(r.textContent);const s=r.getAttribute("data-ttl");return s&&H.set(n,{body:a,init:i,ttl:1e3*Number(s)}),r.getAttribute("data-b64")!==null&&(a=St(a)),Promise.resolve(new Response(a,i))}return window.fetch(e,t)}function Lt(e,t,n){if(H.size>0){const r=Ae(e,n),a=H.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);H.delete(r)}}return window.fetch(t,n)}function Ae(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${Et(...a)}"]`}return r}const At=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Ut(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Pt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const s=r.split(/\[(.+?)\](?!\])/);return"/"+s.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return me(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return me(String.fromCharCode(...c.slice(2).split("-").map(w=>parseInt(w,16))));const d=At.exec(c),[,p,f,u,h]=d;return t.push({name:u,matcher:h,optional:!!p,rest:!!f,chained:f?l===1&&s[0]==="":!1}),f?"([^]*?)":p?"([^/]*)?":"([^/]+?)"}return me(c)}).join("")}).join("")}/?$`),params:t}}function Tt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Pt(e){return e.slice(1).split("/").filter(Tt)}function It(e,t,n){const r={},a=e.slice(1),i=a.filter(o=>o!==void 0);let s=0;for(let o=0;o<t.length;o+=1){const c=t[o];let l=a[o-s];if(c.chained&&c.rest&&s&&(l=a.slice(o-s,o+1).filter(d=>d).join("/"),s=0),l===void 0)if(c.rest)l="";else continue;if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const d=t[o+1],p=a[o+1];d&&!d.rest&&d.optional&&p&&c.chained&&(s=0),!d&&!p&&Object.keys(r).length===i.length&&(s=0);continue}if(c.optional&&c.chained){s++;continue}return}if(!s)return r}function me(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ot({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[c,l,d]])=>{const{pattern:p,params:f}=Ut(o),u={id:o,exec:h=>{const w=p.exec(h);if(w)return It(w,f,r)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...l||[]].map(s),leaf:i(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function i(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function s(o){return o===void 0?o:[a.has(o),e[o]]}}function We(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ve(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const x=globalThis.__sveltekit_1nonkia?.base??"/configurator",Ct=globalThis.__sveltekit_1nonkia?.assets??x??"",$t="1773658448798",Je="sveltekit:snapshot",Ye="sveltekit:scroll",Xe="sveltekit:states",jt="sveltekit:pageurl",K="sveltekit:history",z="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ue=location.origin;function Ue(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function q(){return{x:pageXOffset,y:pageYOffset}}function B(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Be={...j,"":j.hover};function Qe(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Ze(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Qe(e)}}function ve(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,i=!r||!!a||fe(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),s=r?.origin===ue&&e.hasAttribute("download");return{url:r,external:i,target:a,download:s}}function ne(e){let t=null,n=null,r=null,a=null,i=null,s=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=B(o,"preload-code")),a===null&&(a=B(o,"preload-data")),t===null&&(t=B(o,"keepfocus")),n===null&&(n=B(o,"noscroll")),i===null&&(i=B(o,"reload")),s===null&&(s=B(o,"replacestate")),o=Qe(o);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Be[r??"off"],preload_data:Be[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(i),replace_state:c(s)}}function Ke(e){const t=Se(e);let n=!0;function r(){n=!0,t.update(s=>s)}function a(s){n=!1,t.set(s)}function i(s){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&s(o=c)})}return{notify:r,set:a,subscribe:i}}const et={v:()=>{}};function Nt(){const{set:e,subscribe:t}=Se(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Ct}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const s=(await a.json()).version!==$t;return s&&(e(!0),et.v(),clearTimeout(n)),s}catch{return!1}}return{subscribe:t,check:r}}function fe(e,t,n){return e.origin!==ue||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function fn(e){}const tt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...tt];const qt=new Set([...tt]);[...qt];function Dt(e){return e.filter(t=>t!=null)}function Te(e){return e instanceof Re||e instanceof Le?e.status:500}function Vt(e){return e instanceof Le?e.text:"Internal Error"}let k,W,_e;const Bt=De.toString().includes("$$")||/function \w+\(\) \{\}/.test(De.toString());Bt?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},W={current:null},_e={current:!1}):(k=new class{#e=A({});get data(){return U(this.#e)}set data(t){T(this.#e,t)}#t=A(null);get form(){return U(this.#t)}set form(t){T(this.#t,t)}#n=A(null);get error(){return U(this.#n)}set error(t){T(this.#n,t)}#r=A({});get params(){return U(this.#r)}set params(t){T(this.#r,t)}#a=A({id:null});get route(){return U(this.#a)}set route(t){T(this.#a,t)}#o=A({});get state(){return U(this.#o)}set state(t){T(this.#o,t)}#s=A(-1);get status(){return U(this.#s)}set status(t){T(this.#s,t)}#i=A(new URL("https://example.com"));get url(){return U(this.#i)}set url(t){T(this.#i,t)}},W=new class{#e=A(null);get current(){return U(this.#e)}set current(t){T(this.#e,t)}},_e=new class{#e=A(!1);get current(){return U(this.#e)}set current(t){T(this.#e,t)}},et.v=()=>_e.current=!0);function Kt(e){Object.assign(k,e)}const Fe={spanContext(){return Ft},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Ft={traceId:"",spanId:"",traceFlags:0},Gt=new Set(["icon","shortcut icon","apple-touch-icon"]),$=We(Ye)??{},J=We(Je)??{},C={url:Ke({}),page:Ke({}),navigating:Se(null),updated:Nt()};function Pe(e){$[e]=q()}function Ht(e,t){let n=e+1;for(;$[n];)delete $[n],n+=1;for(n=t+1;J[n];)delete J[n],n+=1}function Y(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function nt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(x||"/");e&&await e.update()}}function Ge(){}let Ie,ye,re,P,be,v;const ae=[],oe=[];let L=null;function ke(){L?.fork?.then(e=>e?.discard()),L=null}const ee=new Map,rt=new Set,Mt=new Set,M=new Set;let _={branch:[],error:null,url:null},at=!1,se=!1,He=!0,X=!1,G=!1,ot=!1,Oe=!1,st,y,R,N;const ie=new Set,Me=new Map;async function gn(e,t,n){globalThis.__sveltekit_1nonkia?.data&&globalThis.__sveltekit_1nonkia.data,document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Ie=Ot(e),P=document.documentElement,be=t,ye=e.nodes[0],re=e.nodes[1],ye(),re(),y=history.state?.[K],R=history.state?.[z],y||(y=R=Date.now(),history.replaceState({...history.state,[K]:y,[z]:R},""));const r=$[y];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await an(be,n)):(await F({type:"enter",url:Ue(v.hash?cn(new URL(location.href)):location.href),replace_state:!0}),a()),rn()}function zt(){ae.length=0,Oe=!1}function it(e){oe.some(t=>t?.snapshot)&&(J[e]=oe.map(t=>t?.snapshot?.capture()))}function ct(e){J[e]?.forEach((t,n)=>{oe[n]?.snapshot?.restore(t)})}function ze(){Pe(y),Ve(Ye,$),it(R),Ve(Je,J)}async function lt(e,t,n,r){let a;t.invalidateAll&&ke(),await F({type:"goto",url:Ue(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Oe=!0,a=[...Me.keys()]),t.invalidate&&t.invalidate.forEach(nn)}}),t.invalidateAll&&te().then(te).then(()=>{Me.forEach(({resource:i},s)=>{a?.includes(s)&&i.refresh?.()})})}async function Wt(e){if(e.id!==L?.id){ke();const t={};ie.add(t),L={id:e.id,token:t,promise:dt({...e,preload:t}).then(n=>(ie.delete(t),n.type==="loaded"&&n.state.error&&ke(),n)),fork:null}}return L.promise}async function we(e){const t=(await de(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function ut(e,t,n){_=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(k,e.props.page),st=new v.root({target:t,props:{...e.props,stores:C,components:oe},hydrate:n,sync:!1}),await Promise.resolve(),ct(R),n){const a={from:null,to:{params:_.params,route:{id:_.route?.id??null},url:new URL(location.href),scroll:$[y]??q()},willUnload:!1,type:"enter",complete:Promise.resolve()};M.forEach(i=>i(a))}se=!0}function ce({url:e,params:t,branch:n,status:r,error:a,route:i,form:s}){let o="never";if(x&&(e.pathname===x||e.pathname===x+"/"))o="always";else for(const u of n)u?.slash!==void 0&&(o=u.slash);e.pathname=vt(e.pathname,o),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:i},props:{constructors:Dt(n).map(u=>u.node.component),page:qe(k)}};s!==void 0&&(c.props.form=s);let l={},d=!k,p=0;for(let u=0;u<Math.max(n.length,_.branch.length);u+=1){const h=n[u],w=_.branch[u];h?.data!==w?.data&&(d=!0),h&&(l={...l,...h.data},d&&(c.props[`data_${p}`]=l),p+=1)}return(!_.url||e.href!==_.url.href||_.error!==a||s!==void 0&&s!==k.form||d)&&(c.props.page={error:a,params:t,route:{id:i?.id??null},state:{},status:r,url:new URL(e),form:s??null,data:d?l:k.data}),c}async function Ce({loader:e,parent:t,url:n,params:r,route:a,server_data_node:i}){let s=null,o=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){let d=function(...f){for(const u of f){const{href:h}=new URL(u,n);c.dependencies.add(h)}};const p={tracing:{enabled:!1,root:Fe,current:Fe},route:new Proxy(a,{get:(f,u)=>(o&&(c.route=!0),f[u])}),params:new Proxy(r,{get:(f,u)=>(o&&c.params.add(u),f[u])}),data:i?.data??null,url:kt(n,()=>{o&&(c.url=!0)},f=>{o&&c.search_params.add(f)},v.hash),async fetch(f,u){f instanceof Request&&(u={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:[...f.headers].length>0?f?.headers:void 0,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...u});const{resolved:h,promise:w}=ft(f,u,n);return o&&d(h.href),w},setHeaders:()=>{},depends:d,parent(){return o&&(c.parent=!0),t()},untrack(f){o=!1;try{return f()}finally{o=!0}}};s=await l.universal.load.call(null,p)??null}return{node:l,loader:e,server:i,universal:l.universal?.load?{type:"data",data:s,uses:c}:null,data:s??i?.data??null,slash:l.universal?.trailingSlash??i?.slash}}function ft(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const i=se?Lt(r,a.href,t):xt(r,t);return{resolved:a,promise:i}}function Jt(e,t,n,r,a,i){if(Oe)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const s of a.search_params)if(r.has(s))return!0;for(const s of a.params)if(i[s]!==_.params[s])return!0;for(const s of a.dependencies)if(ae.some(o=>o(new URL(s))))return!0;return!1}function $e(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Yt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),i=t.searchParams.getAll(r);a.every(s=>i.includes(s))&&i.every(s=>a.includes(s))&&n.delete(r)}return n}function Xt({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:qe(k),constructors:[]}}}async function dt({id:e,invalidating:t,url:n,params:r,route:a,preload:i}){if(L?.id===e)return ie.delete(L.token),L.promise;const{errors:s,layouts:o,leaf:c}=a,l=[...o,c];s.forEach(m=>m?.().catch(()=>{})),l.forEach(m=>m?.[1]().catch(()=>{}));const d=_.url?e!==le(_.url):!1,p=_.route?a.id!==_.route.id:!1,f=Yt(_.url,n);let u=!1;const h=l.map(async(m,g)=>{if(!m)return;const E=_.branch[g];return m[1]===E?.loader&&!Jt(u,p,d,f,E.universal?.uses,r)?E:(u=!0,Ce({loader:m[1],url:n,params:r,route:a,parent:async()=>{const I={};for(let O=0;O<g;O+=1)Object.assign(I,(await h[O])?.data);return I},server_data_node:$e(m[0]?{type:"skip"}:null,m[0]?E?.server:void 0)}))});for(const m of h)m.catch(()=>{});const w=[];for(let m=0;m<l.length;m+=1)if(l[m])try{w.push(await h[m])}catch(g){if(g instanceof xe)return{type:"redirect",location:g.location};if(ie.has(i))return Xt({error:await Q(g,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let E=Te(g),S;if(g instanceof Re)S=g.body;else{if(await C.updated.check())return await nt(),await Y(n);S=await Q(g,{params:r,url:n,route:{id:a.id}})}const I=await Qt(m,w,s);return I?ce({url:n,params:r,branch:w.slice(0,I.idx).concat(I.node),status:E,error:S,route:a}):await pt(n,{id:a.id},S,E)}else w.push(void 0);return ce({url:n,params:r,branch:w,status:200,error:null,route:a,form:t?void 0:null})}async function Qt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function je({status:e,error:t,url:n,route:r}){const a={};let i=null;try{const s=await Ce({loader:ye,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:$e(i)}),o={node:await re(),loader:re,universal:null,server:null,data:null};return ce({url:n,params:a,branch:[s,o],status:e,error:t,route:null})}catch(s){if(s instanceof xe)return lt(new URL(s.location,location.href),{},0);throw s}}async function Zt(e){const t=e.href;if(ee.has(t))return ee.get(t);let n;try{const r=(async()=>{let a=await v.hooks.reroute({url:new URL(e),fetch:async(i,s)=>ft(i,s,e).promise})??e;if(typeof a=="string"){const i=new URL(e);v.hash?i.hash=a:i.pathname=a,a=i}return a})();ee.set(t,r),n=await r}catch{ee.delete(t);return}return n}async function de(e,t){if(e&&!fe(e,x,v.hash)){const n=await Zt(e);if(!n)return;const r=en(n);for(const a of Ie){const i=a.exec(r);if(i)return{id:le(e),invalidating:t,route:a,params:bt(i),url:e}}}}function en(e){return yt(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(x.length))||"/"}function le(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function ht({url:e,type:t,intent:n,delta:r,event:a,scroll:i}){let s=!1;const o=Ne(_,n,e,t,i??null);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const c={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return X||rt.forEach(l=>l(c)),s?null:o}async function F({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s={},redirect_count:o=0,nav_token:c={},accept:l=Ge,block:d=Ge,event:p}){const f=N;N=c;const u=await de(t,!1),h=e==="enter"?Ne(_,u,t,e):ht({url:t,type:e,delta:n?.delta,intent:u,scroll:n?.scroll,event:p});if(!h){d(),N===c&&(N=f);return}const w=y,m=R;l(),X=!0,se&&h.navigation.type!=="enter"&&C.navigating.set(W.current=h.navigation);let g=u&&await dt(u);if(!g){if(fe(t,x,v.hash))return await Y(t,i);g=await pt(t,{id:null},await Q(new Le(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=u?.url||t,N!==c)return h.reject(new Error("navigation aborted")),!1;if(g.type==="redirect"){if(o<20){await F({type:e,url:new URL(g.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s,redirect_count:o+1,nav_token:c}),h.fulfil(void 0);return}g=await je({status:500,error:await Q(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else g.props.page.status>=400&&await C.updated.check()&&(await nt(),await Y(t,i));if(zt(),Pe(w),it(m),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),s=n?n.state:s,!n){const b=i?0:1,Z={[K]:y+=b,[z]:R+=b,[Xe]:s};(i?history.replaceState:history.pushState).call(history,Z,"",t),i||Ht(y,R)}const E=u&&L?.id===u.id?L.fork:null;L=null,g.props.page.state=s;let S;if(se){const b=(await Promise.all(Array.from(Mt,D=>D(h.navigation)))).filter(D=>typeof D=="function");if(b.length>0){let D=function(){b.forEach(he=>{M.delete(he)})};b.push(D),b.forEach(he=>{M.add(he)})}_=g.state,g.props.page&&(g.props.page.url=t);const Z=E&&await E;Z?S=Z.commit():(st.$set(g.props),Kt(g.props.page),S=wt?.()),ot=!0}else await ut(g,be,!1);const{activeElement:I}=document;await S,await te(),await te();let O=null;if(He){const b=n?n.scroll:a?q():null;b?scrollTo(b.x,b.y):(O=t.hash&&document.getElementById(gt(t)))?O.scrollIntoView():scrollTo(0,0)}const mt=document.activeElement!==I&&document.activeElement!==document.body;!r&&!mt&&sn(t,!O),He=!0,g.props.page&&Object.assign(k,g.props.page),X=!1,e==="popstate"&&ct(R),h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=q()),M.forEach(b=>b(h.navigation)),C.navigating.set(W.current=null)}async function pt(e,t,n,r,a){return e.origin===ue&&e.pathname===location.pathname&&!at?await je({status:r,error:n,url:e,route:t}):await Y(e,a)}function tn(){let e,t={element:void 0,href:void 0},n;P.addEventListener("mousemove",o=>{const c=o.target;clearTimeout(e),e=setTimeout(()=>{i(c,j.hover)},20)});function r(o){o.defaultPrevented||i(o.composedPath()[0],j.tap)}P.addEventListener("mousedown",r),P.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const c of o)c.isIntersecting&&(we(new URL(c.target.href)),a.unobserve(c.target))},{threshold:0});async function i(o,c){const l=Ze(o,P),d=l===t.element&&l?.href===t.href&&c>=n;if(!l||d)return;const{url:p,external:f,download:u}=ve(l,x,v.hash);if(f||u)return;const h=ne(l),w=p&&le(_.url)===le(p);if(!(h.reload||w))if(c<=h.preload_data){t={element:l,href:l.href},n=j.tap;const m=await de(p,!1);if(!m)return;Wt(m)}else c<=h.preload_code&&(t={element:l,href:l.href},n=c,we(p))}function s(){a.disconnect();for(const o of P.querySelectorAll("a")){const{url:c,external:l,download:d}=ve(o,x,v.hash);if(l||d)continue;const p=ne(o);p.reload||(p.preload_code===j.viewport&&a.observe(o),p.preload_code===j.eager&&we(c))}}M.add(s),s()}function Q(e,t){if(e instanceof Re)return e.body;const n=Te(e),r=Vt(e);return v.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function mn(e,t={}){return e=new URL(Ue(e)),e.origin!==ue?Promise.reject(new Error("goto: invalid URL")):lt(e,t,0)}function nn(e){if(typeof e=="function")ae.push(e);else{const{href:t}=new URL(e,location.href);ae.push(n=>n.href===t)}}function rn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(ze(),!X){const r=Ne(_,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};rt.forEach(i=>i(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ze()}),navigator.connection?.saveData||tn(),P.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Ze(t.composedPath()[0],P);if(!n)return;const{url:r,external:a,target:i,download:s}=ve(n,x,v.hash);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const o=ne(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;const[l,d]=(v.hash?r.hash.replace(/^#/,""):r.href).split("#"),p=l===ge(location);if(a||o.reload&&(!p||!d)){ht({url:r,type:"link",event:t})?X=!0:t.preventDefault();return}if(d!==void 0&&p){const[,f]=_.url.href.split("#");if(f===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(d));u&&(u.scrollIntoView(),u.focus())}return}if(G=!0,Pe(y),e(r),!o.replace_state)return;G=!1}t.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await F({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href,event:t})}),P.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const s=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(fe(s,x,!1))return;const o=t.target,c=ne(o);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(o,r);s.search=new URLSearchParams(l).toString(),F({type:"form",url:s,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??s.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Ee){if(t.state?.[K]){const n=t.state[K];if(N={},n===y)return;const r=$[n],a=t.state[Xe]??{},i=new URL(t.state[jt]??location.href),s=t.state[z],o=_.url?ge(location)===ge(_.url):!1;if(s===R&&(ot||o)){a!==k.state&&(k.state=a),e(i),$[y]=q(),r&&scrollTo(r.x,r.y),y=n;return}const l=n-y;await F({type:"popstate",url:i,popped:{state:a,scroll:r,delta:l},accept:()=>{y=n,R=s},block:()=>{history.go(-l)},nav_token:N,event:t})}else if(!G){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{G&&(G=!1,history.replaceState({...history.state,[K]:++y,[z]:R},"",location.href))});for(const t of document.querySelectorAll("link"))Gt.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&C.navigating.set(W.current=null)});function e(t){_.url=k.url=t,C.page.set(qe(k)),C.page.notify()}}async function an(e,{status:t=200,error:n,node_ids:r,params:a,route:i,server_route:s,data:o,form:c}){at=!0;const l=new URL(location.href);let d;({params:a={},route:i={id:null}}=await de(l,!1)||{}),d=Ie.find(({id:u})=>u===i.id);let p,f=!0;try{const u=r.map(async(w,m)=>{const g=o[m];return g?.uses&&(g.uses=on(g.uses)),Ce({loader:v.nodes[w],url:l,params:a,route:i,parent:async()=>{const E={};for(let S=0;S<m;S+=1)Object.assign(E,(await u[S]).data);return E},server_data_node:$e(g)})}),h=await Promise.all(u);if(d){const w=d.layouts;for(let m=0;m<w.length;m++)w[m]||h.splice(m,0,void 0)}p=ce({url:l,params:a,branch:h,status:t,error:n,form:c,route:d??null})}catch(u){if(u instanceof xe){await Y(new URL(u.location,location.href));return}p=await je({status:Te(u),error:await Q(u,{url:l,params:a,route:i}),url:l,route:i}),e.textContent="",f=!1}p.props.page&&(p.props.page.state={}),await ut(p,e,f)}function on(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Ee=!1;function sn(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=gt(e);if(r&&document.getElementById(r)){const{x:i,y:s}=q();setTimeout(()=>{const o=history.state;Ee=!0,location.replace(new URL(`#${r}`,location.href)),history.replaceState(o,"",e),t&&scrollTo(i,s),Ee=!1})}else{const i=document.body,s=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),s!==null?i.setAttribute("tabindex",s):i.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const i=[];for(let s=0;s<a.rangeCount;s+=1)i.push(a.getRangeAt(s));setTimeout(()=>{if(a.rangeCount===i.length){for(let s=0;s<a.rangeCount;s+=1){const o=i[s],c=a.getRangeAt(s);if(o.commonAncestorContainer!==c.commonAncestorContainer||o.startContainer!==c.startContainer||o.endContainer!==c.endContainer||o.startOffset!==c.startOffset||o.endOffset!==c.endOffset)return}a.removeAllRanges()}})}}}function Ne(e,t,n,r,a=null){let i,s;const o=new Promise((l,d)=>{i=l,s=d});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:q()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:a},willUnload:!t,type:r,complete:o},fulfil:i,reject:s}}function qe(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function cn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function gt(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{gn as a,mn as g,fn as l,k as p,C as s,Se as w};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,a as r}from"../chunks/C7VUtzlA.js";export{o as load_css,r as start};
|