@seamline-kit/seamline-settings 0.0.2 → 0.0.3

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.
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../lib-cjGq4QSq.cjs`),t=require(`../main.cjs`);let n=require(`solid-js`);var r=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,i=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a={};function o(e,t){return((t||a).jsx?i:r).test(e)}var s=/[ \t\n\f\r]/g;function c(e){return typeof e==`object`?e.type===`text`?l(e.value):!1:l(e)}function l(e){return e.replace(s,``)===``}var u=e.c(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
2
- `,d=`/`,f=`*`,p=``,m=`comment`,h=`declaration`;function g(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,g=1;function v(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function y(){var e={line:l,column:g};return function(t){return t.position=new b(e),C(),t}}function b(e){this.start=e,this.end={line:l,column:g},this.source=t.source}b.prototype.content=e;function x(n){var r=Error(t.source+`:`+l+`:`+g+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=g,r.source=e,!t.silent)throw r}function S(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function C(){S(i)}function w(e){var t;for(e||=[];t=T();)t!==!1&&e.push(t);return e}function T(){var t=y();if(!(d!=e.charAt(0)||f!=e.charAt(1))){for(var n=2;p!=e.charAt(n)&&(f!=e.charAt(n)||d!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return x(`End of comment missing`);var r=e.slice(2,n-2);return g+=2,v(r),e=e.slice(n),g+=2,t({type:m,comment:r})}}function E(){var e=y(),t=S(a);if(t){if(T(),!S(o))return x(`property missing ':'`);var r=S(s),i=e({type:h,property:_(t[0].replace(n,p)),value:r?_(r[0].replace(n,p)):p});return S(c),i}}function D(){var e=[];w(e);for(var t;t=E();)t!==!1&&(e.push(t),w(e));return e}return C(),D()}function _(e){return e?e.replace(l,p):p}t.exports=g})),d=e.c((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.default=r;var n=t(u());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),f=e.c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),p=e.c(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(d()),r=f();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i}));const m=h(`start`);function h(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function g(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?v(e.position):`start`in e||`end`in e?v(e):`line`in e||`column`in e?_(e):``}function _(e){return y(e&&e.line)+`:`+y(e&&e.column)}function v(e){return _(e&&e.start)+`-`+_(e&&e.end)}function y(e){return e&&typeof e==`number`?e:1}var b=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=g(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};b.prototype.file=``,b.prototype.name=``,b.prototype.reason=``,b.prototype.message=``,b.prototype.stack=``,b.prototype.column=void 0,b.prototype.line=void 0,b.prototype.ancestors=void 0,b.prototype.cause=void 0,b.prototype.fatal=void 0,b.prototype.place=void 0,b.prototype.ruleId=void 0,b.prototype.source=void 0;var x=e.l(p(),1),S={}.hasOwnProperty,C=new Map,w=/[A-Z]/g,T=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),E=new Set([`td`,`th`]),D=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function ee(t,n){if(!n||n.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let r=n.filePath||void 0,i;if(n.development){if(typeof n.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");i=ce(r,n.jsxDEV)}else{if(typeof n.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof n.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");i=se(r,n.jsx,n.jsxs)}let a={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:i,elementAttributeNameCase:n.elementAttributeNameCase||`react`,evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space===`svg`?e.a:e.i,stylePropertyNameCase:n.stylePropertyNameCase||`dom`,tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=O(a,t,void 0);return o&&typeof o!=`string`?o:a.create(t,a.Fragment,{children:o||void 0},void 0)}function O(e,t,n){if(t.type===`element`)return te(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return ne(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return ie(e,t,n);if(t.type===`mdxjsEsm`)return re(e,t);if(t.type===`root`)return ae(e,t,n);if(t.type===`text`)return oe(e,t)}function te(t,n,r){let i=t.schema,a=i;n.tagName.toLowerCase()===`svg`&&i.space===`html`&&(a=e.a,t.schema=a),t.ancestors.push(n);let o=M(t,n.tagName,!1),s=le(t,n),l=j(t,n);return T.has(n.tagName)&&(l=l.filter(function(e){return typeof e==`string`?!c(e):!0})),k(t,s,o,n),A(s,l),t.ancestors.pop(),t.schema=i,t.create(n,o,s,r)}function ne(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}N(e,t.position)}function re(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);N(e,t.position)}function ie(t,n,r){let i=t.schema,a=i;n.name===`svg`&&i.space===`html`&&(a=e.a,t.schema=a),t.ancestors.push(n);let o=n.name===null?t.Fragment:M(t,n.name,!0),s=ue(t,n),c=j(t,n);return k(t,s,o,n),A(s,c),t.ancestors.pop(),t.schema=i,t.create(n,o,s,r)}function ae(e,t,n){let r={};return A(r,j(e,t)),e.create(t,e.Fragment,r,n)}function oe(e,t){return t.value}function k(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function A(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function se(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function ce(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=m(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function le(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&S.call(t.properties,i)){let a=de(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&E.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function ue(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else N(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else N(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function j(e,t){let n=[],r=-1,i=e.passKeys?new Map:C;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=O(e,a,o);s!==void 0&&n.push(s)}return n}function de(t,n,r){let i=e.o(t.schema,n);if(!(r==null||typeof r==`number`&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?e.r(r):e.n(r)),i.property===`style`){let e=typeof r==`object`?r:fe(t,String(r));return t.stylePropertyNameCase===`css`&&(e=pe(e)),[`style`,e]}return[t.elementAttributeNameCase===`react`&&i.space?e.s[i.property]||i.property:i.attribute,r]}}function fe(e,t){try{return(0,x.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new b("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=D+`#cannot-parse-style-attribute`,r}}function M(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=o(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=o(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return S.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);N(e)}function N(e,t){let n=new b("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=D+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function pe(e){let t={},n;for(n in e)S.call(e,n)&&(t[me(n)]=e[n]);return t}function me(e){let t=e.replace(w,he);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function he(e){return`-`+e.toLowerCase()}var ge=new Set([`className`,`value`,`readOnly`,`noValidate`,`formNoValidate`,`isMap`,`noModule`,`playsInline`,`adAuctionHeaders`,`allowFullscreen`,`browsingTopics`,`defaultChecked`,`defaultMuted`,`defaultSelected`,`disablePictureInPicture`,`disableRemotePlayback`,`preservesPitch`,`shadowRootClonable`,`shadowRootCustomElementRegistry`,`shadowRootDelegatesFocus`,`shadowRootSerializable`,`sharedStorageWritable`,...`allowfullscreen.async.alpha.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.hidden.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.adauctionheaders.browsingtopics.credentialless.defaultchecked.defaultmuted.defaultselected.defer.disablepictureinpicture.disableremoteplayback.preservespitch.shadowrootclonable.shadowrootcustomelementregistry.shadowrootdelegatesfocus.shadowrootserializable.sharedstoragewritable`.split(`.`)]),_e=new Set([`innerHTML`,`textContent`,`innerText`,`children`]),ve=Object.assign(Object.create(null),{className:`class`,htmlFor:`for`}),P=Object.assign(Object.create(null),{class:`className`,novalidate:{$:`noValidate`,FORM:1},formnovalidate:{$:`formNoValidate`,BUTTON:1,INPUT:1},ismap:{$:`isMap`,IMG:1},nomodule:{$:`noModule`,SCRIPT:1},playsinline:{$:`playsInline`,VIDEO:1},readonly:{$:`readOnly`,INPUT:1,TEXTAREA:1},adauctionheaders:{$:`adAuctionHeaders`,IFRAME:1},allowfullscreen:{$:`allowFullscreen`,IFRAME:1},browsingtopics:{$:`browsingTopics`,IMG:1},defaultchecked:{$:`defaultChecked`,INPUT:1},defaultmuted:{$:`defaultMuted`,AUDIO:1,VIDEO:1},defaultselected:{$:`defaultSelected`,OPTION:1},disablepictureinpicture:{$:`disablePictureInPicture`,VIDEO:1},disableremoteplayback:{$:`disableRemotePlayback`,AUDIO:1,VIDEO:1},preservespitch:{$:`preservesPitch`,AUDIO:1,VIDEO:1},shadowrootclonable:{$:`shadowRootClonable`,TEMPLATE:1},shadowrootdelegatesfocus:{$:`shadowRootDelegatesFocus`,TEMPLATE:1},shadowrootserializable:{$:`shadowRootSerializable`,TEMPLATE:1},sharedstoragewritable:{$:`sharedStorageWritable`,IFRAME:1,IMG:1}});function F(e,t){let n=P[e];return typeof n==`object`?n[t]?n.$:void 0:n}var ye=new Set([`beforeinput`,`click`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`]),be=new Set(`altGlyph.altGlyphDef.altGlyphItem.animate.animateColor.animateMotion.animateTransform.circle.clipPath.color-profile.cursor.defs.desc.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.font.font-face.font-face-format.font-face-name.font-face-src.font-face-uri.foreignObject.g.glyph.glyphRef.hkern.image.line.linearGradient.marker.mask.metadata.missing-glyph.mpath.path.pattern.polygon.polyline.radialGradient.rect.set.stop.svg.switch.symbol.text.textPath.tref.tspan.use.view.vkern`.split(`.`)),xe={xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`};function Se(e,t,n){let r=n.length,i=t.length,a=r,o=0,s=0,c=t[i-1].nextSibling,l=null;for(;o<i||s<a;){if(t[o]===n[s]){o++,s++;continue}for(;t[i-1]===n[a-1];)i--,a--;if(i===o){let t=a<r?s?n[s-1].nextSibling:n[a-s]:c;for(;s<a;)e.insertBefore(n[s++],t)}else if(a===s)for(;o<i;)(!l||!l.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[a-1]&&n[s]===t[i-1]){let r=t[--i].nextSibling;e.insertBefore(n[s++],t[o++].nextSibling),e.insertBefore(n[--a],r),t[i]=n[a]}else{if(!l){l=new Map;let e=s;for(;e<a;)l.set(n[e],e++)}let r=l.get(t[o]);if(r!=null)if(s<r&&r<a){let c=o,u=1,d;for(;++c<i&&c<a&&!((d=l.get(t[c]))==null||d!==r+u);)u++;if(u>r-s){let i=t[o];for(;s<r;)e.insertBefore(n[s++],i)}else e.replaceChild(n[s++],t[o++])}else o++;else t[o++].remove()}}}var I=`_$DX_DELEGATE`;function Ce(e,t=window.document){let n=t[I]||(t[I]=new Set);for(let r=0,i=e.length;r<i;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,Fe))}}function L(e,t,n){R(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function we(e,t,n,r){R(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function Te(e,t,n){R(e)||(n?e.setAttribute(t,``):e.removeAttribute(t))}function Ee(e,t){R(e)||(t==null?e.removeAttribute(`class`):e.className=t)}function De(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){let r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,typeof n!=`function`&&n)}function Oe(e,t,n={}){let r=Object.keys(t||{}),i=Object.keys(n),a,o;for(a=0,o=i.length;a<o;a++){let r=i[a];!r||r===`undefined`||t[r]||(z(e,r,!1),delete n[r])}for(a=0,o=r.length;a<o;a++){let i=r[a],o=!!t[i];!i||i===`undefined`||n[i]===o||!o||(z(e,i,!0),n[i]=o)}return n}function ke(e,t,n){if(!t)return n?L(e,`style`):t;let r=e.style;if(typeof t==`string`)return r.cssText=t;typeof n==`string`&&(r.cssText=n=void 0),n||={},t||={};let i,a;for(a in n)t[a]??r.removeProperty(a),delete n[a];for(a in t)i=t[a],i!==n[a]&&(r.setProperty(a,i),n[a]=i);return n}function Ae(e,t={},r,i){let a={};return i||(0,n.createRenderEffect)(()=>a.children=V(e,t.children,a.children)),(0,n.createRenderEffect)(()=>typeof t.ref==`function`&&je(t.ref,e)),(0,n.createRenderEffect)(()=>Me(e,t,r,!0,a,!0)),a}function je(e,t,r){return(0,n.untrack)(()=>e(t,r))}function Me(e,t,n,r,i={},a=!1){t||={};for(let r in i)if(!(r in t)){if(r===`children`)continue;i[r]=B(e,r,null,i[r],n,a,t)}for(let o in t){if(o===`children`){r||V(e,t.children);continue}let s=t[o];i[o]=B(e,o,s,i[o],n,a,t)}}function Ne(e){let t,r;return!R()||!(t=n.sharedConfig.registry.get(r=Ie()))?e():(n.sharedConfig.completed&&n.sharedConfig.completed.add(t),n.sharedConfig.registry.delete(r),t)}function R(e){return!!n.sharedConfig.context&&!n.sharedConfig.done&&(!e||e.isConnected)}function Pe(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function z(e,t,n){let r=t.trim().split(/\s+/);for(let t=0,i=r.length;t<i;t++)e.classList.toggle(r[t],n)}function B(e,t,n,r,i,a,o){let s,c,l,u,d;if(t===`style`)return ke(e,n,r);if(t===`classList`)return Oe(e,n,r);if(n===r)return r;if(t===`ref`)a||n(e);else if(t.slice(0,3)===`on:`){let i=t.slice(3);r&&e.removeEventListener(i,r,typeof r!=`function`&&r),n&&e.addEventListener(i,n,typeof n!=`function`&&n)}else if(t.slice(0,10)===`oncapture:`){let i=t.slice(10);r&&e.removeEventListener(i,r,!0),n&&e.addEventListener(i,n,!0)}else if(t.slice(0,2)===`on`){let i=t.slice(2).toLowerCase(),a=ye.has(i);if(!a&&r){let t=Array.isArray(r)?r[0]:r;e.removeEventListener(i,t)}(a||n)&&(De(e,i,n,a),a&&Ce([i]))}else if(t.slice(0,5)===`attr:`)L(e,t.slice(5),n);else if(t.slice(0,5)===`bool:`)Te(e,t.slice(5),n);else if((d=t.slice(0,5)===`prop:`)||(l=_e.has(t))||!i&&((u=F(t,e.tagName))||(c=ge.has(t)))||(s=e.nodeName.includes(`-`)||`is`in o)){if(d)t=t.slice(5),c=!0;else if(R(e))return n;t===`class`||t===`className`?Ee(e,n):s&&!c&&!l?e[Pe(t)]=n:e[u||t]=n}else{let r=i&&t.indexOf(`:`)>-1&&xe[t.split(`:`)[0]];r?we(e,r,t,n):L(e,ve[t]||t,n)}return n}function Fe(e){if(n.sharedConfig.registry&&n.sharedConfig.events&&n.sharedConfig.events.find(([t,n])=>n===e))return;let t=e.target,r=`$$${e.type}`,i=e.target,a=e.currentTarget,o=t=>Object.defineProperty(e,`target`,{configurable:!0,value:t}),s=()=>{let n=t[r];if(n&&!t.disabled){let i=t[`${r}Data`];if(i===void 0?n.call(t,e):n.call(t,i,e),e.cancelBubble)return}return t.host&&typeof t.host!=`string`&&!t.host._$host&&t.contains(e.target)&&o(t.host),!0},c=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,`currentTarget`,{configurable:!0,get(){return t||document}}),n.sharedConfig.registry&&!n.sharedConfig.done&&(n.sharedConfig.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();o(n[0]);for(let e=0;e<n.length-2&&(t=n[e],s());e++){if(t._$host){t=t._$host,c();break}if(t.parentNode===a)break}}else c();o(i)}function V(e,t,r,i,a){let o=R(e);if(o){!r&&(r=[...e.childNodes]);let t=[];for(let e=0;e<r.length;e++){let n=r[e];n.nodeType===8&&n.data.slice(0,2)===`!$`?n.remove():t.push(n)}r=t}for(;typeof r==`function`;)r=r();if(t===r)return r;let s=typeof t,c=i!==void 0;if(e=c&&r[0]&&r[0].parentNode||e,s===`string`||s===`number`){if(o||s===`number`&&(t=t.toString(),t===r))return r;if(c){let n=r[0];n&&n.nodeType===3?n.data!==t&&(n.data=t):n=document.createTextNode(t),r=W(e,r,i,n)}else r=r!==``&&typeof r==`string`?e.firstChild.data=t:e.textContent=t}else if(t==null||s===`boolean`){if(o)return r;r=W(e,r,i)}else if(s===`function`)return(0,n.createRenderEffect)(()=>{let n=t();for(;typeof n==`function`;)n=n();r=V(e,n,r,i)}),()=>r;else if(Array.isArray(t)){let s=[],l=r&&Array.isArray(r);if(H(s,t,r,a))return(0,n.createRenderEffect)(()=>r=V(e,s,r,i,!0)),()=>r;if(o){if(!s.length)return r;if(i===void 0)return r=[...e.childNodes];let t=s[0];if(t.parentNode!==e)return r;let n=[t];for(;(t=t.nextSibling)!==i;)n.push(t);return r=n}if(s.length===0){if(r=W(e,r,i),c)return r}else l?r.length===0?U(e,s,i):Se(e,r,s):(r&&W(e),U(e,s));r=s}else if(t.nodeType){if(o&&t.parentNode)return r=c?[t]:t;if(Array.isArray(r)){if(c)return r=W(e,r,i,t);W(e,r,null,t)}else r==null||r===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);r=t}return r}function H(e,t,n,r){let i=!1;for(let a=0,o=t.length;a<o;a++){let o=t[a],s=n&&n[e.length],c;if(!(o==null||o===!0||o===!1))if((c=typeof o)==`object`&&o.nodeType)e.push(o);else if(Array.isArray(o))i=H(e,o,s)||i;else if(c===`function`)if(r){for(;typeof o==`function`;)o=o();i=H(e,Array.isArray(o)?o:[o],Array.isArray(s)?s:[s])||i}else e.push(o),i=!0;else{let t=String(o);s&&s.nodeType===3&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return i}function U(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function W(e,t,n,r){if(n===void 0)return e.textContent=``;let i=r||document.createTextNode(``);if(t.length){let r=!1;for(let a=t.length-1;a>=0;a--){let o=t[a];if(i!==o){let t=o.parentNode===e;!r&&!a?t?e.replaceChild(i,o):e.insertBefore(i,n):t&&o.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}function Ie(){return n.sharedConfig.getNextContextId()}var Le=`http://www.w3.org/2000/svg`;function Re(e,t=!1,n=void 0){return t?document.createElementNS(Le,e):document.createElement(e,{is:n})}function ze(e,t){let r=(0,n.createMemo)(e);return(0,n.createMemo)(()=>{let e=r();switch(typeof e){case`function`:return(0,n.untrack)(()=>e(t));case`string`:let r=be.has(e),i=n.sharedConfig.context?Ne():Re(e,r,(0,n.untrack)(()=>t.is));return Ae(i,t,r),i}})}function Be(e){let[,t]=(0,n.splitProps)(e,[`component`]);return ze(()=>e.component,t)}var Ve=e=>{let t=e.charAt(0);return t!==t.toLowerCase()},He=/e(r[HRWrv]|[Vawy])|Con|l(e[Tcs]|c)|s(eP|y)|a(t[rt]|u|v)|Of|Ex|f[XYa]|gt|hR|d[Pg]|t[TXYd]|[UZq]/,G=Object.create(null),Ue=/[A-Z]/g,We=e=>G[e]??(G[e]=He.test(e)?e:e.replaceAll(Ue,e=>`-${e.toLowerCase()}`)),Ge=/^(t(ext$|s)|s[vwy]|g)|^set|tad|ker|p(at|s)|s(to|c$|ca|k)|r(ec|cl)|ew|us|f($|e|s)|cu|n[ei]|l[ty]|[GOP]/,K=Object.create(null),Ke=e=>e in K?K[e]??!1:K[e]=Ge.test(e)&&!e.includes(`-`);(0,n.createContext)(Object.create(null));var qe=new Set([`mjx`]),q=RegExp(`(?:${[...qe].join(`|`)})-.+`,`g`),J=Object.create(null),Y=e=>typeof e==`string`?J[e]??(J[e]=e.replaceAll(q,e=>e.replaceAll(`-`,`_`))):e,X=(e,t)=>{let n={};for(let r of Object.keys(e))n[Je(r,t)]=typeof e[r]==`object`&&!Array.isArray(e[r])?X(e[r],t):Y(e[r]);return n},Z=e=>e.children,Q=(e,t)=>typeof e==`function`?e.name===`Fragment`?Z(t):e(X(t)):(0,n.createComponent)(Be,(0,n.mergeProps)(Ve(e)?t:X(t,e),{component:Y(e)})),Je=(e,t=``)=>Ke(t)?e=e===`xlinkHref`||e===`xlink:href`?`href`:We(e):e,Ye=Q;function $(){return ee(t.init().render(),{Fragment:Z,jsx:Q,jsxs:Ye,elementAttributeNameCase:`html`,stylePropertyNameCase:`css`})}exports.SeamlineSettings=$,exports.default=$;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`../lib-cjGq4QSq.cjs`),t=require(`../main.cjs`);let n=require(`solid-jsx/jsx-runtime`);var r=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,i=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a={};function o(e,t){return((t||a).jsx?i:r).test(e)}var s=/[ \t\n\f\r]/g;function c(e){return typeof e==`object`?e.type===`text`?l(e.value):!1:l(e)}function l(e){return e.replace(s,``)===``}var u=e.c(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
2
+ `,d=`/`,f=`*`,p=``,m=`comment`,h=`declaration`;function g(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,g=1;function v(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function y(){var e={line:l,column:g};return function(t){return t.position=new b(e),C(),t}}function b(e){this.start=e,this.end={line:l,column:g},this.source=t.source}b.prototype.content=e;function x(n){var r=Error(t.source+`:`+l+`:`+g+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=g,r.source=e,!t.silent)throw r}function S(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function C(){S(i)}function w(e){var t;for(e||=[];t=T();)t!==!1&&e.push(t);return e}function T(){var t=y();if(!(d!=e.charAt(0)||f!=e.charAt(1))){for(var n=2;p!=e.charAt(n)&&(f!=e.charAt(n)||d!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return x(`End of comment missing`);var r=e.slice(2,n-2);return g+=2,v(r),e=e.slice(n),g+=2,t({type:m,comment:r})}}function E(){var e=y(),t=S(a);if(t){if(T(),!S(o))return x(`property missing ':'`);var r=S(s),i=e({type:h,property:_(t[0].replace(n,p)),value:r?_(r[0].replace(n,p)):p});return S(c),i}}function D(){var e=[];w(e);for(var t;t=E();)t!==!1&&(e.push(t),w(e));return e}return C(),D()}function _(e){return e?e.replace(l,p):p}t.exports=g})),d=e.c((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.default=r;var n=t(u());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),f=e.c((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),p=e.c(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(d()),r=f();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i}));const m=h(`start`);function h(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function g(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?v(e.position):`start`in e||`end`in e?v(e):`line`in e||`column`in e?_(e):``}function _(e){return y(e&&e.line)+`:`+y(e&&e.column)}function v(e){return _(e&&e.start)+`-`+_(e&&e.end)}function y(e){return e&&typeof e==`number`?e:1}var b=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=g(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};b.prototype.file=``,b.prototype.name=``,b.prototype.reason=``,b.prototype.message=``,b.prototype.stack=``,b.prototype.column=void 0,b.prototype.line=void 0,b.prototype.ancestors=void 0,b.prototype.cause=void 0,b.prototype.fatal=void 0,b.prototype.place=void 0,b.prototype.ruleId=void 0,b.prototype.source=void 0;var x=e.l(p(),1),S={}.hasOwnProperty,C=new Map,w=/[A-Z]/g,T=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),E=new Set([`td`,`th`]),D=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function O(t,n){if(!n||n.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let r=n.filePath||void 0,i;if(n.development){if(typeof n.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");i=z(r,n.jsxDEV)}else{if(typeof n.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof n.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");i=R(r,n.jsx,n.jsxs)}let a={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:i,elementAttributeNameCase:n.elementAttributeNameCase||`react`,evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space===`svg`?e.a:e.i,stylePropertyNameCase:n.stylePropertyNameCase||`dom`,tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=k(a,t,void 0);return o&&typeof o!=`string`?o:a.create(t,a.Fragment,{children:o||void 0},void 0)}function k(e,t,n){if(t.type===`element`)return A(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return j(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return N(e,t,n);if(t.type===`mdxjsEsm`)return M(e,t);if(t.type===`root`)return P(e,t,n);if(t.type===`text`)return F(e,t)}function A(t,n,r){let i=t.schema,a=i;n.tagName.toLowerCase()===`svg`&&i.space===`html`&&(a=e.a,t.schema=a),t.ancestors.push(n);let o=G(t,n.tagName,!1),s=B(t,n),l=H(t,n);return T.has(n.tagName)&&(l=l.filter(function(e){return typeof e==`string`?!c(e):!0})),I(t,s,o,n),L(s,l),t.ancestors.pop(),t.schema=i,t.create(n,o,s,r)}function j(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}K(e,t.position)}function M(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);K(e,t.position)}function N(t,n,r){let i=t.schema,a=i;n.name===`svg`&&i.space===`html`&&(a=e.a,t.schema=a),t.ancestors.push(n);let o=n.name===null?t.Fragment:G(t,n.name,!0),s=V(t,n),c=H(t,n);return I(t,s,o,n),L(s,c),t.ancestors.pop(),t.schema=i,t.create(n,o,s,r)}function P(e,t,n){let r={};return L(r,H(e,t)),e.create(t,e.Fragment,r,n)}function F(e,t){return t.value}function I(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function L(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function R(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function z(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=m(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function B(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&S.call(t.properties,i)){let a=U(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&E.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function V(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else K(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else K(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function H(e,t){let n=[],r=-1,i=e.passKeys?new Map:C;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=k(e,a,o);s!==void 0&&n.push(s)}return n}function U(t,n,r){let i=e.o(t.schema,n);if(!(r==null||typeof r==`number`&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?e.r(r):e.n(r)),i.property===`style`){let e=typeof r==`object`?r:W(t,String(r));return t.stylePropertyNameCase===`css`&&(e=q(e)),[`style`,e]}return[t.elementAttributeNameCase===`react`&&i.space?e.s[i.property]||i.property:i.attribute,r]}}function W(e,t){try{return(0,x.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new b("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=D+`#cannot-parse-style-attribute`,r}}function G(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=o(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=o(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return S.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);K(e)}function K(e,t){let n=new b("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=D+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function q(e){let t={},n;for(n in e)S.call(e,n)&&(t[J(n)]=e[n]);return t}function J(e){let t=e.replace(w,Y);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function Y(e){return`-`+e.toLowerCase()}function X(){return O(t.init().render(),{Fragment:n.Fragment,jsx:n.jsx,jsxs:n.jsxs,elementAttributeNameCase:`html`,stylePropertyNameCase:`css`})}exports.SeamlineSettings=X,exports.default=X;
@@ -1,7 +1,7 @@
1
1
  import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s } from "../lib-DIb46Sli.js";
2
2
  import { init as c } from "../main.js";
3
- import { createComponent as l, createContext as u, createMemo as d, createRenderEffect as f, mergeProps as p, sharedConfig as m, splitProps as h, untrack as g } from "solid-js";
4
- var _ = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, v = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, y = {};
3
+ import { Fragment as l, jsx as u, jsxs as d } from "solid-jsx/jsx-runtime";
4
+ var f = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, p = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, m = {};
5
5
  /**
6
6
  * Checks if the given value is a valid identifier name.
7
7
  *
@@ -12,13 +12,13 @@ var _ = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, v = /^[$_\p{I
12
12
  * @returns {boolean}
13
13
  * Whether `name` can be an identifier.
14
14
  */
15
- function b(e, t) {
16
- return ((t || y).jsx ? v : _).test(e);
15
+ function h(e, t) {
16
+ return ((t || m).jsx ? p : f).test(e);
17
17
  }
18
18
  /**
19
19
  * @typedef {import('hast').Nodes} Nodes
20
20
  */
21
- var x = /[ \t\n\f\r]/g;
21
+ var g = /[ \t\n\f\r]/g;
22
22
  /**
23
23
  * Check if the given value is *inter-element whitespace*.
24
24
  *
@@ -30,17 +30,17 @@ var x = /[ \t\n\f\r]/g;
30
30
  * (`\r`), or form feed (`\f`); if a node is passed it must be a `Text` node,
31
31
  * whose `value` field is checked.
32
32
  */
33
- function S(e) {
34
- return typeof e == "object" ? e.type === "text" ? C(e.value) : !1 : C(e);
33
+ function _(e) {
34
+ return typeof e == "object" ? e.type === "text" ? v(e.value) : !1 : v(e);
35
35
  }
36
36
  /**
37
37
  * @param {string} value
38
38
  * @returns {boolean}
39
39
  */
40
- function C(e) {
41
- return e.replace(x, "") === "";
40
+ function v(e) {
41
+ return e.replace(g, "") === "";
42
42
  }
43
- var w = /* @__PURE__ */ t(((e, t) => {
43
+ var y = /* @__PURE__ */ t(((e, t) => {
44
44
  var n = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, r = /\n/g, i = /^\s*/, a = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, o = /^:\s*/, s = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, c = /^[;\s]*/, l = /^\s+|\s+$/g, u = "\n", d = "/", f = "*", p = "", m = "comment", h = "declaration";
45
45
  /**
46
46
  * @param {String} style
@@ -199,12 +199,12 @@ var w = /* @__PURE__ */ t(((e, t) => {
199
199
  return e ? e.replace(l, p) : p;
200
200
  }
201
201
  t.exports = g;
202
- })), T = /* @__PURE__ */ t(((e) => {
202
+ })), b = /* @__PURE__ */ t(((e) => {
203
203
  var t = e && e.__importDefault || function(e) {
204
204
  return e && e.__esModule ? e : { default: e };
205
205
  };
206
206
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = r;
207
- var n = t(w());
207
+ var n = t(y());
208
208
  /**
209
209
  * Parses inline style to object.
210
210
  *
@@ -229,7 +229,7 @@ var w = /* @__PURE__ */ t(((e, t) => {
229
229
  a ? t(n, i, e) : i && (r ||= {}, r[n] = i);
230
230
  }), r;
231
231
  }
232
- })), E = /* @__PURE__ */ t(((e) => {
232
+ })), x = /* @__PURE__ */ t(((e) => {
233
233
  Object.defineProperty(e, "__esModule", { value: !0 }), e.camelCase = void 0;
234
234
  var t = /^--[a-zA-Z0-9_-]+$/, n = /-([a-z])/g, r = /^[^-]+$/, i = /^-(webkit|moz|ms|o|khtml)-/, a = /^-(ms)-/, o = function(e) {
235
235
  return !e || r.test(e) || t.test(e);
@@ -241,10 +241,10 @@ var w = /* @__PURE__ */ t(((e, t) => {
241
241
  e.camelCase = function(e, t) {
242
242
  return t === void 0 && (t = {}), o(e) ? e : (e = e.toLowerCase(), e = t.reactCompat ? e.replace(a, c) : e.replace(i, c), e.replace(n, s));
243
243
  };
244
- })), D = /* @__PURE__ */ t(((e, t) => {
244
+ })), S = /* @__PURE__ */ t(((e, t) => {
245
245
  var n = (e && e.__importDefault || function(e) {
246
246
  return e && e.__esModule ? e : { default: e };
247
- })(T()), r = E();
247
+ })(b()), r = x();
248
248
  /**
249
249
  * Parses CSS inline style to JavaScript object (camelCased).
250
250
  */
@@ -264,7 +264,7 @@ var w = /* @__PURE__ */ t(((e, t) => {
264
264
  * @returns
265
265
  * Point.
266
266
  */
267
- const ee = te("start");
267
+ const C = w("start");
268
268
  /**
269
269
  * Get the positional info of `node`.
270
270
  *
@@ -273,7 +273,7 @@ const ee = te("start");
273
273
  * @returns
274
274
  * Getter.
275
275
  */
276
- function te(e) {
276
+ function w(e) {
277
277
  return t;
278
278
  /**
279
279
  * Get the point info of `node` at a bound side.
@@ -324,28 +324,28 @@ function te(e) {
324
324
  * An empty string (`''`) is returned if the given value is neither `node`,
325
325
  * `position`, nor `point`.
326
326
  */
327
- function ne(e) {
328
- return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? k(e.position) : "start" in e || "end" in e ? k(e) : "line" in e || "column" in e ? O(e) : "";
327
+ function T(e) {
328
+ return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? D(e.position) : "start" in e || "end" in e ? D(e) : "line" in e || "column" in e ? E(e) : "";
329
329
  }
330
330
  /**
331
331
  * @param {Point | PointLike | null | undefined} point
332
332
  * @returns {string}
333
333
  */
334
- function O(e) {
335
- return A(e && e.line) + ":" + A(e && e.column);
334
+ function E(e) {
335
+ return O(e && e.line) + ":" + O(e && e.column);
336
336
  }
337
337
  /**
338
338
  * @param {Position | PositionLike | null | undefined} pos
339
339
  * @returns {string}
340
340
  */
341
- function k(e) {
342
- return O(e && e.start) + "-" + O(e && e.end);
341
+ function D(e) {
342
+ return E(e && e.start) + "-" + E(e && e.end);
343
343
  }
344
344
  /**
345
345
  * @param {number | null | undefined} value
346
346
  * @returns {number}
347
347
  */
348
- function A(e) {
348
+ function O(e) {
349
349
  return e && typeof e == "number" ? e : 1;
350
350
  }
351
351
  /**
@@ -370,7 +370,7 @@ function A(e) {
370
370
  /**
371
371
  * Message.
372
372
  */
373
- var j = class extends Error {
373
+ var k = class extends Error {
374
374
  /**
375
375
  * Create a message for `reason`.
376
376
  *
@@ -449,10 +449,10 @@ var j = class extends Error {
449
449
  *
450
450
  * @type {string | undefined}
451
451
  */
452
- this.ancestors = i.ancestors || void 0, this.cause = i.cause || void 0, this.column = o ? o.column : void 0, this.fatal = void 0, this.file = "", this.message = r, this.line = o ? o.line : void 0, this.name = ne(i.place) || "1:1", this.place = i.place || void 0, this.reason = this.message, this.ruleId = i.ruleId || void 0, this.source = i.source || void 0, this.stack = a && i.cause && typeof i.cause.stack == "string" ? i.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
452
+ this.ancestors = i.ancestors || void 0, this.cause = i.cause || void 0, this.column = o ? o.column : void 0, this.fatal = void 0, this.file = "", this.message = r, this.line = o ? o.line : void 0, this.name = T(i.place) || "1:1", this.place = i.place || void 0, this.reason = this.message, this.ruleId = i.ruleId || void 0, this.source = i.source || void 0, this.stack = a && i.cause && typeof i.cause.stack == "string" ? i.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
453
453
  }
454
454
  };
455
- j.prototype.file = "", j.prototype.name = "", j.prototype.reason = "", j.prototype.message = "", j.prototype.stack = "", j.prototype.column = void 0, j.prototype.line = void 0, j.prototype.ancestors = void 0, j.prototype.cause = void 0, j.prototype.fatal = void 0, j.prototype.place = void 0, j.prototype.ruleId = void 0, j.prototype.source = void 0;
455
+ k.prototype.file = "", k.prototype.name = "", k.prototype.reason = "", k.prototype.message = "", k.prototype.stack = "", k.prototype.column = void 0, k.prototype.line = void 0, k.prototype.ancestors = void 0, k.prototype.cause = void 0, k.prototype.fatal = void 0, k.prototype.place = void 0, k.prototype.ruleId = void 0, k.prototype.source = void 0;
456
456
  /**
457
457
  * @import {Identifier, Literal, MemberExpression} from 'estree'
458
458
  * @import {Jsx, JsxDev, Options, Props} from 'hast-util-to-jsx-runtime'
@@ -463,13 +463,13 @@ j.prototype.file = "", j.prototype.name = "", j.prototype.reason = "", j.prototy
463
463
  * @import {Position} from 'unist'
464
464
  * @import {Child, Create, Field, JsxElement, State, Style} from './types.js'
465
465
  */
466
- var re = /* @__PURE__ */ r(D(), 1), M = {}.hasOwnProperty, ie = /* @__PURE__ */ new Map(), ae = /[A-Z]/g, oe = new Set([
466
+ var ee = /* @__PURE__ */ r(S(), 1), A = {}.hasOwnProperty, j = /* @__PURE__ */ new Map(), M = /[A-Z]/g, N = new Set([
467
467
  "table",
468
468
  "tbody",
469
469
  "thead",
470
470
  "tfoot",
471
471
  "tr"
472
- ]), se = new Set(["td", "th"]), N = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
472
+ ]), P = new Set(["td", "th"]), F = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
473
473
  /**
474
474
  * Transform a hast tree to preact, react, solid, svelte, vue, etc.,
475
475
  * with an automatic JSX runtime.
@@ -481,16 +481,16 @@ var re = /* @__PURE__ */ r(D(), 1), M = {}.hasOwnProperty, ie = /* @__PURE__ */
481
481
  * @returns {JsxElement}
482
482
  * JSX element.
483
483
  */
484
- function ce(t, r) {
484
+ function I(t, r) {
485
485
  if (!r || r.Fragment === void 0) throw TypeError("Expected `Fragment` in options");
486
486
  let i = r.filePath || void 0, a;
487
487
  if (r.development) {
488
488
  if (typeof r.jsxDEV != "function") throw TypeError("Expected `jsxDEV` in options when `development: true`");
489
- a = ge(i, r.jsxDEV);
489
+ a = q(i, r.jsxDEV);
490
490
  } else {
491
491
  if (typeof r.jsx != "function") throw TypeError("Expected `jsx` in production options");
492
492
  if (typeof r.jsxs != "function") throw TypeError("Expected `jsxs` in production options");
493
- a = he(i, r.jsx, r.jsxs);
493
+ a = K(i, r.jsx, r.jsxs);
494
494
  }
495
495
  /** @type {State} */
496
496
  let o = {
@@ -507,7 +507,7 @@ function ce(t, r) {
507
507
  schema: r.space === "svg" ? e : n,
508
508
  stylePropertyNameCase: r.stylePropertyNameCase || "dom",
509
509
  tableCellAlignToStyle: r.tableCellAlignToStyle !== !1
510
- }, s = P(o, t, void 0);
510
+ }, s = L(o, t, void 0);
511
511
  return s && typeof s != "string" ? s : o.create(t, o.Fragment, { children: s || void 0 }, void 0);
512
512
  }
513
513
  /**
@@ -522,13 +522,13 @@ function ce(t, r) {
522
522
  * @returns {Child | undefined}
523
523
  * Child, optional.
524
524
  */
525
- function P(e, t, n) {
526
- if (t.type === "element") return le(e, t, n);
527
- if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression") return ue(e, t);
528
- if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement") return fe(e, t, n);
529
- if (t.type === "mdxjsEsm") return de(e, t);
530
- if (t.type === "root") return pe(e, t, n);
531
- if (t.type === "text") return me(e, t);
525
+ function L(e, t, n) {
526
+ if (t.type === "element") return R(e, t, n);
527
+ if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression") return z(e, t);
528
+ if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement") return V(e, t, n);
529
+ if (t.type === "mdxjsEsm") return B(e, t);
530
+ if (t.type === "root") return H(e, t, n);
531
+ if (t.type === "text") return U(e, t);
532
532
  }
533
533
  /**
534
534
  * Handle element.
@@ -542,13 +542,13 @@ function P(e, t, n) {
542
542
  * @returns {Child | undefined}
543
543
  * Child, optional.
544
544
  */
545
- function le(t, n, r) {
545
+ function R(t, n, r) {
546
546
  let i = t.schema, a = i;
547
547
  n.tagName.toLowerCase() === "svg" && i.space === "html" && (a = e, t.schema = a), t.ancestors.push(n);
548
- let o = R(t, n.tagName, !1), s = _e(t, n), c = L(t, n);
549
- return oe.has(n.tagName) && (c = c.filter(function(e) {
550
- return typeof e == "string" ? !S(e) : !0;
551
- })), F(t, s, o, n), I(s, c), t.ancestors.pop(), t.schema = i, t.create(n, o, s, r);
548
+ let o = Z(t, n.tagName, !1), s = J(t, n), c = X(t, n);
549
+ return N.has(n.tagName) && (c = c.filter(function(e) {
550
+ return typeof e == "string" ? !_(e) : !0;
551
+ })), W(t, s, o, n), G(s, c), t.ancestors.pop(), t.schema = i, t.create(n, o, s, r);
552
552
  }
553
553
  /**
554
554
  * Handle MDX expression.
@@ -560,12 +560,12 @@ function le(t, n, r) {
560
560
  * @returns {Child | undefined}
561
561
  * Child, optional.
562
562
  */
563
- function ue(e, t) {
563
+ function z(e, t) {
564
564
  if (t.data && t.data.estree && e.evaluater) {
565
565
  let n = t.data.estree.body[0];
566
566
  return n.type, e.evaluater.evaluateExpression(n.expression);
567
567
  }
568
- z(e, t.position);
568
+ Q(e, t.position);
569
569
  }
570
570
  /**
571
571
  * Handle MDX ESM.
@@ -577,9 +577,9 @@ function ue(e, t) {
577
577
  * @returns {Child | undefined}
578
578
  * Child, optional.
579
579
  */
580
- function de(e, t) {
580
+ function B(e, t) {
581
581
  if (t.data && t.data.estree && e.evaluater) return e.evaluater.evaluateProgram(t.data.estree);
582
- z(e, t.position);
582
+ Q(e, t.position);
583
583
  }
584
584
  /**
585
585
  * Handle MDX JSX.
@@ -593,11 +593,11 @@ function de(e, t) {
593
593
  * @returns {Child | undefined}
594
594
  * Child, optional.
595
595
  */
596
- function fe(t, n, r) {
596
+ function V(t, n, r) {
597
597
  let i = t.schema, a = i;
598
598
  n.name === "svg" && i.space === "html" && (a = e, t.schema = a), t.ancestors.push(n);
599
- let o = n.name === null ? t.Fragment : R(t, n.name, !0), s = ve(t, n), c = L(t, n);
600
- return F(t, s, o, n), I(s, c), t.ancestors.pop(), t.schema = i, t.create(n, o, s, r);
599
+ let o = n.name === null ? t.Fragment : Z(t, n.name, !0), s = Y(t, n), c = X(t, n);
600
+ return W(t, s, o, n), G(s, c), t.ancestors.pop(), t.schema = i, t.create(n, o, s, r);
601
601
  }
602
602
  /**
603
603
  * Handle root.
@@ -611,10 +611,10 @@ function fe(t, n, r) {
611
611
  * @returns {Child | undefined}
612
612
  * Child, optional.
613
613
  */
614
- function pe(e, t, n) {
614
+ function H(e, t, n) {
615
615
  /** @type {Props} */
616
616
  let r = {};
617
- return I(r, L(e, t)), e.create(t, e.Fragment, r, n);
617
+ return G(r, X(e, t)), e.create(t, e.Fragment, r, n);
618
618
  }
619
619
  /**
620
620
  * Handle text.
@@ -626,7 +626,7 @@ function pe(e, t, n) {
626
626
  * @returns {Child | undefined}
627
627
  * Child, optional.
628
628
  */
629
- function me(e, t) {
629
+ function U(e, t) {
630
630
  return t.value;
631
631
  }
632
632
  /**
@@ -643,7 +643,7 @@ function me(e, t) {
643
643
  * @returns {undefined}
644
644
  * Nothing.
645
645
  */
646
- function F(e, t, n, r) {
646
+ function W(e, t, n, r) {
647
647
  typeof n != "string" && n !== e.Fragment && e.passNode && (t.node = r);
648
648
  }
649
649
  /**
@@ -656,7 +656,7 @@ function F(e, t, n, r) {
656
656
  * @returns {undefined}
657
657
  * Nothing.
658
658
  */
659
- function I(e, t) {
659
+ function G(e, t) {
660
660
  if (t.length > 0) {
661
661
  let n = t.length > 1 ? t : t[0];
662
662
  n && (e.children = n);
@@ -672,7 +672,7 @@ function I(e, t) {
672
672
  * @returns {Create}
673
673
  * Create a production element.
674
674
  */
675
- function he(e, t, n) {
675
+ function K(e, t, n) {
676
676
  return r;
677
677
  /** @type {Create} */
678
678
  function r(e, r, i, a) {
@@ -688,11 +688,11 @@ function he(e, t, n) {
688
688
  * @returns {Create}
689
689
  * Create a development element.
690
690
  */
691
- function ge(e, t) {
691
+ function q(e, t) {
692
692
  return n;
693
693
  /** @type {Create} */
694
694
  function n(n, r, i, a) {
695
- let o = Array.isArray(i.children), s = ee(n);
695
+ let o = Array.isArray(i.children), s = C(n);
696
696
  return t(r, i, a, o, {
697
697
  columnNumber: s ? s.column - 1 : void 0,
698
698
  fileName: e,
@@ -710,14 +710,14 @@ function ge(e, t) {
710
710
  * @returns {Props}
711
711
  * Props.
712
712
  */
713
- function _e(e, t) {
713
+ function J(e, t) {
714
714
  /** @type {Props} */
715
715
  let n = {}, r, i;
716
- for (i in t.properties) if (i !== "children" && M.call(t.properties, i)) {
717
- let a = ye(e, i, t.properties[i]);
716
+ for (i in t.properties) if (i !== "children" && A.call(t.properties, i)) {
717
+ let a = te(e, i, t.properties[i]);
718
718
  if (a) {
719
719
  let [i, o] = a;
720
- e.tableCellAlignToStyle && i === "align" && typeof o == "string" && se.has(t.tagName) ? r = o : n[i] = o;
720
+ e.tableCellAlignToStyle && i === "align" && typeof o == "string" && P.has(t.tagName) ? r = o : n[i] = o;
721
721
  }
722
722
  }
723
723
  if (r) {
@@ -736,7 +736,7 @@ function _e(e, t) {
736
736
  * @returns {Props}
737
737
  * Props.
738
738
  */
739
- function ve(e, t) {
739
+ function Y(e, t) {
740
740
  /** @type {Props} */
741
741
  let n = {};
742
742
  for (let r of t.attributes) if (r.type === "mdxJsxExpressionAttribute") if (r.data && r.data.estree && e.evaluater) {
@@ -746,13 +746,13 @@ function ve(e, t) {
746
746
  i.type;
747
747
  let a = i.properties[0];
748
748
  a.type, Object.assign(n, e.evaluater.evaluateExpression(a.argument));
749
- } else z(e, t.position);
749
+ } else Q(e, t.position);
750
750
  else {
751
751
  let i = r.name, a;
752
752
  if (r.value && typeof r.value == "object") if (r.value.data && r.value.data.estree && e.evaluater) {
753
753
  let t = r.value.data.estree.body[0];
754
754
  t.type, a = e.evaluater.evaluateExpression(t.expression);
755
- } else z(e, t.position);
755
+ } else Q(e, t.position);
756
756
  else a = r.value === null ? !0 : r.value;
757
757
  n[i] = a;
758
758
  }
@@ -768,9 +768,9 @@ function ve(e, t) {
768
768
  * @returns {Array<Child>}
769
769
  * Children.
770
770
  */
771
- function L(e, t) {
771
+ function X(e, t) {
772
772
  /** @type {Array<Child>} */
773
- let n = [], r = -1, i = e.passKeys ? /* @__PURE__ */ new Map() : ie;
773
+ let n = [], r = -1, i = e.passKeys ? /* @__PURE__ */ new Map() : j;
774
774
  for (; ++r < t.children.length;) {
775
775
  let a = t.children[r], o;
776
776
  if (e.passKeys) {
@@ -780,7 +780,7 @@ function L(e, t) {
780
780
  o = e + "-" + t, i.set(e, t + 1);
781
781
  }
782
782
  }
783
- let s = P(e, a, o);
783
+ let s = L(e, a, o);
784
784
  s !== void 0 && n.push(s);
785
785
  }
786
786
  return n;
@@ -797,12 +797,12 @@ function L(e, t) {
797
797
  * @returns {Field | undefined}
798
798
  * Field for runtime, optional.
799
799
  */
800
- function ye(e, t, n) {
800
+ function te(e, t, n) {
801
801
  let r = a(e.schema, t);
802
802
  if (!(n == null || typeof n == "number" && Number.isNaN(n))) {
803
803
  if (Array.isArray(n) && (n = r.commaSeparated ? o(n) : i(n)), r.property === "style") {
804
- let t = typeof n == "object" ? n : be(e, String(n));
805
- return e.stylePropertyNameCase === "css" && (t = xe(t)), ["style", t];
804
+ let t = typeof n == "object" ? n : ne(e, String(n));
805
+ return e.stylePropertyNameCase === "css" && (t = re(t)), ["style", t];
806
806
  }
807
807
  return [e.elementAttributeNameCase === "react" && r.space ? s[r.property] || r.property : r.attribute, n];
808
808
  }
@@ -819,18 +819,18 @@ function ye(e, t, n) {
819
819
  * @throws
820
820
  * Throws `VFileMessage` when CSS cannot be parsed.
821
821
  */
822
- function be(e, t) {
822
+ function ne(e, t) {
823
823
  try {
824
- return (0, re.default)(t, { reactCompat: !0 });
824
+ return (0, ee.default)(t, { reactCompat: !0 });
825
825
  } catch (t) {
826
826
  if (e.ignoreInvalidStyle) return {};
827
- let n = t, r = new j("Cannot parse `style` attribute", {
827
+ let n = t, r = new k("Cannot parse `style` attribute", {
828
828
  ancestors: e.ancestors,
829
829
  cause: n,
830
830
  ruleId: "style",
831
831
  source: "hast-util-to-jsx-runtime"
832
832
  });
833
- throw r.file = e.filePath || void 0, r.url = N + "#cannot-parse-style-attribute", r;
833
+ throw r.file = e.filePath || void 0, r.url = F + "#cannot-parse-style-attribute", r;
834
834
  }
835
835
  }
836
836
  /**
@@ -845,7 +845,7 @@ function be(e, t) {
845
845
  * @returns {unknown}
846
846
  * To do.
847
847
  */
848
- function R(e, t, n) {
848
+ function Z(e, t, n) {
849
849
  /** @type {Identifier | Literal | MemberExpression} */
850
850
  let r;
851
851
  if (!n) r = {
@@ -856,7 +856,7 @@ function R(e, t, n) {
856
856
  let e = t.split("."), n = -1, i;
857
857
  for (; ++n < e.length;) {
858
858
  /** @type {Identifier | Literal} */
859
- let t = b(e[n]) ? {
859
+ let t = h(e[n]) ? {
860
860
  type: "Identifier",
861
861
  name: e[n]
862
862
  } : {
@@ -872,7 +872,7 @@ function R(e, t, n) {
872
872
  } : t;
873
873
  }
874
874
  r = i;
875
- } else r = b(t) && !/^[a-z]/.test(t) ? {
875
+ } else r = h(t) && !/^[a-z]/.test(t) ? {
876
876
  type: "Identifier",
877
877
  name: t
878
878
  } : {
@@ -881,24 +881,24 @@ function R(e, t, n) {
881
881
  };
882
882
  if (r.type === "Literal") {
883
883
  let t = r.value;
884
- return M.call(e.components, t) ? e.components[t] : t;
884
+ return A.call(e.components, t) ? e.components[t] : t;
885
885
  }
886
886
  if (e.evaluater) return e.evaluater.evaluateExpression(r);
887
- z(e);
887
+ Q(e);
888
888
  }
889
889
  /**
890
890
  * @param {State} state
891
891
  * @param {Position | undefined} [place]
892
892
  * @returns {never}
893
893
  */
894
- function z(e, t) {
895
- let n = new j("Cannot handle MDX estrees without `createEvaluater`", {
894
+ function Q(e, t) {
895
+ let n = new k("Cannot handle MDX estrees without `createEvaluater`", {
896
896
  ancestors: e.ancestors,
897
897
  place: t,
898
898
  ruleId: "mdx-estree",
899
899
  source: "hast-util-to-jsx-runtime"
900
900
  });
901
- throw n.file = e.filePath || void 0, n.url = N + "#cannot-handle-mdx-estrees-without-createevaluater", n;
901
+ throw n.file = e.filePath || void 0, n.url = F + "#cannot-handle-mdx-estrees-without-createevaluater", n;
902
902
  }
903
903
  /**
904
904
  * Transform a DOM casing style object to a CSS casing style object.
@@ -906,10 +906,10 @@ function z(e, t) {
906
906
  * @param {Style} domCasing
907
907
  * @returns {Style}
908
908
  */
909
- function xe(e) {
909
+ function re(e) {
910
910
  /** @type {Style} */
911
911
  let t = {}, n;
912
- for (n in e) M.call(e, n) && (t[Se(n)] = e[n]);
912
+ for (n in e) A.call(e, n) && (t[ie(n)] = e[n]);
913
913
  return t;
914
914
  }
915
915
  /**
@@ -918,8 +918,8 @@ function xe(e) {
918
918
  * @param {string} from
919
919
  * @returns {string}
920
920
  */
921
- function Se(e) {
922
- let t = e.replace(ae, Ce);
921
+ function ie(e) {
922
+ let t = e.replace(M, ae);
923
923
  return t.slice(0, 3) === "ms-" && (t = "-" + t), t;
924
924
  }
925
925
  /**
@@ -930,467 +930,14 @@ function Se(e) {
930
930
  * @returns {string}
931
931
  * Dash and lower letter.
932
932
  */
933
- function Ce(e) {
933
+ function ae(e) {
934
934
  return "-" + e.toLowerCase();
935
935
  }
936
- var we = /* @__PURE__ */ new Set([
937
- "className",
938
- "value",
939
- "readOnly",
940
- "noValidate",
941
- "formNoValidate",
942
- "isMap",
943
- "noModule",
944
- "playsInline",
945
- "adAuctionHeaders",
946
- "allowFullscreen",
947
- "browsingTopics",
948
- "defaultChecked",
949
- "defaultMuted",
950
- "defaultSelected",
951
- "disablePictureInPicture",
952
- "disableRemotePlayback",
953
- "preservesPitch",
954
- "shadowRootClonable",
955
- "shadowRootCustomElementRegistry",
956
- "shadowRootDelegatesFocus",
957
- "shadowRootSerializable",
958
- "sharedStorageWritable",
959
- .../* @__PURE__ */ "allowfullscreen.async.alpha.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.hidden.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.adauctionheaders.browsingtopics.credentialless.defaultchecked.defaultmuted.defaultselected.defer.disablepictureinpicture.disableremoteplayback.preservespitch.shadowrootclonable.shadowrootcustomelementregistry.shadowrootdelegatesfocus.shadowrootserializable.sharedstoragewritable".split(".")
960
- ]), Te = /* @__PURE__ */ new Set([
961
- "innerHTML",
962
- "textContent",
963
- "innerText",
964
- "children"
965
- ]), Ee = /* @__PURE__ */ Object.assign(Object.create(null), {
966
- className: "class",
967
- htmlFor: "for"
968
- }), De = /* @__PURE__ */ Object.assign(Object.create(null), {
969
- class: "className",
970
- novalidate: {
971
- $: "noValidate",
972
- FORM: 1
973
- },
974
- formnovalidate: {
975
- $: "formNoValidate",
976
- BUTTON: 1,
977
- INPUT: 1
978
- },
979
- ismap: {
980
- $: "isMap",
981
- IMG: 1
982
- },
983
- nomodule: {
984
- $: "noModule",
985
- SCRIPT: 1
986
- },
987
- playsinline: {
988
- $: "playsInline",
989
- VIDEO: 1
990
- },
991
- readonly: {
992
- $: "readOnly",
993
- INPUT: 1,
994
- TEXTAREA: 1
995
- },
996
- adauctionheaders: {
997
- $: "adAuctionHeaders",
998
- IFRAME: 1
999
- },
1000
- allowfullscreen: {
1001
- $: "allowFullscreen",
1002
- IFRAME: 1
1003
- },
1004
- browsingtopics: {
1005
- $: "browsingTopics",
1006
- IMG: 1
1007
- },
1008
- defaultchecked: {
1009
- $: "defaultChecked",
1010
- INPUT: 1
1011
- },
1012
- defaultmuted: {
1013
- $: "defaultMuted",
1014
- AUDIO: 1,
1015
- VIDEO: 1
1016
- },
1017
- defaultselected: {
1018
- $: "defaultSelected",
1019
- OPTION: 1
1020
- },
1021
- disablepictureinpicture: {
1022
- $: "disablePictureInPicture",
1023
- VIDEO: 1
1024
- },
1025
- disableremoteplayback: {
1026
- $: "disableRemotePlayback",
1027
- AUDIO: 1,
1028
- VIDEO: 1
1029
- },
1030
- preservespitch: {
1031
- $: "preservesPitch",
1032
- AUDIO: 1,
1033
- VIDEO: 1
1034
- },
1035
- shadowrootclonable: {
1036
- $: "shadowRootClonable",
1037
- TEMPLATE: 1
1038
- },
1039
- shadowrootdelegatesfocus: {
1040
- $: "shadowRootDelegatesFocus",
1041
- TEMPLATE: 1
1042
- },
1043
- shadowrootserializable: {
1044
- $: "shadowRootSerializable",
1045
- TEMPLATE: 1
1046
- },
1047
- sharedstoragewritable: {
1048
- $: "sharedStorageWritable",
1049
- IFRAME: 1,
1050
- IMG: 1
1051
- }
1052
- });
1053
- function Oe(e, t) {
1054
- let n = De[e];
1055
- return typeof n == "object" ? n[t] ? n.$ : void 0 : n;
1056
- }
1057
- var ke = /* @__PURE__ */ new Set([
1058
- "beforeinput",
1059
- "click",
1060
- "dblclick",
1061
- "contextmenu",
1062
- "focusin",
1063
- "focusout",
1064
- "input",
1065
- "keydown",
1066
- "keyup",
1067
- "mousedown",
1068
- "mousemove",
1069
- "mouseout",
1070
- "mouseover",
1071
- "mouseup",
1072
- "pointerdown",
1073
- "pointermove",
1074
- "pointerout",
1075
- "pointerover",
1076
- "pointerup",
1077
- "touchend",
1078
- "touchmove",
1079
- "touchstart"
1080
- ]), Ae = /* @__PURE__ */ new Set(/* @__PURE__ */ "altGlyph.altGlyphDef.altGlyphItem.animate.animateColor.animateMotion.animateTransform.circle.clipPath.color-profile.cursor.defs.desc.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.font.font-face.font-face-format.font-face-name.font-face-src.font-face-uri.foreignObject.g.glyph.glyphRef.hkern.image.line.linearGradient.marker.mask.metadata.missing-glyph.mpath.path.pattern.polygon.polyline.radialGradient.rect.set.stop.svg.switch.symbol.text.textPath.tref.tspan.use.view.vkern".split(".")), je = {
1081
- xlink: "http://www.w3.org/1999/xlink",
1082
- xml: "http://www.w3.org/XML/1998/namespace"
1083
- };
1084
- function Me(e, t, n) {
1085
- let r = n.length, i = t.length, a = r, o = 0, s = 0, c = t[i - 1].nextSibling, l = null;
1086
- for (; o < i || s < a;) {
1087
- if (t[o] === n[s]) {
1088
- o++, s++;
1089
- continue;
1090
- }
1091
- for (; t[i - 1] === n[a - 1];) i--, a--;
1092
- if (i === o) {
1093
- let t = a < r ? s ? n[s - 1].nextSibling : n[a - s] : c;
1094
- for (; s < a;) e.insertBefore(n[s++], t);
1095
- } else if (a === s) for (; o < i;) (!l || !l.has(t[o])) && t[o].remove(), o++;
1096
- else if (t[o] === n[a - 1] && n[s] === t[i - 1]) {
1097
- let r = t[--i].nextSibling;
1098
- e.insertBefore(n[s++], t[o++].nextSibling), e.insertBefore(n[--a], r), t[i] = n[a];
1099
- } else {
1100
- if (!l) {
1101
- l = /* @__PURE__ */ new Map();
1102
- let e = s;
1103
- for (; e < a;) l.set(n[e], e++);
1104
- }
1105
- let r = l.get(t[o]);
1106
- if (r != null) if (s < r && r < a) {
1107
- let c = o, u = 1, d;
1108
- for (; ++c < i && c < a && !((d = l.get(t[c])) == null || d !== r + u);) u++;
1109
- if (u > r - s) {
1110
- let i = t[o];
1111
- for (; s < r;) e.insertBefore(n[s++], i);
1112
- } else e.replaceChild(n[s++], t[o++]);
1113
- } else o++;
1114
- else t[o++].remove();
1115
- }
1116
- }
1117
- }
1118
- var B = "_$DX_DELEGATE";
1119
- function Ne(e, t = window.document) {
1120
- let n = t[B] || (t[B] = /* @__PURE__ */ new Set());
1121
- for (let r = 0, i = e.length; r < i; r++) {
1122
- let i = e[r];
1123
- n.has(i) || (n.add(i), t.addEventListener(i, Ge));
1124
- }
1125
- }
1126
- function V(e, t, n) {
1127
- H(e) || (n == null ? e.removeAttribute(t) : e.setAttribute(t, n));
1128
- }
1129
- function Pe(e, t, n, r) {
1130
- H(e) || (r == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, r));
1131
- }
1132
- function Fe(e, t, n) {
1133
- H(e) || (n ? e.setAttribute(t, "") : e.removeAttribute(t));
1134
- }
1135
- function Ie(e, t) {
1136
- H(e) || (t == null ? e.removeAttribute("class") : e.className = t);
1137
- }
1138
- function Le(e, t, n, r) {
1139
- if (r) Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
1140
- else if (Array.isArray(n)) {
1141
- let r = n[0];
1142
- e.addEventListener(t, n[0] = (t) => r.call(e, n[1], t));
1143
- } else e.addEventListener(t, n, typeof n != "function" && n);
1144
- }
1145
- function Re(e, t, n = {}) {
1146
- let r = Object.keys(t || {}), i = Object.keys(n), a, o;
1147
- for (a = 0, o = i.length; a < o; a++) {
1148
- let r = i[a];
1149
- !r || r === "undefined" || t[r] || (U(e, r, !1), delete n[r]);
1150
- }
1151
- for (a = 0, o = r.length; a < o; a++) {
1152
- let i = r[a], o = !!t[i];
1153
- !i || i === "undefined" || n[i] === o || !o || (U(e, i, !0), n[i] = o);
1154
- }
1155
- return n;
1156
- }
1157
- function ze(e, t, n) {
1158
- if (!t) return n ? V(e, "style") : t;
1159
- let r = e.style;
1160
- if (typeof t == "string") return r.cssText = t;
1161
- typeof n == "string" && (r.cssText = n = void 0), n ||= {}, t ||= {};
1162
- let i, a;
1163
- for (a in n) t[a] ?? r.removeProperty(a), delete n[a];
1164
- for (a in t) i = t[a], i !== n[a] && (r.setProperty(a, i), n[a] = i);
1165
- return n;
1166
- }
1167
- function Be(e, t = {}, n, r) {
1168
- let i = {};
1169
- return r || f(() => i.children = G(e, t.children, i.children)), f(() => typeof t.ref == "function" && Ve(t.ref, e)), f(() => He(e, t, n, !0, i, !0)), i;
1170
- }
1171
- function Ve(e, t, n) {
1172
- return g(() => e(t, n));
1173
- }
1174
- function He(e, t, n, r, i = {}, a = !1) {
1175
- t ||= {};
1176
- for (let r in i) if (!(r in t)) {
1177
- if (r === "children") continue;
1178
- i[r] = W(e, r, null, i[r], n, a, t);
1179
- }
1180
- for (let o in t) {
1181
- if (o === "children") {
1182
- r || G(e, t.children);
1183
- continue;
1184
- }
1185
- let s = t[o];
1186
- i[o] = W(e, o, s, i[o], n, a, t);
1187
- }
1188
- }
1189
- function Ue(e) {
1190
- let t, n;
1191
- return !H() || !(t = m.registry.get(n = Ke())) ? e() : (m.completed && m.completed.add(t), m.registry.delete(n), t);
1192
- }
1193
- function H(e) {
1194
- return !!m.context && !m.done && (!e || e.isConnected);
1195
- }
1196
- function We(e) {
1197
- return e.toLowerCase().replace(/-([a-z])/g, (e, t) => t.toUpperCase());
1198
- }
1199
- function U(e, t, n) {
1200
- let r = t.trim().split(/\s+/);
1201
- for (let t = 0, i = r.length; t < i; t++) e.classList.toggle(r[t], n);
1202
- }
1203
- function W(e, t, n, r, i, a, o) {
1204
- let s, c, l, u, d;
1205
- if (t === "style") return ze(e, n, r);
1206
- if (t === "classList") return Re(e, n, r);
1207
- if (n === r) return r;
1208
- if (t === "ref") a || n(e);
1209
- else if (t.slice(0, 3) === "on:") {
1210
- let i = t.slice(3);
1211
- r && e.removeEventListener(i, r, typeof r != "function" && r), n && e.addEventListener(i, n, typeof n != "function" && n);
1212
- } else if (t.slice(0, 10) === "oncapture:") {
1213
- let i = t.slice(10);
1214
- r && e.removeEventListener(i, r, !0), n && e.addEventListener(i, n, !0);
1215
- } else if (t.slice(0, 2) === "on") {
1216
- let i = t.slice(2).toLowerCase(), a = ke.has(i);
1217
- if (!a && r) {
1218
- let t = Array.isArray(r) ? r[0] : r;
1219
- e.removeEventListener(i, t);
1220
- }
1221
- (a || n) && (Le(e, i, n, a), a && Ne([i]));
1222
- } else if (t.slice(0, 5) === "attr:") V(e, t.slice(5), n);
1223
- else if (t.slice(0, 5) === "bool:") Fe(e, t.slice(5), n);
1224
- else if ((d = t.slice(0, 5) === "prop:") || (l = Te.has(t)) || !i && ((u = Oe(t, e.tagName)) || (c = we.has(t))) || (s = e.nodeName.includes("-") || "is" in o)) {
1225
- if (d) t = t.slice(5), c = !0;
1226
- else if (H(e)) return n;
1227
- t === "class" || t === "className" ? Ie(e, n) : s && !c && !l ? e[We(t)] = n : e[u || t] = n;
1228
- } else {
1229
- let r = i && t.indexOf(":") > -1 && je[t.split(":")[0]];
1230
- r ? Pe(e, r, t, n) : V(e, Ee[t] || t, n);
1231
- }
1232
- return n;
1233
- }
1234
- function Ge(e) {
1235
- if (m.registry && m.events && m.events.find(([t, n]) => n === e)) return;
1236
- let t = e.target, n = `$$${e.type}`, r = e.target, i = e.currentTarget, a = (t) => Object.defineProperty(e, "target", {
1237
- configurable: !0,
1238
- value: t
1239
- }), o = () => {
1240
- let r = t[n];
1241
- if (r && !t.disabled) {
1242
- let i = t[`${n}Data`];
1243
- if (i === void 0 ? r.call(t, e) : r.call(t, i, e), e.cancelBubble) return;
1244
- }
1245
- return t.host && typeof t.host != "string" && !t.host._$host && t.contains(e.target) && a(t.host), !0;
1246
- }, s = () => {
1247
- for (; o() && (t = t._$host || t.parentNode || t.host););
1248
- };
1249
- if (Object.defineProperty(e, "currentTarget", {
1250
- configurable: !0,
1251
- get() {
1252
- return t || document;
1253
- }
1254
- }), m.registry && !m.done && (m.done = _$HY.done = !0), e.composedPath) {
1255
- let n = e.composedPath();
1256
- a(n[0]);
1257
- for (let e = 0; e < n.length - 2 && (t = n[e], o()); e++) {
1258
- if (t._$host) {
1259
- t = t._$host, s();
1260
- break;
1261
- }
1262
- if (t.parentNode === i) break;
1263
- }
1264
- } else s();
1265
- a(r);
1266
- }
1267
- function G(e, t, n, r, i) {
1268
- let a = H(e);
1269
- if (a) {
1270
- !n && (n = [...e.childNodes]);
1271
- let t = [];
1272
- for (let e = 0; e < n.length; e++) {
1273
- let r = n[e];
1274
- r.nodeType === 8 && r.data.slice(0, 2) === "!$" ? r.remove() : t.push(r);
1275
- }
1276
- n = t;
1277
- }
1278
- for (; typeof n == "function";) n = n();
1279
- if (t === n) return n;
1280
- let o = typeof t, s = r !== void 0;
1281
- if (e = s && n[0] && n[0].parentNode || e, o === "string" || o === "number") {
1282
- if (a || o === "number" && (t = t.toString(), t === n)) return n;
1283
- if (s) {
1284
- let i = n[0];
1285
- i && i.nodeType === 3 ? i.data !== t && (i.data = t) : i = document.createTextNode(t), n = J(e, n, r, i);
1286
- } else n = n !== "" && typeof n == "string" ? e.firstChild.data = t : e.textContent = t;
1287
- } else if (t == null || o === "boolean") {
1288
- if (a) return n;
1289
- n = J(e, n, r);
1290
- } else if (o === "function") return f(() => {
1291
- let i = t();
1292
- for (; typeof i == "function";) i = i();
1293
- n = G(e, i, n, r);
1294
- }), () => n;
1295
- else if (Array.isArray(t)) {
1296
- let o = [], c = n && Array.isArray(n);
1297
- if (K(o, t, n, i)) return f(() => n = G(e, o, n, r, !0)), () => n;
1298
- if (a) {
1299
- if (!o.length) return n;
1300
- if (r === void 0) return n = [...e.childNodes];
1301
- let t = o[0];
1302
- if (t.parentNode !== e) return n;
1303
- let i = [t];
1304
- for (; (t = t.nextSibling) !== r;) i.push(t);
1305
- return n = i;
1306
- }
1307
- if (o.length === 0) {
1308
- if (n = J(e, n, r), s) return n;
1309
- } else c ? n.length === 0 ? q(e, o, r) : Me(e, n, o) : (n && J(e), q(e, o));
1310
- n = o;
1311
- } else if (t.nodeType) {
1312
- if (a && t.parentNode) return n = s ? [t] : t;
1313
- if (Array.isArray(n)) {
1314
- if (s) return n = J(e, n, r, t);
1315
- J(e, n, null, t);
1316
- } else n == null || n === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
1317
- n = t;
1318
- }
1319
- return n;
1320
- }
1321
- function K(e, t, n, r) {
1322
- let i = !1;
1323
- for (let a = 0, o = t.length; a < o; a++) {
1324
- let o = t[a], s = n && n[e.length], c;
1325
- if (!(o == null || o === !0 || o === !1)) if ((c = typeof o) == "object" && o.nodeType) e.push(o);
1326
- else if (Array.isArray(o)) i = K(e, o, s) || i;
1327
- else if (c === "function") if (r) {
1328
- for (; typeof o == "function";) o = o();
1329
- i = K(e, Array.isArray(o) ? o : [o], Array.isArray(s) ? s : [s]) || i;
1330
- } else e.push(o), i = !0;
1331
- else {
1332
- let t = String(o);
1333
- s && s.nodeType === 3 && s.data === t ? e.push(s) : e.push(document.createTextNode(t));
1334
- }
1335
- }
1336
- return i;
1337
- }
1338
- function q(e, t, n = null) {
1339
- for (let r = 0, i = t.length; r < i; r++) e.insertBefore(t[r], n);
1340
- }
1341
- function J(e, t, n, r) {
1342
- if (n === void 0) return e.textContent = "";
1343
- let i = r || document.createTextNode("");
1344
- if (t.length) {
1345
- let r = !1;
1346
- for (let a = t.length - 1; a >= 0; a--) {
1347
- let o = t[a];
1348
- if (i !== o) {
1349
- let t = o.parentNode === e;
1350
- !r && !a ? t ? e.replaceChild(i, o) : e.insertBefore(i, n) : t && o.remove();
1351
- } else r = !0;
1352
- }
1353
- } else e.insertBefore(i, n);
1354
- return [i];
1355
- }
1356
- function Ke() {
1357
- return m.getNextContextId();
1358
- }
1359
- var qe = "http://www.w3.org/2000/svg";
1360
- function Je(e, t = !1, n = void 0) {
1361
- return t ? document.createElementNS(qe, e) : document.createElement(e, { is: n });
1362
- }
1363
- function Ye(e, t) {
1364
- let n = d(e);
1365
- return d(() => {
1366
- let e = n();
1367
- switch (typeof e) {
1368
- case "function": return g(() => e(t));
1369
- case "string":
1370
- let n = Ae.has(e), r = m.context ? Ue() : Je(e, n, g(() => t.is));
1371
- return Be(r, t, n), r;
1372
- }
1373
- });
1374
- }
1375
- function Xe(e) {
1376
- let [, t] = h(e, ["component"]);
1377
- return Ye(() => e.component, t);
1378
- }
1379
- var Ze = (e) => {
1380
- let t = e.charAt(0);
1381
- return t !== t.toLowerCase();
1382
- }, Qe = /e(r[HRWrv]|[Vawy])|Con|l(e[Tcs]|c)|s(eP|y)|a(t[rt]|u|v)|Of|Ex|f[XYa]|gt|hR|d[Pg]|t[TXYd]|[UZq]/, Y = Object.create(null), $e = /[A-Z]/g, et = (e) => Y[e] ?? (Y[e] = Qe.test(e) ? e : e.replaceAll($e, (e) => `-${e.toLowerCase()}`)), tt = /^(t(ext$|s)|s[vwy]|g)|^set|tad|ker|p(at|s)|s(to|c$|ca|k)|r(ec|cl)|ew|us|f($|e|s)|cu|n[ei]|l[ty]|[GOP]/, X = Object.create(null), nt = (e) => e in X ? X[e] ?? !1 : X[e] = tt.test(e) && !e.includes("-");
1383
- u(Object.create(null));
1384
- var rt = new Set(["mjx"]), it = RegExp(`(?:${[...rt].join("|")})-.+`, "g"), Z = Object.create(null), at = (e) => typeof e == "string" ? Z[e] ?? (Z[e] = e.replaceAll(it, (e) => e.replaceAll("-", "_"))) : e, Q = (e, t) => {
1385
- let n = {};
1386
- for (let r of Object.keys(e)) n[ct(r, t)] = typeof e[r] == "object" && !Array.isArray(e[r]) ? Q(e[r], t) : at(e[r]);
1387
- return n;
1388
- }, ot = (e) => e.children, st = (e, t) => typeof e == "function" ? e.name === "Fragment" ? ot(t) : e(Q(t)) : l(Xe, p(Ze(e) ? t : Q(t, e), { component: at(e) })), ct = (e, t = "") => nt(t) ? e = e === "xlinkHref" || e === "xlink:href" ? "href" : et(e) : e, lt = st;
1389
936
  function $() {
1390
- return ce(c().render(), {
1391
- Fragment: ot,
1392
- jsx: st,
1393
- jsxs: lt,
937
+ return I(c().render(), {
938
+ Fragment: l,
939
+ jsx: u,
940
+ jsxs: d,
1394
941
  elementAttributeNameCase: "html",
1395
942
  stylePropertyNameCase: "css"
1396
943
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamline-kit/seamline-settings",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist"
@@ -35,13 +35,13 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "hast-util-to-jsx-runtime": "2.3.6",
38
- "hastscript": "9.0.1"
38
+ "hastscript": "9.0.1",
39
+ "solid-jsx": "1.1.4"
39
40
  },
40
41
  "devDependencies": {
41
42
  "oxfmt": "0.32.0",
42
43
  "oxlint": "1.47.0",
43
44
  "solid-js": "1.9.11",
44
- "solid-jsx": "1.1.4",
45
45
  "typescript": "~5.9.3",
46
46
  "vite": "8.0.0-beta.14"
47
47
  },