@vinena/knobs 0.5.1 → 0.5.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/CHANGELOG.md +17 -0
- package/README.md +7 -0
- package/dist/early.global.js +6 -6
- package/dist/{elementsview-jnkbhzkj.js → elementsview-2z4pkrdz.js} +4 -4
- package/dist/{elementsview-tf4qzmtw.js → elementsview-qn8qyksa.js} +4 -4
- package/dist/engine/browserdraw.d.ts +24 -2
- package/dist/engine/browserkit.d.ts +18 -1
- package/dist/engine/browserui.d.ts +162 -22
- package/dist/engine/devicon.d.ts +59 -0
- package/dist/engine/fit.d.ts +4 -3
- package/dist/engine/foldflip.d.ts +40 -0
- package/dist/engine/identity.d.ts +7 -4
- package/dist/engine/mock.d.ts +16 -0
- package/dist/engine/mockdata.d.ts +4 -1
- package/dist/engine/mockdraw.d.ts +14 -2
- package/dist/engine/pageshot.d.ts +5 -2
- package/dist/engine/safaridraw.d.ts +162 -10
- package/dist/engine/screen.d.ts +24 -0
- package/dist/engine/store.d.ts +2 -1
- package/dist/engine/tabicon.d.ts +43 -0
- package/dist/engine/toplayer.d.ts +62 -0
- package/dist/engine/touchpointer.d.ts +0 -21
- package/dist/engine/underbar.d.ts +61 -0
- package/dist/{framekit-g96t6nmq.js → framekit-te90cjs0.js} +2325 -1572
- package/dist/{framekit-3n7p79ht.js → framekit-w0v516w5.js} +2325 -1572
- package/dist/host.d.ts +51 -0
- package/dist/{index-zvze25nf.js → index-30fc6php.js} +1 -1
- package/dist/{index-dvr4x91q.js → index-9re7sv56.js} +20 -8
- package/dist/{index-0casarhy.js → index-agwr37gw.js} +1 -1
- package/dist/{index-2d6wvs8h.js → index-dan2kpsd.js} +4 -4
- package/dist/{index-ke6v7919.js → index-hv02xka3.js} +20 -8
- package/dist/{index-peh33xjv.js → index-pewcdh28.js} +1 -1
- package/dist/{index-d0cjxjsm.js → index-r72tz2vn.js} +1 -1
- package/dist/{index-33x9hxe3.js → index-sxe5079a.js} +605 -187
- package/dist/{index-k015tb6c.js → index-trx7bxdk.js} +4 -4
- package/dist/{index-5baxvd3v.js → index-xjhwp5cj.js} +275 -112
- package/dist/index.d.ts +26 -1
- package/dist/index.global.js +270 -176
- package/dist/index.js +398 -124
- package/dist/instance.d.ts +23 -4
- package/dist/{react-pdvseef0.js → react-05jh9jv5.js} +1 -1
- package/dist/{react-sq9pkw4k.js → react-16spgn0h.js} +1 -1
- package/dist/{react-65tgdbs8.js → react-4pvp6amm.js} +1 -1
- package/dist/{react-qv0nykcv.js → react-ayg1bgw3.js} +602 -184
- package/dist/{react-xxfpfddf.js → react-exjcpxma.js} +1 -1
- package/dist/{react-carf84xv.js → react-fm9y8dbn.js} +275 -112
- package/dist/{react-eygws6cx.js → react-sw8d8c94.js} +4 -4
- package/dist/{react-71a9ypex.js → react-zy1mmhgz.js} +4 -4
- package/dist/react.js +394 -123
- package/dist/{storageview-vf8v8q8j.js → storageview-r595qpt9.js} +4 -4
- package/dist/{storageview-sb23henh.js → storageview-s7heg93p.js} +4 -4
- package/dist/types.d.ts +7 -0
- package/dist/ui/footer.d.ts +9 -2
- package/dist/ui/panel.d.ts +16 -2
- package/dist/ui/settings.d.ts +17 -1
- package/dist/version.d.ts +2 -0
- package/package.json +3 -2
- package/skills/devknobs/SKILL.md +1 -1
- package/dist/engine/endroom.d.ts +0 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.2
|
|
4
|
+
|
|
5
|
+
- a host can let a page's own copy run the panel: `mount({ host: true, prefer })` shows prefer (extension or page) in the settings, and with page, a copy the page mounts takes the page from the host, which takes its panel, frame and patches away and does not take it back. `setPrefer()` brings a choice that comes in after the mount. page copies from 0.4.0 to 0.5.1 cannot take over, so the extension's panel stays on those pages. the footer names the copy that runs the panel and its version, such as `extension 0.5.1` or `page 0.5.1-local.1767225600`; `bun run link` builds the local version into the code
|
|
6
|
+
- two hosts on one page, such as the store's extension and a local build of it: `mount({ host: true, build: 'store' | 'local', stoodDown })` puts the host's rank on the page, and the one that ranks higher holds the page whichever mounted first (a local build over a store one, then the newer version). the other stands down for that page load, calls `stoodDown` and does not take the page back, and the holder's footer adds `store extension stood down`. a host with a build takes the page back from an older host that has none
|
|
7
|
+
- a feature's view, inspect's Elements view, requests and storage among them, makes the panel as tall as the window, past the 672 px a list stops at. inspect's DOM tree takes the height the styles leave it, and keeps the height its edge was dragged to
|
|
8
|
+
- the panel paints over grab's and inspect's boxes, which no longer tint it, and over the page's top layer: its modal dialogs, popovers and fullscreen element, and anything with the highest z-index. grab's boxes go over the page's open dialogs and popovers, so what is in them can be inspected. both are manual popovers where the browser has them, put back in order whenever the page opens something there, and none of a page's popover or backdrop rules reach them. while a page's modal dialog is open the panel still shows on top but takes no pointer, as the browser makes everything outside the dialog inert; its keys still work
|
|
9
|
+
- `holdInTopLayer(element, LAYER.guide)` puts a page's own layer in that order, over the panel and under the touch cursor, as a tour of the panel needs; the returned `release()` lets go of it
|
|
10
|
+
- fit draws a device, or any frame of a set width and height, as big as the window allows, mock and readout row included, past 100% too (fit 135% for an iPhone 17 Pro in a 1000 × 1300 window). a frame of the window's height or of a width alone still never grows past 100%, and the zoom presets stay as they are
|
|
11
|
+
- on a local host (localhost, `*.localhost`, `*.local`, a loopback or private network address) the tab's icon and the apple-touch-icon get a yellow `DEV` ribbon across their top right corner, drawn in the page from the site's own icons, so a dev tab tells itself apart from production. `DEV` shows on icons of 32 px and up. each link keeps its own address in `data-devknobs-href` and gets it back when the ribbon goes off or devknobs unmounts. icons a framework puts in on a navigation get the ribbon too. a page with no icon link gets its `/favicon.ico`, where it has one. an icon from another origin that does not allow reading it keeps its own picture. the dev tab icon switch in the settings turns it off, or on for any host, for the tab, and `panel.devIcon` (`auto`, `on`, `off`) does the same from `setState()`
|
|
12
|
+
- an iPhone's status bar is iOS 27's, as measured on the iOS 27.0 simulator: glyphs about 7% bigger than iOS 26's, and a flat battery, the charged part of a solid body in the glyph's color and the rest gray, no outline, its cap apart, with no number; bars, wifi and time where iOS puts them, a size up on the screens 420 wide and up (Pro Max, Plus and Air). the island is a flat black pill of iOS 26.5's size, as the iOS 27 simulator draws none, and the island phones' screens have continuous, squircle corners
|
|
13
|
+
- Safari's glass takes its tint from the page under each capsule and from the scheme, as iOS 27 does: #f8f8f8 over white and #898989 over black in light, #b3b3b3 over white and #222222 over black in dark, and the content's own hue over a saturated one, lighter in light. its glyphs are black in light and white in dark, and its rim is as bright at the bottom as at the top. compact ends in the tabs button, and the page menu is three lines. the strip over the page takes the color of a fixed or sticky bar at the top, else the body's; `theme-color` is ignored. the address shows the host without its port
|
|
14
|
+
- upright, the page gets Safari's real viewport in every layout and state (402 × 714, 654 and 660 expanded, 754, 754 and 768 minimized on an iPhone 17 Pro, the page under the address bar at 122 in top), so `innerHeight`, `visualViewport`, `100dvh` and `position: fixed; bottom: 0` land where they do on the phone. the page runs on under the bars to the screen's bottom, from a picture of the document past the viewport that follows the scroll, at full strength, as iOS 27 draws no scroll edge there; a fixed footer's color is carried down instead, and a page from another origin gets the content's color at the page's bottom edge. the room after the end of the page is gone. the edge to edge switch is offered only with the phone held sideways, not on the iPhone Duo, where it still runs the page under Safari's top row; upright it does nothing and its stored value is kept
|
|
15
|
+
- the iPhone Duo's Safari is Safari 27.1's, as measured on the iOS 27.1 simulator. upright on the cover screen the status and Safari's buttons stack in a column on the right, under the camera hole: the time, a ring for the battery round wifi with the signal's four dots in its gap, back, reader, and new tab with tabs, and the address floats at the bottom of the page. the page never runs under the column, which takes the page's color. held across, the cover turns its top to the right, its camera hole to the bottom right (folded open or shut from there, by the knobs or the fold slider, the fold plays in view, its frames turned half round so the hinge stays on the cover's top and the hole at its bottom right; unfolded from there the inner case is the same phone's, half round, its buttons on the right and bottom, the page upright, till the Duo is turned, folded the other way or picked again), and has no status and no column, only one bar along the top with back, reader, the address, share, new tab and tabs. the inner screen has one bar at the top, held either way: back, reader, the address, new tab with tabs, the time and the ring; minimized, a small domain pill alone. no scroll edge under the bars. the page gets the simulator's viewports: 382 × 580 on the cover screen upright (618 minimized, WebKit's), 678 × 386 and 440 across, 669 × 871 and 900 on the inner screen upright, 951 × 589 and 618 across. the Duo offers only its own layout
|
|
16
|
+
- `screen.width`, `screen.height`, `availWidth` and `availHeight` in a phone's or tablet's frame are the device's, upright on an iPhone. the iPhone Duo reports its cover screen, 466 × 678, on either screen, and 466 to `availHeight` on the cover held across
|
|
17
|
+
- Safari's top bars, on the iPhone Duo's inner screen and in an iPhone's top layout, give the page room as they minimize and take it back as they come back without pushing it: the page scrolls as far as its top moves, so the content stays under the finger, and the touch finger is read on the screen, not in the moving frame, so the bars no longer flip back and forth on a short scroll. scrolling back up, with the wheel or a finger, they come back while the page is still their room from its top, and the frame takes its new box at once, so reaching the top never pushes the page down once they settle. they minimize only once the page is far enough down for both
|
|
18
|
+
- minimized, Safari's strip goes: the content at the top of the page shows under the status bar in a wash of the page's color that fades out over 100 px, and the status bar's glyphs follow it. a fixed or sticky header keeps its color
|
|
19
|
+
|
|
3
20
|
## 0.5.1
|
|
4
21
|
|
|
5
22
|
- published from vinenastudio/knobs on GitHub Actions through npm trusted publishing, with provenance. no code changes
|
package/README.md
CHANGED
|
@@ -51,6 +51,13 @@ or with no bundler, a script tag that mounts itself:
|
|
|
51
51
|
press `⇧K`, or click the handle on the right edge of the window, to open the
|
|
52
52
|
panel. react, next.js and the early script are in the docs.
|
|
53
53
|
|
|
54
|
+
on a local host (localhost, `*.localhost`, `*.local`, `0.0.0.0`, a loopback
|
|
55
|
+
or private network address, IPv6 local ones too) the tab's icon gets a yellow
|
|
56
|
+
`DEV` ribbon, drawn from the site's own icon, so a dev tab never looks like
|
|
57
|
+
production. an icon from another origin that does not allow it (CORS) keeps
|
|
58
|
+
its own picture. the dev tab icon switch in the panel's settings turns it off,
|
|
59
|
+
or on for any host.
|
|
60
|
+
|
|
54
61
|
## docs
|
|
55
62
|
|
|
56
63
|
- [start](https://knobs.dev/docs/start): install @vinena/knobs and mount it in
|
package/dist/early.global.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(()=>{var Y1=(j,$)=>()=>(j&&($=j(j=0)),$);var o0,N0=()=>{},mj=(j)=>j.__REACT_DEVTOOLS_GLOBAL_HOOK__,W$=(j)=>{let $=j.current.memoizedState;return $===null||$!==void 0&&($.element===null||$.element===void 0)},gj=(j)=>{try{Function.prototype.toString.call(j).indexOf("^_^")>-1&&setTimeout(()=>{throw Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://react.dev/link/perf-use-production-build")})}catch{}},vj=(j=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(j&&("getFiberRoots"in j)&&j._isBippyHook!==!0),Y$=(j=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>{if(!j||typeof j.inject!="function"||vj(j))return!1;try{return Function.prototype.toString.call(j.inject).includes("(injected)")}catch{return!1}},hj,e0,a0,C$,yj,bj,pj=(j,$)=>{hj.add(j);let J=a0.get(j)??new Set;J.add($),a0.set(j,J)},r0=(j)=>{for(let $ of hj)a0.get($)?.has(j)&&$()},P$=(j,$)=>{for(let J of C$)J.target===j&&J.listener($)},H$=(j,$)=>{for(let J of yj)J(j,$)},z$=(j)=>Object.prototype.toString.call(j)==="[object Map]",cj=(j)=>(z$(j.renderers)||(j.renderers=new Map),j.renderers),uj=(j,$,J,X,Z)=>{J.set(X,Z),e0.add(Z),j._instrumentationIsActive||(j._instrumentationIsActive=!0,r0($));let Q=bj.get($)??new WeakSet;bj.set($,Q),!Q.has(Z)&&(Q.add(Z),P$($,Z))},kj=(j,$=globalThis)=>{j&&pj(j,$);let J=new Map,X=new Map,Z=(G)=>{let V=X.get(G)??new Set;return X.set(G,V),V},Q=0,B={_instrumentationIsActive:!1,_instrumentationSource:"bippy-0.7.3",_isBippyHook:!0,checkDCE:gj,getFiberRoots:Z,hasUnsupportedRendererAttached:!1,inject:(G)=>{let V=++Q;return uj(B,$,J,V,G),V},on:N0,onCommitFiberRoot:(G,V)=>{let K=Z(G);W$(V)?K.delete(V):K.add(V)},onCommitFiberUnmount:N0,onPostCommitFiberRoot:N0,renderers:J,supportsFiber:!0,supportsFlight:!0};try{if(o0($,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!0,enumerable:!0,get:()=>B,set:(G)=>{if(G&&typeof G=="object"){let V=B.renderers;B=G;let K=cj(B);V.forEach((Y,P)=>{e0.add(Y),K.set(P,Y)}),(V.size>0||yj.size>0)&&t0(j,$),H$(B,$)}}}),$===globalThis&&typeof window<"u"){let G=window.hasOwnProperty.bind(window),V=Object.getOwnPropertyDescriptor(window,"hasOwnProperty"),K=!1,Y=()=>{V?o0(window,"hasOwnProperty",V):Reflect.deleteProperty(window,"hasOwnProperty")};o0(window,"hasOwnProperty",{configurable:!0,value:(P)=>!K&&P==="__REACT_DEVTOOLS_GLOBAL_HOOK__"?(K=!0,Y(),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,!1):G(P),writable:!0})}}catch{t0(j,$)}return B},t0=(j,$=globalThis)=>{j&&pj(j,$);let J=!1,X=mj($);if(!X)return;let Z=cj(X);if(!X._instrumentationSource){X.checkDCE=gj,X.supportsFiber=!0,X.supportsFlight=!0,X.hasUnsupportedRendererAttached=!1,X._instrumentationSource="bippy-0.7.3",X._instrumentationIsActive=!1;let Q=vj(X);Q||(X.on=N0),Z.size?(Z.forEach((G)=>e0.add(G)),X._instrumentationIsActive=!0,r0($),J=!0):!Q&&Y$(X)&&(X._instrumentationIsActive=!0,r0($),J=!0);let B=X.inject;X.inject=(G)=>{let V=B.call(X,G);return uj(X,$,Z,V,G),V}}!J&&(Z.size||X._instrumentationIsActive)&&j?.()},M$=(j=globalThis)=>Object.hasOwn(j,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),dj=(j,$=globalThis)=>M$($)?(t0(j,$),mj($)??kj(j,$)):kj(j,$);var ij=Y1(()=>{o0=Object.defineProperty,hj=new Set,e0=new Set,a0=new WeakMap,C$=new Set,yj=new Set,bj=new WeakMap});var U$={};var lj=Y1(()=>{ij();try{dj()}catch{}});var N3=Symbol.for("devknobs.clock"),g=globalThis[N3]??={Date,clock:null},Y0=g.Date;function D(){return Y0.now()}function D3(j,$){if(j.mode==="frozen")return j.at;if(j.mode==="offset")return Math.floor(j.at+($-j.since)*j.speed);return $}function q3(j){g.clock=j&&j.mode!=="system"?{...j}:null}function W0(){return g.clock?D3(g.clock,D()):D()}function O3(j,$){return new Proxy(j,{construct(J,X,Z){if(X.length===0&&g.clock)return Reflect.construct(J,[W0()],Z);return Reflect.construct(J,$?$.args(X):X,Z)},apply(J,X,Z){if(!g.clock&&!$?.on())return Reflect.apply(J,X,Z);return String(new Y0(W0()))},get(J,X,Z){if(X==="now")return W0;if(X==="parse"&&$)return $.parse;return Reflect.get(J,X,Z)}})}var P1={instant:(j)=>j,zonedDateTimeISO:(j,$)=>j.toZonedDateTimeISO($),plainDateTimeISO:(j,$)=>j.toZonedDateTimeISO($).toPlainDateTime(),plainDateISO:(j,$)=>j.toZonedDateTimeISO($).toPlainDate(),plainTimeISO:(j,$)=>j.toZonedDateTimeISO($).toPlainTime()},R3=Object.keys(P1);function x3(){return globalThis.Temporal?.Now}function A3(j,$,J){return function(X){let Z=J(X),Q=globalThis.Temporal;if(!g.clock||!Q?.Instant)return $.call(this,Z);let B=Q.Instant.fromEpochMilliseconds(W0()),G=Q.Now?.timeZoneId,V=typeof G==="function"?G.call(Q.Now):void 0;return P1[j](B,Z??V)}}var C1=Symbol.for("devknobs.early.clock");function H1(j){let $=globalThis;if(C1 in $||j.mode==="system")return;q3(j);let J=[],X=(Q,B,G)=>{let V=Reflect.get(Q,B);if(!Reflect.set(Q,B,G))return;J.push(()=>{if(Reflect.get(Q,B)===G)Reflect.set(Q,B,V)})};X(globalThis,"Date",O3(Y0)),X(Y0.prototype,"constructor",globalThis.Date);let Z=x3();for(let Q of R3){let B=Z?.[Q];if(Z&&typeof B==="function"){let G=A3(Q,B,(V)=>V);X(Z,Q,G)}}$[C1]={release:()=>{for(let Q of J.reverse())Q()}}}var C0=["closed","open"];var R0=[{id:"iphone-18-pro",label:"iPhone 18 Pro",width:402,height:874,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-18-pro-max",label:"iPhone 18 Pro Max",width:440,height:956,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-duo",label:"iPhone Duo",width:466,height:678,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone",postures:{closed:{id:"iphone-duo-closed",label:"iPhone Duo (closed)"},open:{id:"iphone-duo-open",label:"iPhone Duo (open)",width:669,height:951,usual:"landscape",clockwise:!0}}},{id:"iphone-air",label:"iPhone Air",width:420,height:912,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-17",label:"iPhone 17",width:402,height:874,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-17-pro",label:"iPhone 17 Pro",width:402,height:874,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-17-pro-max",label:"iPhone 17 Pro Max",width:440,height:956,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-16",label:"iPhone 16",width:393,height:852,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-16-plus",label:"iPhone 16 Plus",width:430,height:932,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-16-pro",label:"iPhone 16 Pro",width:402,height:874,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-16-pro-max",label:"iPhone 16 Pro Max",width:440,height:956,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-se",label:"iPhone SE",width:375,height:667,dpr:2,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"pixel-10",label:"Pixel 10",width:412,height:924,dpr:2.625,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-10-pro",label:"Pixel 10 Pro",width:427,height:952,dpr:3,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-10-pro-xl",label:"Pixel 10 Pro XL",width:448,height:998,dpr:3,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-10a",label:"Pixel 10a",width:412,height:924,dpr:2.625,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-9",label:"Pixel 9",width:412,height:924,dpr:2.625,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-9-pro",label:"Pixel 9 Pro",width:427,height:952,dpr:3,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-9-pro-xl",label:"Pixel 9 Pro XL",width:448,height:998,dpr:3,ua:"android-chrome",touch:!0,kind:"phone"},{id:"ipad-mini",label:"iPad mini",width:744,height:1133,dpr:2,ua:"ipad-safari",touch:!0,kind:"tablet"},{id:"ipad-air-11",label:"iPad Air 11",width:820,height:1180,dpr:2,ua:"ipad-safari",touch:!0,kind:"tablet"},{id:"ipad-pro-13",label:"iPad Pro 13",width:1032,height:1376,dpr:2,ua:"ipad-safari",touch:!0,kind:"tablet"},{id:"macbook-air-13",label:"MacBook Air 13",width:1470,height:956,dpr:2,ua:"mac-safari",touch:!1,kind:"laptop"},{id:"laptop",label:"laptop",width:1366,height:768,dpr:1,ua:"windows-chrome",touch:!1,kind:"laptop"},{id:"desktop",label:"desktop",width:1920,height:1080,dpr:1,ua:"windows-chrome",touch:!1,kind:"desktop"}];function x0(j){return R0.find(($)=>$.id===j)}function z1(j){for(let $ of R0){let J=C0.find((X)=>$.postures?.[X].id===j);if(J)return{device:$.id,posture:J}}return}var $2=R0.flatMap((j)=>{let{postures:$}=j;return $?C0.map((J)=>({...j,...$[J]})):[j]});function M1(j){return x0(j)?.touch===!0}function P0(j){return typeof j==="string"&&/^#[0-9a-f]{6}$/.test(j)}function U1(j){let J=/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(j.trim())?.[1];if(!J)return null;let X=J.length===3?Array.from(J,(G)=>G+G):J.match(/../g),[Z=0,Q=0,B=0]=(X??[]).map((G)=>Number.parseInt(G,16));return{red:Z,green:Q,blue:B,alpha:1}}function S3(j){if(typeof j!=="object"||j===null)return 0;let $=Reflect.get(j,"v");return typeof $==="number"&&Number.isInteger($)&&$>=0?$:0}function O(j,$){return S3(j)>$}function n(j,$){return{v:$,...j}}var A0="devknobs",T3="fresh",f3="data-devknobs-fresh",S0="devknobs:fresh-reload",w3=1,E3=1e4,b3="devknobs:locale-",I1=Symbol.for("devknobs.fresh");function F1(j){try{return new URLSearchParams(j).getAll(A0).includes(T3)}catch{return!1}}function k3(j){if(j===A0)return!0;return j.startsWith(`${A0}:`)&&!j.startsWith(b3)}function m3(j){if(!j)return 0;try{let $=JSON.parse(j);if(typeof $!=="object"||$===null||O($,w3))return 0;let J=Reflect.get($,"at");return typeof J==="number"?J:0}catch{return 0}}function g3(){try{let j=window.sessionStorage,$=D()-m3(j.getItem(S0));if(j.removeItem(S0),$>=0&&$<E3)return;let J=[];for(let X=0;X<j.length;X++){let Z=j.key(X);if(Z!==null&&k3(Z))J.push(Z)}for(let X of J)j.removeItem(X)}catch{}}function v3(){try{window.sessionStorage.removeItem(S0)}catch{}}function h3(){try{let j=window.frameElement;if(j)return j.hasAttribute(f3)}catch{}return window.name===T0&&F1(window.location?.search??"")}function _1(){if(typeof window>"u")return!1;let j=Reflect.get(window,I1);if(typeof j==="boolean")return j;let $=!1;try{if(R())$=h3();else if($=F1(window.location?.search??""),$)g3();else v3()}catch{$=!1}return Reflect.set(window,I1,$),$}function T(j){try{if(typeof window>"u")return null;if(j==="session")return _1(),window.sessionStorage??null;return _1()?null:window.localStorage??null}catch{return null}}var L1=20,N1=40;function D1(j){return Math.min(Math.max(j,0.25),4)}var y3="devknobs",p3=2,c3="devknobs:place",u3=2,f1=["device","scheme","text","locale"],q1=128,d3=new Map([["speed","motion"],["pseudo","locale"],["timeZone","clock"],["ua","device"],["grabColor","debug"]]),W={scheme:"system",motion:"system",speed:1,contrast:"system",transparency:"system",locale:{lang:"system",dir:"system"},pseudo:!1,geo:{preset:"system",lat:0,lng:0,accuracy:L1,timeZone:"",error:"none",route:"",speed:N1},timeZone:"geo",clock:{mode:"system",at:0,since:0,speed:1,header:!1},network:{online:"system",type:"system",saveData:"system"},text:"system",spacing:!1,width:"full",height:"full",device:"none",orientation:"portrait",posture:"closed",mock:!0,touchPointer:!0,browser:"auto",bars:"auto",edgeToEdge:!0,frame:!1,dpr:"system",zoom:"fit",mat:"blue",vision:"none",ua:{preset:"system",custom:""},overflow:!1,outlines:!1,grabColor:"auto",panel:{open:!1,side:"right",y:q1,top:q1,edge:"none",tab:"top",docked:!1,handle:!0,pinned:[...f1]}},i3=["light","dark","system"],l3=["reduce","system"],n3=["more","system"],s3=["reduce","system"],o3=["ltr","rtl","system"],a3=["none","denied","unavailable","timeout"],r3=["system","offset","frozen"],t3=["offline","system"],e3=["slow-2g","2g","3g","4g","system"],j7=["on","off","system"],$7=["auto","expanded","minimized"],J7=["auto","compact","bottom","top","off"],X7=["portrait","landscape"],O1=["top","bottom","none"],Z7=["left","right"],Q7=["none","protanopia","deuteranopia","tritanopia","achromatopsia","blur"],B7=["blue","green","magenta","purple","red","graphite"],G7=["auto","blue","green","pink","orange","purple","cyan"];function w(j){return typeof j==="object"&&j!==null?j:{}}function F(j,$,J){return $.includes(j)?j:J}function R1(j,$,J){return P0(j)?j:F(j,$,J)}function f(j,$){return typeof j==="string"?j:$}function q(j,$){return typeof j==="number"&&Number.isFinite(j)?j:$}function L(j,$){return typeof j==="boolean"?j:$}function s(j,$,J){if(j===$)return $;if(typeof j==="number"&&Number.isFinite(j)&&j>0)return j;return J}function x1(j,$){return typeof j==="number"&&Number.isFinite(j)&&j>=0?j:$}function V7(j){if(!Array.isArray(j))return[];let $=j.filter((J)=>typeof J==="string");return Array.from(new Set($.map((J)=>d3.get(J)??J)))}function A1(j,$){if(!j)return null;try{let J=JSON.parse(j);return O(J,$)?null:J}catch{return null}}function S1(j,$){let J=w(j),X=Number.isFinite(q(J.y,q(J.top,Number.NaN)));return{side:F(J.side,Z7,$.side),y:q(J.y,$.y),top:q(J.top,q(J.y,$.top)),edge:F(J.edge,O1,X?"none":$.edge),tab:F(J.tab,O1,X?"none":$.tab),docked:L(J.docked,$.docked)}}function w1(j,$){let J=S1(A1($,u3),W.panel),X=w(A1(j,p3)),Z=w(X.locale),Q=w(X.geo),B=w(X.clock),G=w(X.network),V=w(X.ua),K=w(X.panel),Y=f(X.device,W.device),P=z1(Y),H=s(X.zoom,"fit",W.zoom);return{scheme:F(X.scheme,i3,W.scheme),motion:F(X.motion,l3,W.motion),speed:x1(X.speed,W.speed),contrast:F(X.contrast,n3,W.contrast),transparency:F(X.transparency,s3,W.transparency),locale:{lang:f(Z.lang,W.locale.lang),dir:F(Z.dir,o3,W.locale.dir)},pseudo:L(X.pseudo,W.pseudo),geo:{preset:f(Q.preset,W.geo.preset),lat:q(Q.lat,W.geo.lat),lng:q(Q.lng,W.geo.lng),accuracy:q(Q.accuracy,W.geo.accuracy),timeZone:f(Q.timeZone,W.geo.timeZone),error:F(Q.error,a3,W.geo.error),route:f(Q.route,W.geo.route),speed:q(Q.speed,W.geo.speed)},timeZone:f(X.timeZone,"")||W.timeZone,clock:{mode:F(B.mode,r3,W.clock.mode),at:q(B.at,W.clock.at),since:q(B.since,W.clock.since),speed:x1(B.speed,W.clock.speed),header:L(B.header,W.clock.header)},network:{online:F(G.online,t3,W.network.online),type:F(G.type,e3,W.network.type),saveData:F(G.saveData,j7,W.network.saveData)},text:s(X.text,"system",W.text),spacing:L(X.spacing,W.spacing),width:s(X.width,"full",W.width),height:s(X.height,"full",W.height),device:P?.device??(x0(Y)?Y:W.device),orientation:F(X.orientation,X7,W.orientation),posture:P?.posture??F(X.posture,[...C0],W.posture),mock:L(X.mock,W.mock),touchPointer:L(X.touchPointer,W.touchPointer),browser:F(X.browser,J7,W.browser),bars:X.browserMin===!0?"minimized":F(X.bars,$7,W.bars),edgeToEdge:L(X.edgeToEdge,W.edgeToEdge),frame:L(X.frame,W.frame),dpr:s(X.dpr,"system",W.dpr),zoom:H==="fit"?H:D1(H),mat:R1(X.mat,B7,"blue"),vision:F(X.vision,Q7,W.vision),ua:{preset:f(V.preset,W.ua.preset),custom:f(V.custom,W.ua.custom)},overflow:L(X.overflow,W.overflow),outlines:L(X.outlines,W.outlines),grabColor:R1(X.grabColor,G7,"auto"),panel:{open:L(K.open,W.panel.open),...S1(K,J),handle:L(K.handle,W.panel.handle),pinned:X.panel===void 0?[...f1]:V7(K.pinned)}}}function T1(j,$){try{return T(j)?.getItem($)??null}catch{return null}}function E1(){return w1(T1("session",y3),T1("local",c3))}var K7="data-devknobs-frame",T0="devknobs-frame";function R(){try{if(window.frameElement?.hasAttribute(K7))return!0}catch{}return window.name===T0}function b1(j){if(j==="system")return!1;try{return window.frameElement?.style.getPropertyValue("color-scheme")===j}catch{return!1}}var W7={width:"full",height:"full",frame:!1,dpr:"system",vision:"none"},x2={...W7,device:"none",panel:{docked:!1}};function f0(j){return typeof j==="number"&&j>0}function k1(j){return f0(j.width)||f0(j.height)||j.frame||f0(j.dpr)||j.vision!=="none"}function m1(j){return k1(j)||j.panel?.docked===!0}function g1(j){return j.panel?.docked===!0&&!k1(j)}var v1=["text","media"],H0=new Map,o=null,d=null;function h1(j,$,J){for(let X=j;X<v1.length;X++){let Z=H0.get(v1[X]);if(Z)return Z($,(Q)=>h1(X+1,Q,J))}return J.call(window,$)}function y1(j){return(o??window.matchMedia).call(window,j)}function w0(j,$){if(H0.set(j,$),d)return;let J=window.matchMedia,X=function(Q){let B=String(Q);return d===X?h1(0,B,J):J.call(window,B)};o=J,d=X,window.matchMedia=X}function E0(j){if(H0.delete(j),H0.size>0||!d)return;if(window.matchMedia===d&&o)window.matchMedia=o;d=null,o=null}var p1=Symbol.for("devknobs.inline");function Y7(j){let $=Reflect.get(j,p1);return typeof $==="object"&&$!==null?$:null}function b0(j,$,J){let X=Y7(j);if(J===null||J===""){if(X)Reflect.deleteProperty(X,$);return}if(X)Reflect.set(X,$,J);else Reflect.set(j,p1,{[$]:J})}var C7=new WeakMap;function c1(j){let $=C7.get(j);return $&&j.media.mediaText===$.written?$.original:void 0}var l1={scheme:"system",motion:"system",contrast:"system",transparency:"system",touch:!1},P7="(min-width: 0px)",H7="all",z7="not all",v0={scheme:"prefers-color-scheme",motion:"prefers-reduced-motion",contrast:"prefers-contrast",transparency:"prefers-reduced-transparency"},n1=Object.keys(v0),s1=[["pointer","coarse"],["any-pointer","coarse"],["hover","none"],["any-hover","none"]],M7=[...n1.map((j)=>v0[j]),...s1.map(([j])=>j)];function o1(j){return[...n1.map(($)=>[v0[$],j[$]]),...s1.map(([$,J])=>[$,j.touch?J:"system"])]}function U7(j){return new RegExp(`\\(\\s*${j}\\s*(?::\\s*([a-z-]+)\\s*)?\\)`,"gi")}function I7(j,$){if(j===void 0||j==="")return $!=="no-preference"&&$!=="none";return j.toLowerCase()===$}function _7(j){let $=[],J=0,X=0;for(let Z=0;Z<j.length;Z++){let Q=j[Z];if(Q==="(")J++;else if(Q===")")J--;else if(Q===","&&J===0)$.push(j.slice(X,Z)),X=Z+1}return $.push(j.slice(X)),$.map((Z)=>Z.trim()).filter((Z)=>Z.length>0)}function F7(j,$,J,X){if(!$)return j;let Z=/^not\s/i.test(j);if(Z?J:!J)return z7;return Z?H7:X}function L7(j,$,J){let X=!1,Z=!0,Q=j.replace(U7($),(B,G)=>{if(X=!0,!I7(G,J))Z=!1;return P7});return F7(j,X,Z,Q)}function N7(j,$,J){if(J==="system")return j;if(!j.toLowerCase().includes($))return j;let X=_7(j);if(X.length===0)return j;return X.map((Z)=>L7(Z,$,J)).join(", ")}function a1(j,$){let J=j;for(let[X,Z]of o1($))J=N7(J,X,Z);return J}function h0(j){let $=j.toLowerCase();return M7.some((J)=>$.includes(J))}var M0=Symbol.for("devknobs.early"),u1=new WeakMap,x=new Set,v=new WeakMap,e=new WeakMap,U0=new WeakSet,r1=256,d1=r1,E=l1,z0=null,I0=null,r=null,y0=null,_0=!1,k0=!1,g0=null,t=null,i=0,a=null;function t1(j,$,J){for(let X=0;X<j.length;X++){let Z=j[X];if(!Z)continue;let Q=Z.styleSheet;if(Q)e1(Q,$,J);let B=Z.media;if(B&&typeof B.mediaText==="string")$(Z);let G=Z.cssRules;if(G&&G!==j)t1(G,$,J)}}function e1(j,$,J){if(J.has(j))return;J.add(j);let X=null;try{X=j.cssRules}catch{return}if(X)t1(X,$,J)}function p0(){let j=new Set,$=[...Array.from(document.styleSheets),...document.adoptedStyleSheets??[]];for(let J of $)e1(J,(X)=>{let Z=X.media.mediaText,Q=u1.get(X);if(Q===void 0){if(Q=c1(X)??Z,!h0(Q))return;u1.set(X,Q)}let B=a1(Q,E);if(B===Z)return;try{X.media.mediaText=B}catch{}},j)}function i1(){if(i)return;i=requestAnimationFrame(()=>{i=0,p0()})}function D7(){if(t||typeof MutationObserver>"u")return;t=new MutationObserver((j)=>{for(let $ of j)for(let J of Array.from($.addedNodes)){let X=J.nodeName;if(X!=="STYLE"&&X!=="LINK")continue;if(J.hasAttribute?.("data-devknobs"))continue;if(X==="LINK")J.addEventListener("load",i1,{once:!0});i1()}}),t.observe(document.documentElement,{childList:!0,subtree:!0})}function jj(){return o1(E).some(([,j])=>j!=="system")}function q7(j){try{let $=y1(a1(j,E));return I0?I0.call($):$.matches}catch{return!1}}function $j(){for(let j of Array.from(x)){let $=j.deref();if(!$){x.delete(j);continue}let J=$.matches;if(J===v.get($))continue;v.set($,J),$.dispatchEvent(new MediaQueryListEvent("change",{media:$.media,matches:J}))}}function Jj(j){if(g0){g0(j);return}if(!j.isTrusted)return;let $=j.currentTarget;if(!jj()){v.set($,j.matches);return}if(j.stopImmediatePropagation(),k0)return;k0=!0,queueMicrotask(()=>{k0=!1,$j()})}function m0(j){if(U0.has(j)||!e.has(j))return;U0.add(j),v.set(j,j.matches),(y0??j.addEventListener).call(j,"change",Jj)}function O7(j,$){if(e.set(j,$),v.set(j,j.matches),x.add(new WeakRef(j)),x.size<d1)return;for(let J of x)if(!J.deref())x.delete(J);d1=Math.max(r1,x.size*2)}var R7=["addEventListener","addListener","onchange"];function x7(){let j=MediaQueryList.prototype;r=new Map(R7.map((Q)=>[Q,Object.getOwnPropertyDescriptor(j,Q)]));let $=j.addEventListener;y0=$,Object.defineProperty(j,"addEventListener",{configurable:!0,writable:!0,value:function(...B){if(B[1]&&String(B[0])==="change")m0(this);$.apply(this,B)}});let J=j.addListener;if(typeof J==="function")Object.defineProperty(j,"addListener",{configurable:!0,writable:!0,value:function(...B){if(B[0])m0(this);J.apply(this,B)}});let X=r.get("onchange"),Z=X?.set;if(X&&Z)Object.defineProperty(j,"onchange",{...X,set(Q){if(Q!==null&&Q!==void 0)m0(this);Z.call(this,Q)}})}function A7(){if(!r)return;let j=MediaQueryList.prototype;for(let[$,J]of r)if(J)Object.defineProperty(j,$,J);else Reflect.deleteProperty(j,$);r=null,y0=null}function S7(j,$){let J=$(j);if(h0(j))O7(J,j);return J}function T7(){if(_0)return;let j=window,$=j[M0];j[M0]=null;let J=$?.release(Jj)??[];_0=!0;for(let{list:Q,query:B,heard:G,guarded:V}of J)if(e.set(Q,B),v.set(Q,G),x.add(new WeakRef(Q)),V!==!1)U0.add(Q);w0("media",S7),x7();let X=Object.getOwnPropertyDescriptor(MediaQueryList.prototype,"matches"),Z=X?.get;if(!X||!Z)return;z0=X,I0=Z,Object.defineProperty(MediaQueryList.prototype,"matches",{configurable:!0,enumerable:X.enumerable,get(){if(!jj())return Z.call(this);let Q=e.get(this)??this.media;return h0(Q)?q7(Q):Z.call(this)}})}function Xj(){let j=document.documentElement;if(a===null)a=j.style.getPropertyValue("color-scheme");let $=E.scheme==="system"?a:E.scheme;if($)j.style.setProperty("color-scheme",$);else j.style.removeProperty("color-scheme");let J=E.scheme!=="system"&&$!==a;b0(j,"color-scheme",J?j.style.getPropertyValue("color-scheme"):null)}function f7(j){E=j,T7(),D7(),Xj(),p0(),$j()}function w7(){if(t?.disconnect(),t=null,i)cancelAnimationFrame(i),i=0;if(_0){if(E0("media"),A7(),z0)Object.defineProperty(MediaQueryList.prototype,"matches",z0);z0=null,I0=null,_0=!1}a=null}function E7(j){let $=[];for(let J of x){let X=J.deref();if(!X)continue;$.push({list:X,query:e.get(X)??X.media,heard:v.get(X)??X.matches,guarded:U0.has(X)})}return g0=j,x.clear(),E=l1,Xj(),p0(),w7(),$}function Zj(j){let $=window;if(M0 in $)return;f7(j),$[M0]={release:E7}}var Qj={blue:{srgb:["rgb(20, 70, 152)","rgb(12, 48, 114)","rgb(7, 31, 80)"],p3:["color(display-p3 0.1 0.27 0.61)","color(display-p3 0.06 0.19 0.46)","color(display-p3 0.035 0.12 0.32)"],line:"rgb(170, 205, 255)"},green:{srgb:["rgb(26, 96, 71)","rgb(14, 71, 51)","rgb(8, 49, 35)"],p3:["color(display-p3 0.159 0.377 0.279)","color(display-p3 0.102 0.277 0.2)","color(display-p3 0.065 0.194 0.136)"],line:"rgb(160, 218, 191)"},magenta:{srgb:["rgb(123, 37, 88)","rgb(90, 22, 63)","rgb(62, 12, 42)"],p3:["color(display-p3 0.462 0.14 0.342)","color(display-p3 0.34 0.081 0.246)","color(display-p3 0.234 0.043 0.165)"],line:"rgb(238, 185, 211)"},purple:{srgb:["rgb(86, 56, 130)","rgb(62, 38, 96)","rgb(42, 24, 67)"],p3:["color(display-p3 0.326 0.209 0.521)","color(display-p3 0.233 0.138 0.387)","color(display-p3 0.156 0.086 0.269)"],line:"rgb(209, 193, 242)"},red:{srgb:["rgb(132, 36, 36)","rgb(97, 21, 22)","rgb(68, 11, 12)"],p3:["color(display-p3 0.499 0.139 0.133)","color(display-p3 0.369 0.079 0.078)","color(display-p3 0.256 0.041 0.042)"],line:"rgb(239, 188, 183)"},graphite:{srgb:["rgb(64, 68, 74)","rgb(43, 46, 51)","rgb(26, 28, 32)"],p3:["color(display-p3 0.25 0.264 0.291)","color(display-p3 0.169 0.179 0.2)","color(display-p3 0.102 0.11 0.126)"],line:"rgb(198, 203, 211)"}},b7=["blue","green","magenta","purple","red","graphite"];function d0(j){return`radial-gradient(140% 100% at 50% 0%, ${j[0]}, ${j[1]} 60%, ${j[2]})`}function k7(j){return b7.some(($)=>$===j)}var c0=[1,0.82,0.64];function u0(j){return`rgb(${Math.round(j.red)}, ${Math.round(j.green)}, ${Math.round(j.blue)})`}function m7(j){let $=(J)=>({red:j.red*J,green:j.green*J,blue:j.blue*J,alpha:1});return[$(c0[0]),$(c0[1]),$(c0[2])]}function g7(j){return P0(j)?U1(j):null}function Bj(j){if(k7(j))return Qj[j];let $=g7(j);if(!$)return Qj.blue;let[J,X,Z]=m7($),Q=[u0(J),u0(X),u0(Z)];return{srgb:Q,p3:Q}}var v7=Symbol.for("devknobs.own"),Kj=Symbol.for("devknobs.name"),Gj=Symbol.for("devknobs.text"),Vj=new WeakMap;function i0(j){return j.nodeType===9}function h7(j){return i0(j)?j:j.ownerDocument??document}function Wj(j){let J=(i0(j)?j:j.ownerDocument)?.defaultView?.CSSStyleSheet;if(typeof J!=="function"||typeof J.prototype.replaceSync!=="function")return null;return"adoptedStyleSheets"in j?J:null}function Yj(j,$){let J=Vj.get($);if(J)return J;let X={get textContent(){let Z=Reflect.get($,Gj);return typeof Z==="string"?Z:""},set textContent(Z){Reflect.set($,Gj,Z??""),$.replaceSync(Z??"")},sheet:$,remove(){j.adoptedStyleSheets=j.adoptedStyleSheets.filter((Z)=>Z!==$)}};return Vj.set($,X),X}function Cj(j,$,J){let X=new $;if(Reflect.set(X,v7,!0),J!==void 0)Reflect.set(X,Kj,J);return j.adoptedStyleSheets=[...j.adoptedStyleSheets,X],Yj(j,X)}function Pj(j,$){let J=Wj(j);if(J){let Z=Cj(j,J);return Z.textContent=$,Z}let X=h7(j).createElement("style");if(X.textContent=$,i0(j))(j.head??j.documentElement).appendChild(X);else j.append(X);return X}function F0(j,$=document){let J="adoptedStyleSheets"in $?$.adoptedStyleSheets.find((X)=>Reflect.get(X,Kj)===j):void 0;return J?Yj($,J):$.querySelector(`style[data-devknobs="${j}"]`)}function Hj(j,$=document){let J=F0(j,$);if(J)return J;let X=Wj($);if(X)return Cj($,X,j);let Z=$.createElement("style");return Z.setAttribute("data-devknobs",j),($.head??$.documentElement).appendChild(Z),Z}function zj(j,$=document){F0(j,$)?.remove()}var Mj=2147483645,j0="early",y7="devknobs:snapshot",p7=1,c7=3000;function u7(j){if(!j)return`html{overflow:hidden!important}
|
|
1
|
+
(()=>{var Y1=(j,$)=>()=>(j&&($=j(j=0)),$);var o0,N0=()=>{},gj=(j)=>j.__REACT_DEVTOOLS_GLOBAL_HOOK__,P$=(j)=>{let $=j.current.memoizedState;return $===null||$!==void 0&&($.element===null||$.element===void 0)},vj=(j)=>{try{Function.prototype.toString.call(j).indexOf("^_^")>-1&&setTimeout(()=>{throw Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://react.dev/link/perf-use-production-build")})}catch{}},hj=(j=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(j&&("getFiberRoots"in j)&&j._isBippyHook!==!0),C$=(j=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>{if(!j||typeof j.inject!="function"||hj(j))return!1;try{return Function.prototype.toString.call(j.inject).includes("(injected)")}catch{return!1}},yj,e0,a0,H$,pj,kj,cj=(j,$)=>{yj.add(j);let J=a0.get(j)??new Set;J.add($),a0.set(j,J)},r0=(j)=>{for(let $ of yj)a0.get($)?.has(j)&&$()},z$=(j,$)=>{for(let J of H$)J.target===j&&J.listener($)},M$=(j,$)=>{for(let J of pj)J(j,$)},U$=(j)=>Object.prototype.toString.call(j)==="[object Map]",uj=(j)=>(U$(j.renderers)||(j.renderers=new Map),j.renderers),dj=(j,$,J,X,Z)=>{J.set(X,Z),e0.add(Z),j._instrumentationIsActive||(j._instrumentationIsActive=!0,r0($));let Q=kj.get($)??new WeakSet;kj.set($,Q),!Q.has(Z)&&(Q.add(Z),z$($,Z))},mj=(j,$=globalThis)=>{j&&cj(j,$);let J=new Map,X=new Map,Z=(G)=>{let V=X.get(G)??new Set;return X.set(G,V),V},Q=0,B={_instrumentationIsActive:!1,_instrumentationSource:"bippy-0.7.3",_isBippyHook:!0,checkDCE:vj,getFiberRoots:Z,hasUnsupportedRendererAttached:!1,inject:(G)=>{let V=++Q;return dj(B,$,J,V,G),V},on:N0,onCommitFiberRoot:(G,V)=>{let K=Z(G);P$(V)?K.delete(V):K.add(V)},onCommitFiberUnmount:N0,onPostCommitFiberRoot:N0,renderers:J,supportsFiber:!0,supportsFlight:!0};try{if(o0($,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!0,enumerable:!0,get:()=>B,set:(G)=>{if(G&&typeof G=="object"){let V=B.renderers;B=G;let K=uj(B);V.forEach((Y,H)=>{e0.add(Y),K.set(H,Y)}),(V.size>0||pj.size>0)&&t0(j,$),M$(B,$)}}}),$===globalThis&&typeof window<"u"){let G=window.hasOwnProperty.bind(window),V=Object.getOwnPropertyDescriptor(window,"hasOwnProperty"),K=!1,Y=()=>{V?o0(window,"hasOwnProperty",V):Reflect.deleteProperty(window,"hasOwnProperty")};o0(window,"hasOwnProperty",{configurable:!0,value:(H)=>!K&&H==="__REACT_DEVTOOLS_GLOBAL_HOOK__"?(K=!0,Y(),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,!1):G(H),writable:!0})}}catch{t0(j,$)}return B},t0=(j,$=globalThis)=>{j&&cj(j,$);let J=!1,X=gj($);if(!X)return;let Z=uj(X);if(!X._instrumentationSource){X.checkDCE=vj,X.supportsFiber=!0,X.supportsFlight=!0,X.hasUnsupportedRendererAttached=!1,X._instrumentationSource="bippy-0.7.3",X._instrumentationIsActive=!1;let Q=hj(X);Q||(X.on=N0),Z.size?(Z.forEach((G)=>e0.add(G)),X._instrumentationIsActive=!0,r0($),J=!0):!Q&&C$(X)&&(X._instrumentationIsActive=!0,r0($),J=!0);let B=X.inject;X.inject=(G)=>{let V=B.call(X,G);return dj(X,$,Z,V,G),V}}!J&&(Z.size||X._instrumentationIsActive)&&j?.()},I$=(j=globalThis)=>Object.hasOwn(j,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),ij=(j,$=globalThis)=>I$($)?(t0(j,$),gj($)??mj(j,$)):mj(j,$);var lj=Y1(()=>{o0=Object.defineProperty,yj=new Set,e0=new Set,a0=new WeakMap,H$=new Set,pj=new Set,kj=new WeakMap});var _$={};var nj=Y1(()=>{lj();try{ij()}catch{}});var D3=Symbol.for("devknobs.clock"),g=globalThis[D3]??={Date,clock:null},Y0=g.Date;function D(){return Y0.now()}function q3(j,$){if(j.mode==="frozen")return j.at;if(j.mode==="offset")return Math.floor(j.at+($-j.since)*j.speed);return $}function O3(j){g.clock=j&&j.mode!=="system"?{...j}:null}function W0(){return g.clock?q3(g.clock,D()):D()}function R3(j,$){return new Proxy(j,{construct(J,X,Z){if(X.length===0&&g.clock)return Reflect.construct(J,[W0()],Z);return Reflect.construct(J,$?$.args(X):X,Z)},apply(J,X,Z){if(!g.clock&&!$?.on())return Reflect.apply(J,X,Z);return String(new Y0(W0()))},get(J,X,Z){if(X==="now")return W0;if(X==="parse"&&$)return $.parse;return Reflect.get(J,X,Z)}})}var C1={instant:(j)=>j,zonedDateTimeISO:(j,$)=>j.toZonedDateTimeISO($),plainDateTimeISO:(j,$)=>j.toZonedDateTimeISO($).toPlainDateTime(),plainDateISO:(j,$)=>j.toZonedDateTimeISO($).toPlainDate(),plainTimeISO:(j,$)=>j.toZonedDateTimeISO($).toPlainTime()},x3=Object.keys(C1);function A3(){return globalThis.Temporal?.Now}function S3(j,$,J){return function(X){let Z=J(X),Q=globalThis.Temporal;if(!g.clock||!Q?.Instant)return $.call(this,Z);let B=Q.Instant.fromEpochMilliseconds(W0()),G=Q.Now?.timeZoneId,V=typeof G==="function"?G.call(Q.Now):void 0;return C1[j](B,Z??V)}}var P1=Symbol.for("devknobs.early.clock");function H1(j){let $=globalThis;if(P1 in $||j.mode==="system")return;O3(j);let J=[],X=(Q,B,G)=>{let V=Reflect.get(Q,B);if(!Reflect.set(Q,B,G))return;J.push(()=>{if(Reflect.get(Q,B)===G)Reflect.set(Q,B,V)})};X(globalThis,"Date",R3(Y0)),X(Y0.prototype,"constructor",globalThis.Date);let Z=A3();for(let Q of x3){let B=Z?.[Q];if(Z&&typeof B==="function"){let G=S3(Q,B,(V)=>V);X(Z,Q,G)}}$[P1]={release:()=>{for(let Q of J.reverse())Q()}}}var P0=["closed","open"];var R0=[{id:"iphone-18-pro",label:"iPhone 18 Pro",width:402,height:874,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-18-pro-max",label:"iPhone 18 Pro Max",width:440,height:956,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-duo",label:"iPhone Duo",width:466,height:678,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone",postures:{closed:{id:"iphone-duo-closed",label:"iPhone Duo (closed)",clockwise:!0},open:{id:"iphone-duo-open",label:"iPhone Duo (open)",width:669,height:951,usual:"landscape",clockwise:!0}}},{id:"iphone-air",label:"iPhone Air",width:420,height:912,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-17",label:"iPhone 17",width:402,height:874,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-17-pro",label:"iPhone 17 Pro",width:402,height:874,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-17-pro-max",label:"iPhone 17 Pro Max",width:440,height:956,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-16",label:"iPhone 16",width:393,height:852,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-16-plus",label:"iPhone 16 Plus",width:430,height:932,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-16-pro",label:"iPhone 16 Pro",width:402,height:874,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-16-pro-max",label:"iPhone 16 Pro Max",width:440,height:956,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-se",label:"iPhone SE",width:375,height:667,dpr:2,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"pixel-10",label:"Pixel 10",width:412,height:924,dpr:2.625,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-10-pro",label:"Pixel 10 Pro",width:427,height:952,dpr:3,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-10-pro-xl",label:"Pixel 10 Pro XL",width:448,height:998,dpr:3,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-10a",label:"Pixel 10a",width:412,height:924,dpr:2.625,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-9",label:"Pixel 9",width:412,height:924,dpr:2.625,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-9-pro",label:"Pixel 9 Pro",width:427,height:952,dpr:3,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-9-pro-xl",label:"Pixel 9 Pro XL",width:448,height:998,dpr:3,ua:"android-chrome",touch:!0,kind:"phone"},{id:"ipad-mini",label:"iPad mini",width:744,height:1133,dpr:2,ua:"ipad-safari",touch:!0,kind:"tablet"},{id:"ipad-air-11",label:"iPad Air 11",width:820,height:1180,dpr:2,ua:"ipad-safari",touch:!0,kind:"tablet"},{id:"ipad-pro-13",label:"iPad Pro 13",width:1032,height:1376,dpr:2,ua:"ipad-safari",touch:!0,kind:"tablet"},{id:"macbook-air-13",label:"MacBook Air 13",width:1470,height:956,dpr:2,ua:"mac-safari",touch:!1,kind:"laptop"},{id:"laptop",label:"laptop",width:1366,height:768,dpr:1,ua:"windows-chrome",touch:!1,kind:"laptop"},{id:"desktop",label:"desktop",width:1920,height:1080,dpr:1,ua:"windows-chrome",touch:!1,kind:"desktop"}];function x0(j){return R0.find(($)=>$.id===j)}function z1(j){for(let $ of R0){let J=P0.find((X)=>$.postures?.[X].id===j);if(J)return{device:$.id,posture:J}}return}var X2=R0.flatMap((j)=>{let{postures:$}=j;return $?P0.map((J)=>({...j,...$[J]})):[j]});function M1(j){return x0(j)?.touch===!0}function C0(j){return typeof j==="string"&&/^#[0-9a-f]{6}$/.test(j)}function U1(j){let J=/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(j.trim())?.[1];if(!J)return null;let X=J.length===3?Array.from(J,(G)=>G+G):J.match(/../g),[Z=0,Q=0,B=0]=(X??[]).map((G)=>Number.parseInt(G,16));return{red:Z,green:Q,blue:B,alpha:1}}function T3(j){if(typeof j!=="object"||j===null)return 0;let $=Reflect.get(j,"v");return typeof $==="number"&&Number.isInteger($)&&$>=0?$:0}function O(j,$){return T3(j)>$}function n(j,$){return{v:$,...j}}var A0="devknobs",f3="fresh",w3="data-devknobs-fresh",S0="devknobs:fresh-reload",E3=1,b3=1e4,k3="devknobs:locale-",I1=Symbol.for("devknobs.fresh");function F1(j){try{return new URLSearchParams(j).getAll(A0).includes(f3)}catch{return!1}}function m3(j){if(j===A0)return!0;return j.startsWith(`${A0}:`)&&!j.startsWith(k3)}function g3(j){if(!j)return 0;try{let $=JSON.parse(j);if(typeof $!=="object"||$===null||O($,E3))return 0;let J=Reflect.get($,"at");return typeof J==="number"?J:0}catch{return 0}}function v3(){try{let j=window.sessionStorage,$=D()-g3(j.getItem(S0));if(j.removeItem(S0),$>=0&&$<b3)return;let J=[];for(let X=0;X<j.length;X++){let Z=j.key(X);if(Z!==null&&m3(Z))J.push(Z)}for(let X of J)j.removeItem(X)}catch{}}function h3(){try{window.sessionStorage.removeItem(S0)}catch{}}function y3(){try{let j=window.frameElement;if(j)return j.hasAttribute(w3)}catch{}return window.name===T0&&F1(window.location?.search??"")}function _1(){if(typeof window>"u")return!1;let j=Reflect.get(window,I1);if(typeof j==="boolean")return j;let $=!1;try{if(R())$=y3();else if($=F1(window.location?.search??""),$)v3();else h3()}catch{$=!1}return Reflect.set(window,I1,$),$}function T(j){try{if(typeof window>"u")return null;if(j==="session")return _1(),window.sessionStorage??null;return _1()?null:window.localStorage??null}catch{return null}}var L1=20,N1=40;function D1(j){return Math.min(Math.max(j,0.25),4)}var p3="devknobs",c3=2,u3="devknobs:place",d3=2,f1=["device","scheme","text","locale"],q1=128,i3=new Map([["speed","motion"],["pseudo","locale"],["timeZone","clock"],["ua","device"],["grabColor","debug"]]),W={scheme:"system",motion:"system",speed:1,contrast:"system",transparency:"system",locale:{lang:"system",dir:"system"},pseudo:!1,geo:{preset:"system",lat:0,lng:0,accuracy:L1,timeZone:"",error:"none",route:"",speed:N1},timeZone:"geo",clock:{mode:"system",at:0,since:0,speed:1,header:!1},network:{online:"system",type:"system",saveData:"system"},text:"system",spacing:!1,width:"full",height:"full",device:"none",orientation:"portrait",posture:"closed",mock:!0,touchPointer:!0,browser:"auto",bars:"auto",edgeToEdge:!0,frame:!1,dpr:"system",zoom:"fit",mat:"blue",vision:"none",ua:{preset:"system",custom:""},overflow:!1,outlines:!1,grabColor:"auto",panel:{open:!1,side:"right",y:q1,top:q1,edge:"none",tab:"top",docked:!1,handle:!0,devIcon:"auto",pinned:[...f1]}},l3=["light","dark","system"],n3=["reduce","system"],s3=["more","system"],o3=["reduce","system"],a3=["ltr","rtl","system"],r3=["none","denied","unavailable","timeout"],t3=["system","offset","frozen"],e3=["offline","system"],j7=["slow-2g","2g","3g","4g","system"],$7=["on","off","system"],J7=["auto","expanded","minimized"],X7=["auto","compact","bottom","top","off"],Z7=["portrait","landscape"],O1=["top","bottom","none"],Q7=["left","right"],B7=["auto","on","off"],G7=["none","protanopia","deuteranopia","tritanopia","achromatopsia","blur"],V7=["blue","green","magenta","purple","red","graphite"],K7=["auto","blue","green","pink","orange","purple","cyan"];function w(j){return typeof j==="object"&&j!==null?j:{}}function _(j,$,J){return $.includes(j)?j:J}function R1(j,$,J){return C0(j)?j:_(j,$,J)}function f(j,$){return typeof j==="string"?j:$}function q(j,$){return typeof j==="number"&&Number.isFinite(j)?j:$}function L(j,$){return typeof j==="boolean"?j:$}function s(j,$,J){if(j===$)return $;if(typeof j==="number"&&Number.isFinite(j)&&j>0)return j;return J}function x1(j,$){return typeof j==="number"&&Number.isFinite(j)&&j>=0?j:$}function W7(j){if(!Array.isArray(j))return[];let $=j.filter((J)=>typeof J==="string");return Array.from(new Set($.map((J)=>i3.get(J)??J)))}function A1(j,$){if(!j)return null;try{let J=JSON.parse(j);return O(J,$)?null:J}catch{return null}}function S1(j,$){let J=w(j),X=Number.isFinite(q(J.y,q(J.top,Number.NaN)));return{side:_(J.side,Q7,$.side),y:q(J.y,$.y),top:q(J.top,q(J.y,$.top)),edge:_(J.edge,O1,X?"none":$.edge),tab:_(J.tab,O1,X?"none":$.tab),docked:L(J.docked,$.docked)}}function w1(j,$){let J=S1(A1($,d3),W.panel),X=w(A1(j,c3)),Z=w(X.locale),Q=w(X.geo),B=w(X.clock),G=w(X.network),V=w(X.ua),K=w(X.panel),Y=f(X.device,W.device),H=z1(Y),C=s(X.zoom,"fit",W.zoom);return{scheme:_(X.scheme,l3,W.scheme),motion:_(X.motion,n3,W.motion),speed:x1(X.speed,W.speed),contrast:_(X.contrast,s3,W.contrast),transparency:_(X.transparency,o3,W.transparency),locale:{lang:f(Z.lang,W.locale.lang),dir:_(Z.dir,a3,W.locale.dir)},pseudo:L(X.pseudo,W.pseudo),geo:{preset:f(Q.preset,W.geo.preset),lat:q(Q.lat,W.geo.lat),lng:q(Q.lng,W.geo.lng),accuracy:q(Q.accuracy,W.geo.accuracy),timeZone:f(Q.timeZone,W.geo.timeZone),error:_(Q.error,r3,W.geo.error),route:f(Q.route,W.geo.route),speed:q(Q.speed,W.geo.speed)},timeZone:f(X.timeZone,"")||W.timeZone,clock:{mode:_(B.mode,t3,W.clock.mode),at:q(B.at,W.clock.at),since:q(B.since,W.clock.since),speed:x1(B.speed,W.clock.speed),header:L(B.header,W.clock.header)},network:{online:_(G.online,e3,W.network.online),type:_(G.type,j7,W.network.type),saveData:_(G.saveData,$7,W.network.saveData)},text:s(X.text,"system",W.text),spacing:L(X.spacing,W.spacing),width:s(X.width,"full",W.width),height:s(X.height,"full",W.height),device:H?.device??(x0(Y)?Y:W.device),orientation:_(X.orientation,Z7,W.orientation),posture:H?.posture??_(X.posture,[...P0],W.posture),mock:L(X.mock,W.mock),touchPointer:L(X.touchPointer,W.touchPointer),browser:_(X.browser,X7,W.browser),bars:X.browserMin===!0?"minimized":_(X.bars,J7,W.bars),edgeToEdge:L(X.edgeToEdge,W.edgeToEdge),frame:L(X.frame,W.frame),dpr:s(X.dpr,"system",W.dpr),zoom:C==="fit"?C:D1(C),mat:R1(X.mat,V7,"blue"),vision:_(X.vision,G7,W.vision),ua:{preset:f(V.preset,W.ua.preset),custom:f(V.custom,W.ua.custom)},overflow:L(X.overflow,W.overflow),outlines:L(X.outlines,W.outlines),grabColor:R1(X.grabColor,K7,"auto"),panel:{open:L(K.open,W.panel.open),...S1(K,J),handle:L(K.handle,W.panel.handle),devIcon:_(K.devIcon,B7,W.panel.devIcon),pinned:X.panel===void 0?[...f1]:W7(K.pinned)}}}function T1(j,$){try{return T(j)?.getItem($)??null}catch{return null}}function E1(){return w1(T1("session",p3),T1("local",u3))}var Y7="data-devknobs-frame",T0="devknobs-frame";function R(){try{if(window.frameElement?.hasAttribute(Y7))return!0}catch{}return window.name===T0}function b1(j){if(j==="system")return!1;try{return window.frameElement?.style.getPropertyValue("color-scheme")===j}catch{return!1}}var P7={width:"full",height:"full",frame:!1,dpr:"system",vision:"none"},S2={...P7,device:"none",panel:{docked:!1}};function f0(j){return typeof j==="number"&&j>0}function k1(j){return f0(j.width)||f0(j.height)||j.frame||f0(j.dpr)||j.vision!=="none"}function m1(j){return k1(j)||j.panel?.docked===!0}function g1(j){return j.panel?.docked===!0&&!k1(j)}var v1=["text","media"],H0=new Map,o=null,d=null;function h1(j,$,J){for(let X=j;X<v1.length;X++){let Z=H0.get(v1[X]);if(Z)return Z($,(Q)=>h1(X+1,Q,J))}return J.call(window,$)}function y1(j){return(o??window.matchMedia).call(window,j)}function w0(j,$){if(H0.set(j,$),d)return;let J=window.matchMedia,X=function(Q){let B=String(Q);return d===X?h1(0,B,J):J.call(window,B)};o=J,d=X,window.matchMedia=X}function E0(j){if(H0.delete(j),H0.size>0||!d)return;if(window.matchMedia===d&&o)window.matchMedia=o;d=null,o=null}var p1=Symbol.for("devknobs.inline");function C7(j){let $=Reflect.get(j,p1);return typeof $==="object"&&$!==null?$:null}function b0(j,$,J){let X=C7(j);if(J===null||J===""){if(X)Reflect.deleteProperty(X,$);return}if(X)Reflect.set(X,$,J);else Reflect.set(j,p1,{[$]:J})}var H7=new WeakMap;function c1(j){let $=H7.get(j);return $&&j.media.mediaText===$.written?$.original:void 0}var l1={scheme:"system",motion:"system",contrast:"system",transparency:"system",touch:!1},z7="(min-width: 0px)",M7="all",U7="not all",v0={scheme:"prefers-color-scheme",motion:"prefers-reduced-motion",contrast:"prefers-contrast",transparency:"prefers-reduced-transparency"},n1=Object.keys(v0),s1=[["pointer","coarse"],["any-pointer","coarse"],["hover","none"],["any-hover","none"]],I7=[...n1.map((j)=>v0[j]),...s1.map(([j])=>j)];function o1(j){return[...n1.map(($)=>[v0[$],j[$]]),...s1.map(([$,J])=>[$,j.touch?J:"system"])]}function _7(j){return new RegExp(`\\(\\s*${j}\\s*(?::\\s*([a-z-]+)\\s*)?\\)`,"gi")}function F7(j,$){if(j===void 0||j==="")return $!=="no-preference"&&$!=="none";return j.toLowerCase()===$}function L7(j){let $=[],J=0,X=0;for(let Z=0;Z<j.length;Z++){let Q=j[Z];if(Q==="(")J++;else if(Q===")")J--;else if(Q===","&&J===0)$.push(j.slice(X,Z)),X=Z+1}return $.push(j.slice(X)),$.map((Z)=>Z.trim()).filter((Z)=>Z.length>0)}function N7(j,$,J,X){if(!$)return j;let Z=/^not\s/i.test(j);if(Z?J:!J)return U7;return Z?M7:X}function D7(j,$,J){let X=!1,Z=!0,Q=j.replace(_7($),(B,G)=>{if(X=!0,!F7(G,J))Z=!1;return z7});return N7(j,X,Z,Q)}function q7(j,$,J){if(J==="system")return j;if(!j.toLowerCase().includes($))return j;let X=L7(j);if(X.length===0)return j;return X.map((Z)=>D7(Z,$,J)).join(", ")}function a1(j,$){let J=j;for(let[X,Z]of o1($))J=q7(J,X,Z);return J}function h0(j){let $=j.toLowerCase();return I7.some((J)=>$.includes(J))}var M0=Symbol.for("devknobs.early"),u1=new WeakMap,x=new Set,v=new WeakMap,e=new WeakMap,U0=new WeakSet,r1=256,d1=r1,E=l1,z0=null,I0=null,r=null,y0=null,_0=!1,k0=!1,g0=null,t=null,i=0,a=null;function t1(j,$,J){for(let X=0;X<j.length;X++){let Z=j[X];if(!Z)continue;let Q=Z.styleSheet;if(Q)e1(Q,$,J);let B=Z.media;if(B&&typeof B.mediaText==="string")$(Z);let G=Z.cssRules;if(G&&G!==j)t1(G,$,J)}}function e1(j,$,J){if(J.has(j))return;J.add(j);let X=null;try{X=j.cssRules}catch{return}if(X)t1(X,$,J)}function p0(){let j=new Set,$=[...Array.from(document.styleSheets),...document.adoptedStyleSheets??[]];for(let J of $)e1(J,(X)=>{let Z=X.media.mediaText,Q=u1.get(X);if(Q===void 0){if(Q=c1(X)??Z,!h0(Q))return;u1.set(X,Q)}let B=a1(Q,E);if(B===Z)return;try{X.media.mediaText=B}catch{}},j)}function i1(){if(i)return;i=requestAnimationFrame(()=>{i=0,p0()})}function O7(){if(t||typeof MutationObserver>"u")return;t=new MutationObserver((j)=>{for(let $ of j)for(let J of Array.from($.addedNodes)){let X=J.nodeName;if(X!=="STYLE"&&X!=="LINK")continue;if(J.hasAttribute?.("data-devknobs"))continue;if(X==="LINK")J.addEventListener("load",i1,{once:!0});i1()}}),t.observe(document.documentElement,{childList:!0,subtree:!0})}function jj(){return o1(E).some(([,j])=>j!=="system")}function R7(j){try{let $=y1(a1(j,E));return I0?I0.call($):$.matches}catch{return!1}}function $j(){for(let j of Array.from(x)){let $=j.deref();if(!$){x.delete(j);continue}let J=$.matches;if(J===v.get($))continue;v.set($,J),$.dispatchEvent(new MediaQueryListEvent("change",{media:$.media,matches:J}))}}function Jj(j){if(g0){g0(j);return}if(!j.isTrusted)return;let $=j.currentTarget;if(!jj()){v.set($,j.matches);return}if(j.stopImmediatePropagation(),k0)return;k0=!0,queueMicrotask(()=>{k0=!1,$j()})}function m0(j){if(U0.has(j)||!e.has(j))return;U0.add(j),v.set(j,j.matches),(y0??j.addEventListener).call(j,"change",Jj)}function x7(j,$){if(e.set(j,$),v.set(j,j.matches),x.add(new WeakRef(j)),x.size<d1)return;for(let J of x)if(!J.deref())x.delete(J);d1=Math.max(r1,x.size*2)}var A7=["addEventListener","addListener","onchange"];function S7(){let j=MediaQueryList.prototype;r=new Map(A7.map((Q)=>[Q,Object.getOwnPropertyDescriptor(j,Q)]));let $=j.addEventListener;y0=$,Object.defineProperty(j,"addEventListener",{configurable:!0,writable:!0,value:function(...B){if(B[1]&&String(B[0])==="change")m0(this);$.apply(this,B)}});let J=j.addListener;if(typeof J==="function")Object.defineProperty(j,"addListener",{configurable:!0,writable:!0,value:function(...B){if(B[0])m0(this);J.apply(this,B)}});let X=r.get("onchange"),Z=X?.set;if(X&&Z)Object.defineProperty(j,"onchange",{...X,set(Q){if(Q!==null&&Q!==void 0)m0(this);Z.call(this,Q)}})}function T7(){if(!r)return;let j=MediaQueryList.prototype;for(let[$,J]of r)if(J)Object.defineProperty(j,$,J);else Reflect.deleteProperty(j,$);r=null,y0=null}function f7(j,$){let J=$(j);if(h0(j))x7(J,j);return J}function w7(){if(_0)return;let j=window,$=j[M0];j[M0]=null;let J=$?.release(Jj)??[];_0=!0;for(let{list:Q,query:B,heard:G,guarded:V}of J)if(e.set(Q,B),v.set(Q,G),x.add(new WeakRef(Q)),V!==!1)U0.add(Q);w0("media",f7),S7();let X=Object.getOwnPropertyDescriptor(MediaQueryList.prototype,"matches"),Z=X?.get;if(!X||!Z)return;z0=X,I0=Z,Object.defineProperty(MediaQueryList.prototype,"matches",{configurable:!0,enumerable:X.enumerable,get(){if(!jj())return Z.call(this);let Q=e.get(this)??this.media;return h0(Q)?R7(Q):Z.call(this)}})}function Xj(){let j=document.documentElement;if(a===null)a=j.style.getPropertyValue("color-scheme");let $=E.scheme==="system"?a:E.scheme;if($)j.style.setProperty("color-scheme",$);else j.style.removeProperty("color-scheme");let J=E.scheme!=="system"&&$!==a;b0(j,"color-scheme",J?j.style.getPropertyValue("color-scheme"):null)}function E7(j){E=j,w7(),O7(),Xj(),p0(),$j()}function b7(){if(t?.disconnect(),t=null,i)cancelAnimationFrame(i),i=0;if(_0){if(E0("media"),T7(),z0)Object.defineProperty(MediaQueryList.prototype,"matches",z0);z0=null,I0=null,_0=!1}a=null}function k7(j){let $=[];for(let J of x){let X=J.deref();if(!X)continue;$.push({list:X,query:e.get(X)??X.media,heard:v.get(X)??X.matches,guarded:U0.has(X)})}return g0=j,x.clear(),E=l1,Xj(),p0(),b7(),$}function Zj(j){let $=window;if(M0 in $)return;E7(j),$[M0]={release:k7}}var Qj={blue:{srgb:["rgb(20, 70, 152)","rgb(12, 48, 114)","rgb(7, 31, 80)"],p3:["color(display-p3 0.1 0.27 0.61)","color(display-p3 0.06 0.19 0.46)","color(display-p3 0.035 0.12 0.32)"],line:"rgb(170, 205, 255)"},green:{srgb:["rgb(26, 96, 71)","rgb(14, 71, 51)","rgb(8, 49, 35)"],p3:["color(display-p3 0.159 0.377 0.279)","color(display-p3 0.102 0.277 0.2)","color(display-p3 0.065 0.194 0.136)"],line:"rgb(160, 218, 191)"},magenta:{srgb:["rgb(123, 37, 88)","rgb(90, 22, 63)","rgb(62, 12, 42)"],p3:["color(display-p3 0.462 0.14 0.342)","color(display-p3 0.34 0.081 0.246)","color(display-p3 0.234 0.043 0.165)"],line:"rgb(238, 185, 211)"},purple:{srgb:["rgb(86, 56, 130)","rgb(62, 38, 96)","rgb(42, 24, 67)"],p3:["color(display-p3 0.326 0.209 0.521)","color(display-p3 0.233 0.138 0.387)","color(display-p3 0.156 0.086 0.269)"],line:"rgb(209, 193, 242)"},red:{srgb:["rgb(132, 36, 36)","rgb(97, 21, 22)","rgb(68, 11, 12)"],p3:["color(display-p3 0.499 0.139 0.133)","color(display-p3 0.369 0.079 0.078)","color(display-p3 0.256 0.041 0.042)"],line:"rgb(239, 188, 183)"},graphite:{srgb:["rgb(64, 68, 74)","rgb(43, 46, 51)","rgb(26, 28, 32)"],p3:["color(display-p3 0.25 0.264 0.291)","color(display-p3 0.169 0.179 0.2)","color(display-p3 0.102 0.11 0.126)"],line:"rgb(198, 203, 211)"}},m7=["blue","green","magenta","purple","red","graphite"];function d0(j){return`radial-gradient(140% 100% at 50% 0%, ${j[0]}, ${j[1]} 60%, ${j[2]})`}function g7(j){return m7.some(($)=>$===j)}var c0=[1,0.82,0.64];function u0(j){return`rgb(${Math.round(j.red)}, ${Math.round(j.green)}, ${Math.round(j.blue)})`}function v7(j){let $=(J)=>({red:j.red*J,green:j.green*J,blue:j.blue*J,alpha:1});return[$(c0[0]),$(c0[1]),$(c0[2])]}function h7(j){return C0(j)?U1(j):null}function Bj(j){if(g7(j))return Qj[j];let $=h7(j);if(!$)return Qj.blue;let[J,X,Z]=v7($),Q=[u0(J),u0(X),u0(Z)];return{srgb:Q,p3:Q}}var y7=Symbol.for("devknobs.own"),Kj=Symbol.for("devknobs.name"),Gj=Symbol.for("devknobs.text"),Vj=new WeakMap;function i0(j){return j.nodeType===9}function p7(j){return i0(j)?j:j.ownerDocument??document}function Wj(j){let J=(i0(j)?j:j.ownerDocument)?.defaultView?.CSSStyleSheet;if(typeof J!=="function"||typeof J.prototype.replaceSync!=="function")return null;return"adoptedStyleSheets"in j?J:null}function Yj(j,$){let J=Vj.get($);if(J)return J;let X={get textContent(){let Z=Reflect.get($,Gj);return typeof Z==="string"?Z:""},set textContent(Z){Reflect.set($,Gj,Z??""),$.replaceSync(Z??"")},sheet:$,remove(){j.adoptedStyleSheets=j.adoptedStyleSheets.filter((Z)=>Z!==$)}};return Vj.set($,X),X}function Pj(j,$,J){let X=new $;if(Reflect.set(X,y7,!0),J!==void 0)Reflect.set(X,Kj,J);return j.adoptedStyleSheets=[...j.adoptedStyleSheets,X],Yj(j,X)}function Cj(j,$){let J=Wj(j);if(J){let Z=Pj(j,J);return Z.textContent=$,Z}let X=p7(j).createElement("style");if(X.textContent=$,i0(j))(j.head??j.documentElement).appendChild(X);else j.append(X);return X}function F0(j,$=document){let J="adoptedStyleSheets"in $?$.adoptedStyleSheets.find((X)=>Reflect.get(X,Kj)===j):void 0;return J?Yj($,J):$.querySelector(`style[data-devknobs="${j}"]`)}function Hj(j,$=document){let J=F0(j,$);if(J)return J;let X=Wj($);if(X)return Pj($,X,j);let Z=$.createElement("style");return Z.setAttribute("data-devknobs",j),($.head??$.documentElement).appendChild(Z),Z}function zj(j,$=document){F0(j,$)?.remove()}var Uj=2147483645,j0="early",c7="devknobs:snapshot",u7=1,d7=3000;function i7(j){if(!j)return`html{overflow:hidden!important}
|
|
2
2
|
body>:not([data-devknobs]){content-visibility:hidden!important}`;let J=Bj(j);return`html{overflow:hidden!important}
|
|
3
3
|
body>:not([data-devknobs]){content-visibility:hidden!important}
|
|
4
|
-
html::after{content:"";position:fixed;inset:0;z-index:${
|
|
5
|
-
@media (color-gamut:p3){html::after{background:${d0(J.p3)}}}`}function d7(j,$){return JSON.stringify([j.width,j.height,j.frame,j.dpr,j.vision,j.scheme,j.device,j.orientation,j.posture,j.mock,j.browser,j.bars,j.edgeToEdge,j.zoom,j.mat,j.panel.open,j.panel.side,j.panel.docked,$.innerWidth,$.innerHeight,$.devicePixelRatio])}function i7(j){if(typeof j!=="object"||j===null)return null;let $=(K)=>Reflect.get(j,K),J=$("background"),X=$("scheme"),Z=$("host"),Q=[$("dark"),$("canBack"),$("canForward")];if(typeof J!=="string"||!/^rgb\(\d{1,3}, \d{1,3}, \d{1,3}\)$/.test(J))return null;if(X!=="light"&&X!=="dark"||typeof Z!=="string")return null;let[B,G,V]=Q;if(typeof B!=="boolean"||typeof G!=="boolean")return null;if(typeof V!=="boolean")return null;return{background:J,dark:B,scheme:X,host:Z,canBack:G,canForward:V}}function l7(j,$){try{let J=T("session")?.getItem(y7);if(!J)return null;let X=JSON.parse(J);if(typeof X!=="object"||X===null||O(X,p7))return null;let Z=Reflect.get(X,"key"),Q=Reflect.get(X,"css"),B=Reflect.get(X,"html"),G=i7(Reflect.get(X,"look"));if(Z!==d7(j,$)||typeof Q!=="string")return null;if(typeof B!=="string"||!G)return null;return{key:Z,css:Q,html:B,look:G}}catch{return null}}function n7(){for(let j of Array.from(document.querySelectorAll(`[data-devknobs="${j0}"]`)))j.remove();zj(j0)}function Uj(j){if(!m1(j)||!document.head)return;let $=Hj(j0);$.textContent=u7(g1(j)?null:j.mat),window.setTimeout(n7,c7);let J=l7(j,window);if(!J)return;let X=document.createElement("div");X.setAttribute("data-devknobs",j0),X.style.cssText=`position:fixed;inset:0;z-index:${Mj}`;let Z=X.attachShadow({mode:"open"});Z.innerHTML=J.html;for(let G of Array.from(Z.querySelectorAll("[style]")))G.style.cssText=G.getAttribute("style")??"";Pj(Z,J.css);let Q=()=>{if(F0(j0)!==$)return!0;if(!document.body)return!1;return document.body.append(X),!0};if(Q())return;let B=new MutationObserver(()=>{if(Q())B.disconnect()});B.observe(document.documentElement,{childList:!0})}var l0="devknobs:scroll",Fj=1,s7=1e4,o7=2000,a7=1e4,r7=20,Ij=["wheel","touchstart","keydown","mousedown"];function _j(j){if(typeof j!=="object"||j===null)return;let $=Reflect.get(j,"path"),J=Reflect.get(j,"x"),X=Reflect.get(j,"y");if(typeof $!=="string"||typeof J!=="number"||typeof X!=="number")return;return Number.isFinite(J)&&Number.isFinite(X)?{path:$,x:J,y:X}:void 0}function t7(j){if(!j)return null;let $;try{$=JSON.parse(j)}catch{return null}if(typeof $!=="object"||$===null||O($,Fj))return null;let J=Reflect.get($,"at");if(typeof J!=="number")return null;let X={at:J},Z=_j(Reflect.get($,"page")),Q=_j(Reflect.get($,"frame"));if(Z)X.page=Z;if(Q)X.frame=Q;return X}function e7(j,$){let J=$-j;return!(J>=0&&J<s7)}function j$(j,$,J,X){if(!j||e7(j.at,X))return{place:null,rest:null};let Z=j[$],Q=$==="page"?"frame":"page",B=j[Q],G=B?{at:j.at,[Q]:B}:null;if(!Z||Z.path!==J)return{place:null,rest:G};return{place:{x:Z.x,y:Z.y},rest:G}}function $$(j,$){let{target:J}=j,X=Math.abs($.x-J.x)<=1&&Math.abs($.y-J.y)<=1,Z=j.puts>=r7;if($.now-j.start>=a7||j.loadedAt!==null&&$.now-j.loadedAt>=o7)return X||Z?"done":"last";if(Z)return"done";if(X)return"wait";return $.maxX>=J.x-1&&$.maxY>=J.y-1?"put":"wait"}function J$(j,$,J=D){let X={target:$,start:J(),loadedAt:null,puts:0},Z=!1,Q=()=>{Z=!0;for(let G of Ij)j.removeEventListener(G,Q,!0)},B=()=>{if(Z)return;let G=J();if(X.loadedAt===null&&j.document.readyState==="complete")X.loadedAt=G;let V=j.document.documentElement,K=$$(X,{x:j.scrollX,y:j.scrollY,maxX:V?V.scrollWidth-V.clientWidth:0,maxY:V?V.scrollHeight-V.clientHeight:0,now:G});if(K==="put"||K==="last")X.puts++,j.scrollTo({left:$.x,top:$.y,behavior:"instant"});if(K==="last"||K==="done")Q();else j.requestAnimationFrame(B)};for(let G of Ij)j.addEventListener(G,Q,!0);B()}function Lj(){if(typeof window>"u")return;let j=null;try{let $=T("session"),J=$?.getItem(l0)??null;if(!$||J===null)return;let X=R()?"frame":"page",{place:Z,rest:Q}=j$(t7(J),X,window.location.pathname,D());if(Q)$.setItem(l0,JSON.stringify(n(Q,Fj)));else $.removeItem(l0);j=Z}catch{return}if(j)J$(window,j)}var X$={brand:"Not/A)Brand",version:"24.0.0.0"};function xj(j){return j.split(".")[0]??j}function L0(j,$=!1){let J=`Chrome/${xj("154.0.8037.98")}.0.0.0 ${$?"Mobile ":""}Safari/537.36`;return`Mozilla/5.0 (${j}) AppleWebKit/537.36 (KHTML, like Gecko) ${J}`}function $0(j,$){let J=[{brand:"Chromium",version:"154.0.8037.98"},X$,...j?[j]:[]];return{brands:J.map(({brand:X,version:Z})=>({brand:X,version:xj(Z)})),hints:{...$,fullVersionList:J,uaFullVersion:j?.version??"154.0.8037.98"}}}var n0={brand:"Google Chrome",version:"154.0.8037.98"},Aj={model:"",bitness:"64"},Nj={...Aj,platformVersion:"19.0.0",architecture:"x86"},Dj="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/27.0 Safari/605.1.15",Z$=[{id:"iphone-safari",label:"iPhone Safari",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 18_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/27.0 Mobile/15E148 Safari/604.1",platform:"iPhone",vendor:"Apple Computer, Inc.",mobile:!0,brands:[],uaPlatform:"iOS",maxTouchPoints:5},{id:"android-chrome",label:"Android Chrome",userAgent:L0("Linux; Android 10; K",!0),platform:"Linux armv81",vendor:"Google Inc.",mobile:!0,uaPlatform:"Android",maxTouchPoints:5,...$0(n0,{platformVersion:"16.0.0",model:"Pixel 10",architecture:"",bitness:""})},{id:"ipad-safari",label:"iPad Safari",userAgent:Dj,platform:"MacIntel",vendor:"Apple Computer, Inc.",mobile:!1,brands:[],uaPlatform:"iOS",maxTouchPoints:5},{id:"mac-safari",label:"Mac Safari",userAgent:Dj,platform:"MacIntel",vendor:"Apple Computer, Inc.",mobile:!1,brands:[],uaPlatform:"macOS",maxTouchPoints:0},{id:"mac-chrome",label:"Mac Chrome",userAgent:L0("Macintosh; Intel Mac OS X 10_15_7"),platform:"MacIntel",vendor:"Google Inc.",mobile:!1,uaPlatform:"macOS",maxTouchPoints:0,...$0(n0,{...Aj,platformVersion:"26.7.1",architecture:"arm"})},{id:"windows-chrome",label:"Windows Chrome",userAgent:L0("Windows NT 10.0; Win64; x64"),platform:"Win32",vendor:"Google Inc.",mobile:!1,uaPlatform:"Windows",maxTouchPoints:0,...$0(n0,Nj)},{id:"windows-edge",label:"Windows Edge",userAgent:`${L0("Windows NT 10.0; Win64; x64")} Edg/154.0.4258.53`,platform:"Win32",vendor:"Google Inc.",mobile:!1,uaPlatform:"Windows",maxTouchPoints:0,...$0({brand:"Microsoft Edge",version:"154.0.4258.53"},Nj)},{id:"linux-firefox",label:"Linux Firefox",userAgent:"Mozilla/5.0 (X11; Linux x86_64; rv:157.0) Gecko/20100101 Firefox/157.0",platform:"Linux x86_64",vendor:"",mobile:!1,brands:[],uaPlatform:"Linux",maxTouchPoints:0,appVersion:"5.0 (X11)"},{id:"googlebot",label:"Googlebot",userAgent:"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/154.0.8037.98 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)",platform:"Linux armv81",vendor:"Google Inc.",mobile:!0,uaPlatform:"Android",maxTouchPoints:1,...$0(null,{platformVersion:"6.0.1",model:"Nexus 5X",architecture:"",bitness:""})}];function Sj(j){return Z$.find(($)=>$.id===j)}function Q$(j){if(j.preset==="custom")return j.custom.trim();return Sj(j.preset)?.userAgent??""}function B$(j){return j.replace(/^Mozilla\//,"")}var Tj=["userAgent","appVersion","platform","vendor","maxTouchPoints","userAgentData"],qj=Symbol.for("devknobs.ua");function G$(j){return typeof j==="object"&&j!==null&&"originals"in j}function fj(j){let $=Reflect.get(j,qj);if(G$($))return $;let J={originals:null};return Reflect.set(j,qj,J),J}function wj(j){let $=Reflect.get(j,"Navigator");return typeof $==="function"?$.prototype:null}function h(j,$,J){Object.defineProperty(j,$,{configurable:!0,enumerable:!0,get:()=>J})}function s0(j,$,J){let X=j.originals?.get(J);if(X)Object.defineProperty($,J,X);else Reflect.deleteProperty($,J)}function Oj(j){return j.map(({brand:$,version:J})=>({brand:$,version:J}))}var V$={brands:[],mobile:!1,uaPlatform:""};function Rj(j,$){let J=Object.freeze(j.brands.map((V)=>Object.freeze({...V}))),X=()=>({brands:Oj(J),mobile:j.mobile,platform:j.uaPlatform}),Z=j.hints,Q=()=>({architecture:Z?.architecture??"",bitness:Z?.bitness??"",fullVersionList:Oj(Z?.fullVersionList??[]),model:Z?.model??"",platformVersion:Z?.platformVersion??"",uaFullVersion:Z?.uaFullVersion??""}),B=Reflect.get($,"NavigatorUAData"),G=typeof B==="function"?B.prototype:Object.prototype;return Object.create(G,{brands:{enumerable:!0,get:()=>J},mobile:{enumerable:!0,get:()=>j.mobile},platform:{enumerable:!0,get:()=>j.uaPlatform},getHighEntropyValues:{value:(V)=>{try{let K=X(),Y=Q();for(let P of Array.from(V,String))if(Object.hasOwn(Y,P))K[P]=Y[P];return Promise.resolve(K)}catch(K){return Promise.reject(K)}}},toJSON:{value:X}})}function Ej(j,$=globalThis){let J=wj($),X=j.preset==="custom"?void 0:Sj(j.preset),Z=Q$(j);if(!J||Z===""){K$($);return}let Q=fj($);if(Q.originals??=new Map(Tj.map((B)=>[B,Object.getOwnPropertyDescriptor(J,B)])),h(J,"userAgent",Z),h(J,"appVersion",X?.appVersion??B$(Z)),!X){for(let B of["platform","vendor","maxTouchPoints"])s0(Q,J,B);if(Q.originals.get("userAgentData"))h(J,"userAgentData",Rj(V$,$));else s0(Q,J,"userAgentData");return}if(h(J,"platform",X.platform),h(J,"vendor",X.vendor),h(J,"maxTouchPoints",X.maxTouchPoints),X.brands.length>0)h(J,"userAgentData",Rj(X,$));else Reflect.deleteProperty(J,"userAgentData")}function K$(j=globalThis){let $=fj(j),J=wj(j);if(!$.originals)return;if(J)for(let X of Tj)s0($,J,X);$.originals=null}function j1(){if(Object.hasOwn(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"))return;Promise.resolve().then(() => lj())}var I$=Symbol.for("devknobs.owner");function nj(j){return typeof Reflect.get(j,I$)==="function"}function _$(j,$){for(let J of["name","length",...Object.keys($)]){let X=Object.getOwnPropertyDescriptor($,J);if(X)Object.defineProperty(j,J,X)}Object.defineProperty(j,"toString",{configurable:!0,writable:!0,value:()=>Function.prototype.toString.call($)})}function A(j,$,J,X){let Z=Reflect.get($,J);if(typeof Z!=="function")return;let Q=Object.hasOwn($,J),B=X(Z);if(_$(B,Z),Reflect.set($,J,B))j.push({target:$,key:J,original:Z,value:B,own:Q})}function sj(j){for(let{target:$,key:J,original:X,value:Z,own:Q}of j.reverse()){if(Reflect.get($,J)!==Z)continue;if(Q)Reflect.set($,J,X);else Reflect.deleteProperty($,J)}j.length=0}var $1=300,y=65536,J1=200,oj=4096;var F$=/^text\/|[/+](json|xml|javascript|ecmascript|x-www-form-urlencoded|graphql|yaml)\b|\/svg/i;function X1(j){return F$.test(j)}var X0=/�+$/;function b(j,$,J=y){if(j.length<=J){let Q=new TextEncoder().encode(j);if(Q.length<=J)return{kind:"text",text:j,size:Q.length,truncated:!1,type:$};return{kind:"text",text:new TextDecoder().decode(Q.subarray(0,J)).replace(X0,""),size:Q.length,truncated:!0,type:$}}let X=new TextEncoder().encode(j.slice(0,J)),Z=new TextDecoder().decode(X.subarray(0,J));return{kind:"text",text:X.length>J?Z.replace(X0,""):Z,size:null,truncated:!0,type:$}}function J0(j,$,J){return{kind:j,text:"",size:$,truncated:!1,type:J}}function L$(j,$){let J=[],X=0;for(let[Z,Q]of j){let B=typeof Q==="string"?`${Z}=${Q}`:`${Z}=(file ${Q.name}, ${Q.type||"no type"}, ${Q.size} bytes)`;if(J.push(B),X+=B.length+1,X>$)break}return J.join(`
|
|
6
|
-
`)}function p(j,$){return typeof j==="function"&&$ instanceof j}function D0(j,$,J=y){if(j===void 0||j===null)return null;if(typeof j==="string")return b(j,$||"text/plain;charset=UTF-8",J);if(p(globalThis.URLSearchParams,j))return b(String(j),$||"application/x-www-form-urlencoded;charset=UTF-8",J);if(p(globalThis.FormData,j))return{...b(
|
|
7
|
-
`).map((X)=>X.trim()).filter((X)=>X!=="");if(J[0]!==void 0&&!
|
|
8
|
-
`)}var D$=new Set(["open","error"]);function tj(j,$){let J=Reflect.get(globalThis,"EventSource");if(typeof J!=="function")return;let X=new WeakMap,Z=EventTarget.prototype.addEventListener;function Q(G,V){let K=k(G.url),Y=()=>$.start("eventsource",{method:"GET",url:K,headers:[],body:null,initiator:V}),P=(C,z)=>{Z.call(G,C,(M)=>{try{z(M)}catch{}})},H={id:Y(),open:!1,types:new Set,listen(C){if(H.types.has(C)||D$.has(C))return;H.types.add(C),P(C,(z)=>{if(H.id===null)return;let M=Reflect.get(z,"data"),N=Reflect.get(z,"lastEventId");$.message(H.id,{type:z.type,data:String(M??""),id:typeof N==="string"?N:""})})}};X.set(G,H),H.listen("message"),P("open",()=>{if(H.id===null){if(!$.active())return;H.id=Y()}H.open=!0,$.responded(H.id,{status:200,state:"ok",contentType:"text/event-stream"})}),P("error",()=>{if(H.id===null)return;$.ended(H.id,H.open?{}:{state:"failed",error:"EventSource failed to connect"}),H.id=null,H.open=!1})}A(j,globalThis,"EventSource",(G)=>{function V(...K){if(!new.target)return Reflect.apply(G,this,K);let Y=Reflect.construct(G,K,new.target);try{if($.active())Q(Y,l(Error().stack,1))}catch{}return Y}return V.prototype=G.prototype,V});let B=Reflect.get(J,"prototype");if(typeof B!=="object"||B===null)return;A(j,B,"addEventListener",()=>function(...G){try{if(typeof G[0]==="string")X.get(this)?.listen(G[0])}catch{}return Reflect.apply(Reflect.get(Object.getPrototypeOf(B),"addEventListener"),this,G)}),A(j,B,"close",(G)=>function(...V){try{let K=X.get(this);if(K&&K.id!==null)$.ended(K.id,K.open?{}:{state:"aborted"}),K.id=null}catch{}return G.apply(this,V)})}var ej=2,Z0=Symbol.for("devknobs.requests"),j3=Symbol.for("devknobs.quiet");function q$(j){return typeof j==="object"&&j!==null&&Reflect.get(j,"version")===2}function q0(j=globalThis){try{let $=Reflect.get(j,Z0);return q$($)?$:null}catch{return null}}function B1(j){if(j)Reflect.set(globalThis,Z0,j);else Reflect.deleteProperty(globalThis,Z0)}function $3(){let j=Reflect.get(globalThis,Z0);if(typeof j!=="object"||j===null)return;let $=Reflect.get(j,"uninstall");try{if(typeof $==="function")$.call(j)}catch{}Reflect.deleteProperty(globalThis,Z0)}function O$(j){return typeof j==="object"&&j!==null&&"url"in j&&"method"in j&&"headers"in j&&"clone"in j}function Q0(j,$){return typeof j==="object"&&j!==null?Reflect.get(j,$):void 0}function R$(j){try{return typeof j==="object"&&j!==null&&Reflect.get(j,j3)===!0}catch{return!1}}function J3(j){let $=[];if(typeof j!=="object"||j===null)return $;if(p(globalThis.Headers,j))j.forEach((J,X)=>$.push([X,J]));else if(Array.isArray(j)){for(let J of j)if(Array.isArray(J)&&J.length>1)$.push([String(J[0]),String(J[1])])}else for(let[J,X]of Object.entries(j))$.push([J,String(X)]);return $}function X3(j){return j instanceof Error?`${j.name}: ${j.message}`:String(j)}function Z3(j){return typeof j==="object"&&j!==null&&Reflect.get(j,"aborted")===!0}function x$(j,$,J){if($==="GET"||$==="HEAD")return null;if(j.body===null||j.bodyUsed)return null;return c(X1(J)?"stream":"binary",null,J)}function A$(j,$){let J=O$(j)?j:null,X=String(Q0($,"method")??J?.method??"GET").toUpperCase(),Z=Q0($,"headers"),Q=J3(Z===void 0?J?.headers:Z),B=m(Q,"content-type"),G=Q0($,"body"),V=J&&(G===void 0||G===null)?x$(J,X,B):null,K=D0(G,B)??V,Y=String(Q0($,"referrerPolicy")??J?.referrerPolicy??"");return{request:{method:X,url:k(J?J.url:String(j)),headers:Q,body:K,referrerPolicy:Y},signal:Q0($,"signal")??J?.signal}}function S$(j){let $=Number.parseInt(m(j,"content-length"),10);return Number.isFinite($)?$:null}function T$(j){return/^text\/event-stream\b/i.test(j.trim())}function f$(j,$,J,X,Z){let Q=J3(J.headers),B=m(Q,"content-type"),G=J.type==="opaque"||J.type==="opaqueredirect";if(j.responded($,{status:J.status,statusText:J.statusText,state:J.ok||G?"ok":"failed",responseHeaders:Q,contentType:B,redirected:J.redirected,finalUrl:J.url||null}),G)j.set($,{responseBody:c("opaque",null,"")});else if(J.body===null)j.ended($,{});else if(T$(B))j.set($,{responseBody:c("stream",null,B)});else if(!X1(B))j.set($,{responseBody:c("binary",S$(Q),B)});else aj(J.clone(),B,void 0,Z).then(({record:V,complete:K})=>{let Y=V.size===0?null:V;if(K)j.ended($,{responseBody:Y});else j.set($,{responseBody:Y})},(V)=>{j.ended($,{state:Z3(X)?"aborted":"failed",error:X3(V)})})}function Q3(j,$,J=Z1){return function(){let Z=arguments;if(!$.active()||R$(Z[1]))return Reflect.apply(j,this,Z);let Q=null,B;try{let K=A$(Z[0],Z[1]);B=K.signal,Q=$.start("fetch",{...K.request,initiator:l(Error().stack,1)})}catch{}let G=Reflect.apply(j,this,Z);if(Q===null)return G;let V=Q;return G.then((K)=>{try{f$($,V,K,B,J)}catch{}return K},(K)=>{try{$.ended(V,{state:Z3(B)?"aborted":"failed",error:X3(K)})}catch{}throw K})}}var G1=250,B0=5;function _(j,$){let J=Reflect.get(j,$);return typeof J==="number"&&Number.isFinite(J)?J:0}function u(j,$){let J=Reflect.get(j,$);return typeof J==="string"?J:""}function B3(j){return j.split("#",1)[0]??j}function w$(j){try{return new URL(j).origin}catch{return""}}function G3(j,$){let J=_(j,"transferSize"),X=_(j,"encodedBodySize"),Z=_(j,"decodedBodySize"),Q=J+X+Z===0&&w$(j.name)!==$;return{transfer:J,encoded:X,decoded:Z,hidden:Q}}function V3(j){return{startTime:j.startTime,workerStart:_(j,"workerStart"),redirectStart:_(j,"redirectStart"),redirectEnd:_(j,"redirectEnd"),fetchStart:_(j,"fetchStart"),domainLookupStart:_(j,"domainLookupStart"),domainLookupEnd:_(j,"domainLookupEnd"),connectStart:_(j,"connectStart"),secureConnectionStart:_(j,"secureConnectionStart"),connectEnd:_(j,"connectEnd"),requestStart:_(j,"requestStart"),responseStart:_(j,"responseStart"),responseEnd:_(j,"responseEnd")||j.startTime+j.duration}}function K3(j){return _(j,"responseStatus")||null}function W3(j,$,J,X,Z){let Q=Q1($,j.entryType==="navigation"?"navigation":"resource",J,X,j.startTime),B=K3(j),G=_(j,"responseEnd")||j.startTime+j.duration,V=_(j,"responseStart"),K=Math.max(0,G-j.startTime);return{...Q,url:j.name,state:B!==null&&B>=400?"failed":"ok",status:B,contentType:u(j,"contentType"),sizes:G3(j,Z),timing:{...Q.timing,response:V>0?Math.max(0,V-j.startTime):null,end:Q.timing.start+K,duration:K},phases:V3(j),initiatorType:u(j,"initiatorType")||j.entryType,protocol:u(j,"nextHopProtocol")}}var E$={fetch:"fetch",xmlhttprequest:"xhr",other:"eventsource"};function Y3(j,$,J){let X=E$[u($,"initiatorType")];if(!X)return null;let Z=B3($.name),Q=_($,"responseEnd")||$.startTime+$.duration,B=null;for(let G of j){if(G.kind!==X||G.source!==J||G.sizes!==null)continue;let V=$.startTime-G.timing.at;if(!(X==="eventsource"&&V<=B0&&G.timing.at<=Q+B0)&&(V<-B0||V>G1)||B3(G.url)!==Z)continue;if(!B||Math.abs(V)<Math.abs($.startTime-B.timing.at))B=G}return B}function C3(j,$,J){let X=_($,"responseEnd")||$.startTime+$.duration,Z=Math.max(0,X-j.timing.at);return{sizes:G3($,J),phases:V3($),protocol:u($,"nextHopProtocol"),initiatorType:u($,"initiatorType"),status:j.status||K3($),contentType:j.contentType||u($,"contentType"),timing:{...j.timing,end:j.timing.start+Z,duration:Z}}}var b$=50;function k$(j){let $=setTimeout(j,b$);return()=>clearTimeout($)}function P3(j){let $=j.schedule??k$,J=[],X=new Map,Z=new Set,Q=new Set,B=null,G=!1,V=Number.NEGATIVE_INFINITY,K=0;function Y(){if(B?.(),B=null,Q.size===0&&!G)return;let C=[];for(let z of Q){let M=X.get(z);if(M)C.push(M)}Q.clear(),G=!1;for(let z of Array.from(Z))z(C)}function P(C){if(Z.size===0)return;if(C===null)G=!0;else Q.add(C);B??=$(Y)}function H(C){if(C.timing.start<V)return;let z=X.get(C.id);if(X.set(C.id,C),z)J[J.lastIndexOf(z)]=C;else{let M=J.length;while(M>0&&(J[M-1]?.timing.start??0)>C.timing.start)M--;if(J.splice(M,0,C),J.length>$1){let N=J.shift();if(N)X.delete(N.id);if(N===C)return}}P(C.id)}return{entries:()=>J,get:(C)=>X.get(C),nextId:()=>`${j.seed}-${++K}`,put:H,update(C,z){let M=X.get(C);if(M)H({...M,...z,id:C})},clear(){J=[],X.clear(),Q.clear(),V=j.now(),P(null)},subscribe(C){return Z.add(C),()=>{Z.delete(C)}},flush:Y,close(){B?.(),B=null,J=[],X.clear(),Q.clear(),Z.clear()}}}var m$=4*y;function g$(j){let $=[];for(let J of j.split(/\r?\n/)){let X=J.indexOf(":");if(X>0)$.push([J.slice(0,X).trim(),J.slice(X+1).trim()])}return $}function H3(j,$){let J=g$(j.getAllResponseHeaders()??""),X=j.responseURL||null;return{status:j.status,statusText:j.statusText,responseHeaders:J,contentType:m(J,"content-type"),finalUrl:X,redirected:X!==null&&X!==$.split("#",1)[0]}}function v$(j){if(typeof j!=="object"||j===null)return null;let $=Reflect.get(j,"byteLength")??Reflect.get(j,"size");return typeof $==="number"?$:null}function h$(j,$,J){let X=j.responseType,Z;if(X===""||X==="text")Z=b(j.responseText,$);else if(X!=="json")Z=c("binary",v$(j.response)??J,$||X);else if(J!==null&&J>m$)Z={kind:"text",text:"",size:J,truncated:!0,type:$};else Z=b(JSON.stringify(j.response)??"",$);return Z.size===0?null:Z}var z3=["error","abort","timeout"];function y$(j,$,J,X){let Z=null,Q=null,B=!1,G=null,V=()=>{j.removeEventListener("readystatechange",Y,!0),j.removeEventListener("progress",P,!0);for(let z of z3)j.removeEventListener(z,H,!0);j.removeEventListener("loadend",C,!0)};function K(){B=!0,V();try{let z=H3(j,J),M=j.status,N=Z??(M===0||M>=400?"failed":"ok"),V0=Number.parseInt(m(z.responseHeaders??[],"content-length"),10),K0=G??(Number.isFinite(V0)?V0:null),O0=Z?null:h$(j,z.contentType??"",K0);X.ended($,{...z,status:M===0?null:M,state:N,error:Q,responseBody:O0})}catch{X.ended($,{state:Z??"failed",error:Q})}}function Y(){try{if(j.readyState===2)X.responded($,H3(j,J))}catch{}if(j.readyState===4&&j.status!==0)K()}function P(z){let M=Reflect.get(z,"loaded");if(typeof M==="number")G=M}function H(z){Z=z.type==="abort"?"aborted":"failed",Q=z.type==="abort"?null:z.type}function C(z){if(j.readyState!==4)return;P(z),K()}j.addEventListener("readystatechange",Y,!0),j.addEventListener("progress",P,!0);for(let z of z3)j.addEventListener(z,H,!0);return j.addEventListener("loadend",C,!0),()=>{if(B)return;B=!0,V(),X.ended($,{state:"aborted"})}}function M3(j,$){if(typeof XMLHttpRequest!=="function")return;let J=new WeakMap,X=XMLHttpRequest.prototype;A(j,X,"open",(Z)=>function(...Q){let B=Z.apply(this,Q);try{if(J.get(this)?.drop?.(),J.delete(this),$.active()){let G=String(Q[0]).toUpperCase();J.set(this,{method:G,url:k(String(Q[1])),headers:[],drop:null})}}catch{}return B}),A(j,X,"setRequestHeader",(Z)=>function(...Q){let B=Z.apply(this,Q);return J.get(this)?.headers.push([String(Q[0]),String(Q[1])]),B}),A(j,X,"send",(Z)=>function(...Q){let B=J.get(this);if(!B||!$.active())return Z.apply(this,Q);let G=null;try{let{method:V,url:K,headers:Y}=B,P=D0(Q[0],m(Y,"content-type")),H=l(Error().stack,1);G=$.start("xhr",{method:V,url:K,headers:[...Y],body:P,initiator:H}),B.drop=y$(this,G,K,$)}catch{}try{return Z.apply(this,Q)}catch(V){if(B.drop?.(),B.drop=null,G!==null)$.set(G,{state:"failed",error:String(V)});throw V}})}var p$=100,G0=typeof performance>"u"?null:performance,U3=G0?G0.now.bind(G0):D;function c$(){let j=G0?G0.timeOrigin??D()-U3():0;return{now:U3,origin:j}}function u$(j){return k(j).split("#",1)[0]??j}function d$(j){return{...j,source:"frame",requestHeaders:j.requestHeaders.map(([$,J])=>[$,J]),responseHeaders:j.responseHeaders.map(([$,J])=>[$,J]),requestBody:j.requestBody&&{...j.requestBody},responseBody:j.responseBody&&{...j.responseBody},sizes:j.sizes&&{...j.sizes},timing:{...j.timing},phases:j.phases&&{...j.phases},messages:j.messages.map(($)=>({...$}))}}function i$(j){let{source:$,clock:J,origin:X}=j,Z=`${$.charAt(0)}${Math.floor(J.origin).toString(36)}${Math.floor(Math.random()*46656).toString(36)}`,Q=P3({seed:Z,now:()=>J.origin+J.now(),schedule:j.schedule}),B=[],G=!0,V=0,K=new Set,Y=[],P=rj(Q,J,$,()=>G&&V===0);function H(I,U){let S=u$(I);if(S.startsWith("data:"))return;if(!U)K.add(S);else Y=[...Y.slice(1-p$),{url:S,at:J.now()}]}function C(I){if(K.has(I.name))return!0;let U=Y.findIndex((S)=>{let W1=I.startTime-S.at;return S.url===I.name&&W1>=-B0&&W1<=G1});if(U<0)return!1;return Y.splice(U,1),!0}function z(I){try{if(C(I))return;let U=Y3(Q.entries(),I,$);if(U)Q.update(U.id,C3(U,I,X));else Q.put(W3(I,Q.nextId(),$,J,X))}catch{}}function M(){if(typeof PerformanceObserver!=="function")return()=>{};let I=new PerformanceObserver((U)=>{if(G)for(let S of U.getEntries())z(S)});for(let U of["navigation","resource"])try{I.observe({type:U,buffered:!0})}catch{}return()=>I.disconnect()}let N=null;function V0(I){let U=j.above?.()??null;if(U)U.adopt(U===N?I:Q.entries());N=U}function K0(I){if(Reflect.get(I,"persisted")===!0)return;for(let U of[...Q.entries()])if(U.state==="pending")Q.update(U.id,{state:"aborted"});Q.flush()}A(B,globalThis,"fetch",(I)=>Q3(I,P,j.readFor)),M3(B,P),tj(B,P);let O0=M();if(j.above)Q.subscribe(V0),globalThis.addEventListener?.("pagehide",K0);let K1={version:ej,store:Q,quietly(I,U){H(I,!0),V++;try{return U()}finally{V--}},hush:H,adopt(I){for(let U of I)Q.put(d$(U))},uninstall(){if(G=!1,sj(B),O0(),globalThis.removeEventListener?.("pagehide",K0),Q.close(),q0()===K1)B1(null)}};return K1}function l$(){try{return window.parent===window?null:q0(window.parent)}catch{return null}}function I3(){if(q0())return;$3();let j=typeof window<"u"&&R(),$=typeof location>"u"?"":location.origin;B1(i$({source:j?"frame":"top",clock:c$(),origin:$,above:j?l$:void 0}))}var n$="devknobs:storage-presets",s$=1,_3=Symbol.for("devknobs.presets");function F3(j){return typeof j==="object"&&j!==null&&!Array.isArray(j)?Object.fromEntries(Object.entries(j)):{}}function V1(j){return Array.isArray(j)?j.map(F3):[]}function o$(){try{let j=JSON.parse(T("local")?.getItem(n$)??"null");return O(j,s$)?[]:V1(F3(j).presets)}catch{return[]}}function a$(j){let $=`${String(j.name)}=${String(j.value)}`;if($+=`; path=${typeof j.path==="string"?j.path:"/"}`,typeof j.domain==="string")$+=`; domain=${j.domain}`;if(typeof j.maxAge==="number")$+=`; max-age=${j.maxAge}`;if(typeof j.expires==="string")$+=`; expires=${j.expires}`;if(typeof j.sameSite==="string")$+=`; samesite=${j.sameSite}`;if(j.secure===!0)$+="; secure";return $}function r$(j){let $=[];for(let J=0;J<j.length;J++){let X=j.key(J);if(X!==null&&X!=="devknobs"&&!X.startsWith("devknobs:"))$.push(X)}for(let J of $)j.removeItem(J)}function t$(j,$,J){let X=[];for(let Z of["local","session"])try{let Q=Z==="local"?j.localStorage:j.sessionStorage;if(J)r$(Q);for(let B of V1($[Z]))try{if(typeof B.name==="string"&&typeof B.value==="string")Q.setItem(B.name,B.value)}catch{X.push(String(B.name))}}catch{X.push(`${Z}Storage`)}for(let Z of V1($.cookies))try{if(typeof Z.name==="string"&&typeof Z.value==="string")j.document.cookie=a$(Z)}catch{X.push(String(Z.name))}return X}function L3(){if(typeof window>"u")return 0;let j=Reflect.get(window,_3);if(typeof j==="number")return j;let $=0;try{if(!R())for(let J of o$()){if(J.onLoad!==!0)continue;t$(window,J,J.clearFirst===!0),$++}}catch{}return Reflect.set(window,_3,$),$}L3();if(nj(window))j1();else{let j=E1(),$=R(),J=$&&b1(j.scheme)?"system":j.scheme,{motion:X,contrast:Z,transparency:Q}=j;if(Zj({scheme:J,motion:X,contrast:Z,transparency:Q,touch:$&&M1(j.device)}),H1(j.clock),Ej(j.ua),I3(),j1(),!$)Uj(j);Lj()}})();
|
|
4
|
+
html::after{content:"";position:fixed;inset:0;z-index:${Uj-1};background:${d0(J.srgb)};pointer-events:none}
|
|
5
|
+
@media (color-gamut:p3){html::after{background:${d0(J.p3)}}}`}function l7(j,$){return JSON.stringify([j.width,j.height,j.frame,j.dpr,j.vision,j.scheme,j.device,j.orientation,j.posture,j.mock,j.browser,j.bars,j.edgeToEdge,j.zoom,j.mat,j.panel.open,j.panel.side,j.panel.docked,$.innerWidth,$.innerHeight,$.devicePixelRatio])}var Mj=/^rgb\(\d{1,3}, \d{1,3}, \d{1,3}\)$/;function n7(j){if(typeof j!=="object"||j===null)return null;let $=(C)=>Reflect.get(j,C),J=$("background"),X=$("scheme"),Z=$("host"),Q=[$("dark"),$("canBack"),$("canForward")];if(typeof J!=="string"||!Mj.test(J))return null;if(X!=="light"&&X!=="dark"||typeof Z!=="string")return null;let[B,G,V]=Q;if(typeof B!=="boolean"||typeof G!=="boolean")return null;if(typeof V!=="boolean")return null;let K=(C)=>{let P=$(C);return typeof P==="string"&&Mj.test(P)?P:J},Y=K("top"),H=K("bottom");return{background:J,top:Y,bottom:H,footer:$("footer")===!0,under:[],dark:B,scheme:X,host:Z,canBack:G,canForward:V}}function s7(j,$){try{let J=T("session")?.getItem(c7);if(!J)return null;let X=JSON.parse(J);if(typeof X!=="object"||X===null||O(X,u7))return null;let Z=Reflect.get(X,"key"),Q=Reflect.get(X,"css"),B=Reflect.get(X,"html"),G=n7(Reflect.get(X,"look"));if(Z!==l7(j,$)||typeof Q!=="string")return null;if(typeof B!=="string"||!G)return null;return{key:Z,css:Q,html:B,look:G}}catch{return null}}function o7(){for(let j of Array.from(document.querySelectorAll(`[data-devknobs="${j0}"]`)))j.remove();zj(j0)}function Ij(j){if(!m1(j)||!document.head)return;let $=Hj(j0);$.textContent=i7(g1(j)?null:j.mat),window.setTimeout(o7,d7);let J=s7(j,window);if(!J)return;let X=document.createElement("div");X.setAttribute("data-devknobs",j0),X.style.cssText=`position:fixed;inset:0;z-index:${Uj}`;let Z=X.attachShadow({mode:"open"});Z.innerHTML=J.html;for(let G of Array.from(Z.querySelectorAll("[style]")))G.style.cssText=G.getAttribute("style")??"";Cj(Z,J.css);let Q=()=>{if(F0(j0)!==$)return!0;if(!document.body)return!1;return document.body.append(X),!0};if(Q())return;let B=new MutationObserver(()=>{if(Q())B.disconnect()});B.observe(document.documentElement,{childList:!0})}var l0="devknobs:scroll",Lj=1,a7=1e4,r7=2000,t7=1e4,e7=20,_j=["wheel","touchstart","keydown","mousedown"];function Fj(j){if(typeof j!=="object"||j===null)return;let $=Reflect.get(j,"path"),J=Reflect.get(j,"x"),X=Reflect.get(j,"y");if(typeof $!=="string"||typeof J!=="number"||typeof X!=="number")return;return Number.isFinite(J)&&Number.isFinite(X)?{path:$,x:J,y:X}:void 0}function j$(j){if(!j)return null;let $;try{$=JSON.parse(j)}catch{return null}if(typeof $!=="object"||$===null||O($,Lj))return null;let J=Reflect.get($,"at");if(typeof J!=="number")return null;let X={at:J},Z=Fj(Reflect.get($,"page")),Q=Fj(Reflect.get($,"frame"));if(Z)X.page=Z;if(Q)X.frame=Q;return X}function $$(j,$){let J=$-j;return!(J>=0&&J<a7)}function J$(j,$,J,X){if(!j||$$(j.at,X))return{place:null,rest:null};let Z=j[$],Q=$==="page"?"frame":"page",B=j[Q],G=B?{at:j.at,[Q]:B}:null;if(!Z||Z.path!==J)return{place:null,rest:G};return{place:{x:Z.x,y:Z.y},rest:G}}function X$(j,$){let{target:J}=j,X=Math.abs($.x-J.x)<=1&&Math.abs($.y-J.y)<=1,Z=j.puts>=e7;if($.now-j.start>=t7||j.loadedAt!==null&&$.now-j.loadedAt>=r7)return X||Z?"done":"last";if(Z)return"done";if(X)return"wait";return $.maxX>=J.x-1&&$.maxY>=J.y-1?"put":"wait"}function Z$(j,$,J=D){let X={target:$,start:J(),loadedAt:null,puts:0},Z=!1,Q=()=>{Z=!0;for(let G of _j)j.removeEventListener(G,Q,!0)},B=()=>{if(Z)return;let G=J();if(X.loadedAt===null&&j.document.readyState==="complete")X.loadedAt=G;let V=j.document.documentElement,K=X$(X,{x:j.scrollX,y:j.scrollY,maxX:V?V.scrollWidth-V.clientWidth:0,maxY:V?V.scrollHeight-V.clientHeight:0,now:G});if(K==="put"||K==="last")X.puts++,j.scrollTo({left:$.x,top:$.y,behavior:"instant"});if(K==="last"||K==="done")Q();else j.requestAnimationFrame(B)};for(let G of _j)j.addEventListener(G,Q,!0);B()}function Nj(){if(typeof window>"u")return;let j=null;try{let $=T("session"),J=$?.getItem(l0)??null;if(!$||J===null)return;let X=R()?"frame":"page",{place:Z,rest:Q}=J$(j$(J),X,window.location.pathname,D());if(Q)$.setItem(l0,JSON.stringify(n(Q,Lj)));else $.removeItem(l0);j=Z}catch{return}if(j)Z$(window,j)}var Q$={brand:"Not/A)Brand",version:"24.0.0.0"};function Aj(j){return j.split(".")[0]??j}function L0(j,$=!1){let J=`Chrome/${Aj("154.0.8037.98")}.0.0.0 ${$?"Mobile ":""}Safari/537.36`;return`Mozilla/5.0 (${j}) AppleWebKit/537.36 (KHTML, like Gecko) ${J}`}function $0(j,$){let J=[{brand:"Chromium",version:"154.0.8037.98"},Q$,...j?[j]:[]];return{brands:J.map(({brand:X,version:Z})=>({brand:X,version:Aj(Z)})),hints:{...$,fullVersionList:J,uaFullVersion:j?.version??"154.0.8037.98"}}}var n0={brand:"Google Chrome",version:"154.0.8037.98"},Sj={model:"",bitness:"64"},Dj={...Sj,platformVersion:"19.0.0",architecture:"x86"},qj="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/27.0 Safari/605.1.15",B$=[{id:"iphone-safari",label:"iPhone Safari",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 18_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/27.0 Mobile/15E148 Safari/604.1",platform:"iPhone",vendor:"Apple Computer, Inc.",mobile:!0,brands:[],uaPlatform:"iOS",maxTouchPoints:5},{id:"android-chrome",label:"Android Chrome",userAgent:L0("Linux; Android 10; K",!0),platform:"Linux armv81",vendor:"Google Inc.",mobile:!0,uaPlatform:"Android",maxTouchPoints:5,...$0(n0,{platformVersion:"16.0.0",model:"Pixel 10",architecture:"",bitness:""})},{id:"ipad-safari",label:"iPad Safari",userAgent:qj,platform:"MacIntel",vendor:"Apple Computer, Inc.",mobile:!1,brands:[],uaPlatform:"iOS",maxTouchPoints:5},{id:"mac-safari",label:"Mac Safari",userAgent:qj,platform:"MacIntel",vendor:"Apple Computer, Inc.",mobile:!1,brands:[],uaPlatform:"macOS",maxTouchPoints:0},{id:"mac-chrome",label:"Mac Chrome",userAgent:L0("Macintosh; Intel Mac OS X 10_15_7"),platform:"MacIntel",vendor:"Google Inc.",mobile:!1,uaPlatform:"macOS",maxTouchPoints:0,...$0(n0,{...Sj,platformVersion:"26.7.1",architecture:"arm"})},{id:"windows-chrome",label:"Windows Chrome",userAgent:L0("Windows NT 10.0; Win64; x64"),platform:"Win32",vendor:"Google Inc.",mobile:!1,uaPlatform:"Windows",maxTouchPoints:0,...$0(n0,Dj)},{id:"windows-edge",label:"Windows Edge",userAgent:`${L0("Windows NT 10.0; Win64; x64")} Edg/154.0.4258.53`,platform:"Win32",vendor:"Google Inc.",mobile:!1,uaPlatform:"Windows",maxTouchPoints:0,...$0({brand:"Microsoft Edge",version:"154.0.4258.53"},Dj)},{id:"linux-firefox",label:"Linux Firefox",userAgent:"Mozilla/5.0 (X11; Linux x86_64; rv:157.0) Gecko/20100101 Firefox/157.0",platform:"Linux x86_64",vendor:"",mobile:!1,brands:[],uaPlatform:"Linux",maxTouchPoints:0,appVersion:"5.0 (X11)"},{id:"googlebot",label:"Googlebot",userAgent:"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/154.0.8037.98 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)",platform:"Linux armv81",vendor:"Google Inc.",mobile:!0,uaPlatform:"Android",maxTouchPoints:1,...$0(null,{platformVersion:"6.0.1",model:"Nexus 5X",architecture:"",bitness:""})}];function Tj(j){return B$.find(($)=>$.id===j)}function G$(j){if(j.preset==="custom")return j.custom.trim();return Tj(j.preset)?.userAgent??""}function V$(j){return j.replace(/^Mozilla\//,"")}var fj=["userAgent","appVersion","platform","vendor","maxTouchPoints","userAgentData"],Oj=Symbol.for("devknobs.ua");function K$(j){return typeof j==="object"&&j!==null&&"originals"in j}function wj(j){let $=Reflect.get(j,Oj);if(K$($))return $;let J={originals:null};return Reflect.set(j,Oj,J),J}function Ej(j){let $=Reflect.get(j,"Navigator");return typeof $==="function"?$.prototype:null}function h(j,$,J){Object.defineProperty(j,$,{configurable:!0,enumerable:!0,get:()=>J})}function s0(j,$,J){let X=j.originals?.get(J);if(X)Object.defineProperty($,J,X);else Reflect.deleteProperty($,J)}function Rj(j){return j.map(({brand:$,version:J})=>({brand:$,version:J}))}var W$={brands:[],mobile:!1,uaPlatform:""};function xj(j,$){let J=Object.freeze(j.brands.map((V)=>Object.freeze({...V}))),X=()=>({brands:Rj(J),mobile:j.mobile,platform:j.uaPlatform}),Z=j.hints,Q=()=>({architecture:Z?.architecture??"",bitness:Z?.bitness??"",fullVersionList:Rj(Z?.fullVersionList??[]),model:Z?.model??"",platformVersion:Z?.platformVersion??"",uaFullVersion:Z?.uaFullVersion??""}),B=Reflect.get($,"NavigatorUAData"),G=typeof B==="function"?B.prototype:Object.prototype;return Object.create(G,{brands:{enumerable:!0,get:()=>J},mobile:{enumerable:!0,get:()=>j.mobile},platform:{enumerable:!0,get:()=>j.uaPlatform},getHighEntropyValues:{value:(V)=>{try{let K=X(),Y=Q();for(let H of Array.from(V,String))if(Object.hasOwn(Y,H))K[H]=Y[H];return Promise.resolve(K)}catch(K){return Promise.reject(K)}}},toJSON:{value:X}})}function bj(j,$=globalThis){let J=Ej($),X=j.preset==="custom"?void 0:Tj(j.preset),Z=G$(j);if(!J||Z===""){Y$($);return}let Q=wj($);if(Q.originals??=new Map(fj.map((B)=>[B,Object.getOwnPropertyDescriptor(J,B)])),h(J,"userAgent",Z),h(J,"appVersion",X?.appVersion??V$(Z)),!X){for(let B of["platform","vendor","maxTouchPoints"])s0(Q,J,B);if(Q.originals.get("userAgentData"))h(J,"userAgentData",xj(W$,$));else s0(Q,J,"userAgentData");return}if(h(J,"platform",X.platform),h(J,"vendor",X.vendor),h(J,"maxTouchPoints",X.maxTouchPoints),X.brands.length>0)h(J,"userAgentData",xj(X,$));else Reflect.deleteProperty(J,"userAgentData")}function Y$(j=globalThis){let $=wj(j),J=Ej(j);if(!$.originals)return;if(J)for(let X of fj)s0($,J,X);$.originals=null}function j1(){if(Object.hasOwn(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"))return;Promise.resolve().then(() => nj())}var F$=Symbol.for("devknobs.owner");function sj(j){return typeof Reflect.get(j,F$)==="function"}function L$(j,$){for(let J of["name","length",...Object.keys($)]){let X=Object.getOwnPropertyDescriptor($,J);if(X)Object.defineProperty(j,J,X)}Object.defineProperty(j,"toString",{configurable:!0,writable:!0,value:()=>Function.prototype.toString.call($)})}function A(j,$,J,X){let Z=Reflect.get($,J);if(typeof Z!=="function")return;let Q=Object.hasOwn($,J),B=X(Z);if(L$(B,Z),Reflect.set($,J,B))j.push({target:$,key:J,original:Z,value:B,own:Q})}function oj(j){for(let{target:$,key:J,original:X,value:Z,own:Q}of j.reverse()){if(Reflect.get($,J)!==Z)continue;if(Q)Reflect.set($,J,X);else Reflect.deleteProperty($,J)}j.length=0}var $1=300,y=65536,J1=200,aj=4096;var N$=/^text\/|[/+](json|xml|javascript|ecmascript|x-www-form-urlencoded|graphql|yaml)\b|\/svg/i;function X1(j){return N$.test(j)}var X0=/�+$/;function b(j,$,J=y){if(j.length<=J){let Q=new TextEncoder().encode(j);if(Q.length<=J)return{kind:"text",text:j,size:Q.length,truncated:!1,type:$};return{kind:"text",text:new TextDecoder().decode(Q.subarray(0,J)).replace(X0,""),size:Q.length,truncated:!0,type:$}}let X=new TextEncoder().encode(j.slice(0,J)),Z=new TextDecoder().decode(X.subarray(0,J));return{kind:"text",text:X.length>J?Z.replace(X0,""):Z,size:null,truncated:!0,type:$}}function J0(j,$,J){return{kind:j,text:"",size:$,truncated:!1,type:J}}function D$(j,$){let J=[],X=0;for(let[Z,Q]of j){let B=typeof Q==="string"?`${Z}=${Q}`:`${Z}=(file ${Q.name}, ${Q.type||"no type"}, ${Q.size} bytes)`;if(J.push(B),X+=B.length+1,X>$)break}return J.join(`
|
|
6
|
+
`)}function p(j,$){return typeof j==="function"&&$ instanceof j}function D0(j,$,J=y){if(j===void 0||j===null)return null;if(typeof j==="string")return b(j,$||"text/plain;charset=UTF-8",J);if(p(globalThis.URLSearchParams,j))return b(String(j),$||"application/x-www-form-urlencoded;charset=UTF-8",J);if(p(globalThis.FormData,j))return{...b(D$(j,J),$||"multipart/form-data",J),kind:"form",size:null};if(p(globalThis.Blob,j))return J0("binary",j.size,$||j.type||"Blob");if(p(globalThis.ArrayBuffer,j))return J0("binary",j.byteLength,$||"ArrayBuffer");if(ArrayBuffer.isView(j))return J0("binary",j.byteLength,$||"ArrayBufferView");if(p(globalThis.ReadableStream,j))return J0("stream",null,$);return null}function c(j,$,J){return J0(j,$,J)}var Z1=2000;async function rj(j,$,J=y,X=Z1){if(!j.body){let Y=await j.blob(),H=await Y.slice(0,J).text(),C=Y.size>J;return{record:{kind:"text",text:C?H.replace(X0,""):H,size:Y.size,truncated:C,type:$},complete:!0}}let Z=j.body.getReader(),Q=new TextDecoder,B="",G=0,V=!1,K=setTimeout(()=>{V=!0,Z.cancel().catch(()=>{})},X);try{for(;;){let{done:Y,value:H}=await Z.read();if(Y)break;let C=J-G;if(H.byteLength>C)return B+=Q.decode(H.subarray(0,C)),Z.cancel().catch(()=>{}),{record:{kind:"text",text:B.replace(X0,""),size:null,truncated:!0,type:$},complete:!1};B+=Q.decode(H,{stream:!0}),G+=H.byteLength}}finally{clearTimeout(K)}if(B+=Q.decode(),V)return{record:{kind:"text",text:B.replace(X0,""),size:null,truncated:!0,timedOut:!0,type:$},complete:!1};return{record:{kind:"text",text:B,size:G,truncated:!1,type:$},complete:!0}}function k(j){try{return new URL(j,typeof document>"u"?void 0:document.baseURI).href}catch{return j}}function m(j,$){return j.find(([J])=>J.toLowerCase()===$)?.[1]??""}function Q1(j,$,J,X,Z){return{id:j,kind:$,detail:$==="resource"||$==="navigation"?"light":"full",source:J,method:"",url:"",finalUrl:null,redirected:!1,state:"pending",status:null,statusText:"",error:null,requestHeaders:[],responseHeaders:[],requestBody:null,responseBody:null,contentType:"",sizes:null,timing:{start:X.origin+Z,at:Z,response:null,end:null,duration:null},phases:null,messages:[],initiator:"",initiatorType:"",protocol:"",referrerPolicy:""}}function tj(j,$,J,X){return{active:X,start(Z,Q){let B=j.nextId();return j.put({...Q1(B,Z,J,$,$.now()),method:Q.method,url:Q.url,requestHeaders:Q.headers,requestBody:Q.body,initiator:Q.initiator,referrerPolicy:Q.referrerPolicy??""}),B},set:(Z,Q)=>j.update(Z,Q),responded(Z,Q){let B=j.get(Z)?.timing;if(!B)return;let G=B.response??$.now()-B.at;j.update(Z,{...Q,timing:{...B,response:G}})},ended(Z,Q){let B=j.get(Z)?.timing;if(!B)return;let G=B.duration??$.now()-B.at;j.update(Z,{...Q,timing:{...B,end:B.start+G,duration:G}})},message(Z,Q){let B=j.get(Z)?.messages;if(!B)return;let{text:G,truncated:V}=b(Q.data,"",aj),K={...Q,data:G,truncated:V,time:$.origin+$.now()};j.update(Z,{messages:[...B.slice(1-J1),K]})}}}var q$=/^at |@/;function l(j,$){if(typeof j!=="string")return"";let J=j.split(`
|
|
7
|
+
`).map((X)=>X.trim()).filter((X)=>X!=="");if(J[0]!==void 0&&!q$.test(J[0]))J.shift();return J.slice($,$+12).join(`
|
|
8
|
+
`)}var O$=new Set(["open","error"]);function ej(j,$){let J=Reflect.get(globalThis,"EventSource");if(typeof J!=="function")return;let X=new WeakMap,Z=EventTarget.prototype.addEventListener;function Q(G,V){let K=k(G.url),Y=()=>$.start("eventsource",{method:"GET",url:K,headers:[],body:null,initiator:V}),H=(P,z)=>{Z.call(G,P,(M)=>{try{z(M)}catch{}})},C={id:Y(),open:!1,types:new Set,listen(P){if(C.types.has(P)||O$.has(P))return;C.types.add(P),H(P,(z)=>{if(C.id===null)return;let M=Reflect.get(z,"data"),N=Reflect.get(z,"lastEventId");$.message(C.id,{type:z.type,data:String(M??""),id:typeof N==="string"?N:""})})}};X.set(G,C),C.listen("message"),H("open",()=>{if(C.id===null){if(!$.active())return;C.id=Y()}C.open=!0,$.responded(C.id,{status:200,state:"ok",contentType:"text/event-stream"})}),H("error",()=>{if(C.id===null)return;$.ended(C.id,C.open?{}:{state:"failed",error:"EventSource failed to connect"}),C.id=null,C.open=!1})}A(j,globalThis,"EventSource",(G)=>{function V(...K){if(!new.target)return Reflect.apply(G,this,K);let Y=Reflect.construct(G,K,new.target);try{if($.active())Q(Y,l(Error().stack,1))}catch{}return Y}return V.prototype=G.prototype,V});let B=Reflect.get(J,"prototype");if(typeof B!=="object"||B===null)return;A(j,B,"addEventListener",()=>function(...G){try{if(typeof G[0]==="string")X.get(this)?.listen(G[0])}catch{}return Reflect.apply(Reflect.get(Object.getPrototypeOf(B),"addEventListener"),this,G)}),A(j,B,"close",(G)=>function(...V){try{let K=X.get(this);if(K&&K.id!==null)$.ended(K.id,K.open?{}:{state:"aborted"}),K.id=null}catch{}return G.apply(this,V)})}var j3=2,Z0=Symbol.for("devknobs.requests"),$3=Symbol.for("devknobs.quiet");function R$(j){return typeof j==="object"&&j!==null&&Reflect.get(j,"version")===2}function q0(j=globalThis){try{let $=Reflect.get(j,Z0);return R$($)?$:null}catch{return null}}function B1(j){if(j)Reflect.set(globalThis,Z0,j);else Reflect.deleteProperty(globalThis,Z0)}function J3(){let j=Reflect.get(globalThis,Z0);if(typeof j!=="object"||j===null)return;let $=Reflect.get(j,"uninstall");try{if(typeof $==="function")$.call(j)}catch{}Reflect.deleteProperty(globalThis,Z0)}function x$(j){return typeof j==="object"&&j!==null&&"url"in j&&"method"in j&&"headers"in j&&"clone"in j}function Q0(j,$){return typeof j==="object"&&j!==null?Reflect.get(j,$):void 0}function A$(j){try{return typeof j==="object"&&j!==null&&Reflect.get(j,$3)===!0}catch{return!1}}function X3(j){let $=[];if(typeof j!=="object"||j===null)return $;if(p(globalThis.Headers,j))j.forEach((J,X)=>$.push([X,J]));else if(Array.isArray(j)){for(let J of j)if(Array.isArray(J)&&J.length>1)$.push([String(J[0]),String(J[1])])}else for(let[J,X]of Object.entries(j))$.push([J,String(X)]);return $}function Z3(j){return j instanceof Error?`${j.name}: ${j.message}`:String(j)}function Q3(j){return typeof j==="object"&&j!==null&&Reflect.get(j,"aborted")===!0}function S$(j,$,J){if($==="GET"||$==="HEAD")return null;if(j.body===null||j.bodyUsed)return null;return c(X1(J)?"stream":"binary",null,J)}function T$(j,$){let J=x$(j)?j:null,X=String(Q0($,"method")??J?.method??"GET").toUpperCase(),Z=Q0($,"headers"),Q=X3(Z===void 0?J?.headers:Z),B=m(Q,"content-type"),G=Q0($,"body"),V=J&&(G===void 0||G===null)?S$(J,X,B):null,K=D0(G,B)??V,Y=String(Q0($,"referrerPolicy")??J?.referrerPolicy??"");return{request:{method:X,url:k(J?J.url:String(j)),headers:Q,body:K,referrerPolicy:Y},signal:Q0($,"signal")??J?.signal}}function f$(j){let $=Number.parseInt(m(j,"content-length"),10);return Number.isFinite($)?$:null}function w$(j){return/^text\/event-stream\b/i.test(j.trim())}function E$(j,$,J,X,Z){let Q=X3(J.headers),B=m(Q,"content-type"),G=J.type==="opaque"||J.type==="opaqueredirect";if(j.responded($,{status:J.status,statusText:J.statusText,state:J.ok||G?"ok":"failed",responseHeaders:Q,contentType:B,redirected:J.redirected,finalUrl:J.url||null}),G)j.set($,{responseBody:c("opaque",null,"")});else if(J.body===null)j.ended($,{});else if(w$(B))j.set($,{responseBody:c("stream",null,B)});else if(!X1(B))j.set($,{responseBody:c("binary",f$(Q),B)});else rj(J.clone(),B,void 0,Z).then(({record:V,complete:K})=>{let Y=V.size===0?null:V;if(K)j.ended($,{responseBody:Y});else j.set($,{responseBody:Y})},(V)=>{j.ended($,{state:Q3(X)?"aborted":"failed",error:Z3(V)})})}function B3(j,$,J=Z1){return function(){let Z=arguments;if(!$.active()||A$(Z[1]))return Reflect.apply(j,this,Z);let Q=null,B;try{let K=T$(Z[0],Z[1]);B=K.signal,Q=$.start("fetch",{...K.request,initiator:l(Error().stack,1)})}catch{}let G=Reflect.apply(j,this,Z);if(Q===null)return G;let V=Q;return G.then((K)=>{try{E$($,V,K,B,J)}catch{}return K},(K)=>{try{$.ended(V,{state:Q3(B)?"aborted":"failed",error:Z3(K)})}catch{}throw K})}}var G1=250,B0=5;function F(j,$){let J=Reflect.get(j,$);return typeof J==="number"&&Number.isFinite(J)?J:0}function u(j,$){let J=Reflect.get(j,$);return typeof J==="string"?J:""}function G3(j){return j.split("#",1)[0]??j}function b$(j){try{return new URL(j).origin}catch{return""}}function V3(j,$){let J=F(j,"transferSize"),X=F(j,"encodedBodySize"),Z=F(j,"decodedBodySize"),Q=J+X+Z===0&&b$(j.name)!==$;return{transfer:J,encoded:X,decoded:Z,hidden:Q}}function K3(j){return{startTime:j.startTime,workerStart:F(j,"workerStart"),redirectStart:F(j,"redirectStart"),redirectEnd:F(j,"redirectEnd"),fetchStart:F(j,"fetchStart"),domainLookupStart:F(j,"domainLookupStart"),domainLookupEnd:F(j,"domainLookupEnd"),connectStart:F(j,"connectStart"),secureConnectionStart:F(j,"secureConnectionStart"),connectEnd:F(j,"connectEnd"),requestStart:F(j,"requestStart"),responseStart:F(j,"responseStart"),responseEnd:F(j,"responseEnd")||j.startTime+j.duration}}function W3(j){return F(j,"responseStatus")||null}function Y3(j,$,J,X,Z){let Q=Q1($,j.entryType==="navigation"?"navigation":"resource",J,X,j.startTime),B=W3(j),G=F(j,"responseEnd")||j.startTime+j.duration,V=F(j,"responseStart"),K=Math.max(0,G-j.startTime);return{...Q,url:j.name,state:B!==null&&B>=400?"failed":"ok",status:B,contentType:u(j,"contentType"),sizes:V3(j,Z),timing:{...Q.timing,response:V>0?Math.max(0,V-j.startTime):null,end:Q.timing.start+K,duration:K},phases:K3(j),initiatorType:u(j,"initiatorType")||j.entryType,protocol:u(j,"nextHopProtocol")}}var k$={fetch:"fetch",xmlhttprequest:"xhr",other:"eventsource"};function P3(j,$,J){let X=k$[u($,"initiatorType")];if(!X)return null;let Z=G3($.name),Q=F($,"responseEnd")||$.startTime+$.duration,B=null;for(let G of j){if(G.kind!==X||G.source!==J||G.sizes!==null)continue;let V=$.startTime-G.timing.at;if(!(X==="eventsource"&&V<=B0&&G.timing.at<=Q+B0)&&(V<-B0||V>G1)||G3(G.url)!==Z)continue;if(!B||Math.abs(V)<Math.abs($.startTime-B.timing.at))B=G}return B}function C3(j,$,J){let X=F($,"responseEnd")||$.startTime+$.duration,Z=Math.max(0,X-j.timing.at);return{sizes:V3($,J),phases:K3($),protocol:u($,"nextHopProtocol"),initiatorType:u($,"initiatorType"),status:j.status||W3($),contentType:j.contentType||u($,"contentType"),timing:{...j.timing,end:j.timing.start+Z,duration:Z}}}var m$=50;function g$(j){let $=setTimeout(j,m$);return()=>clearTimeout($)}function H3(j){let $=j.schedule??g$,J=[],X=new Map,Z=new Set,Q=new Set,B=null,G=!1,V=Number.NEGATIVE_INFINITY,K=0;function Y(){if(B?.(),B=null,Q.size===0&&!G)return;let P=[];for(let z of Q){let M=X.get(z);if(M)P.push(M)}Q.clear(),G=!1;for(let z of Array.from(Z))z(P)}function H(P){if(Z.size===0)return;if(P===null)G=!0;else Q.add(P);B??=$(Y)}function C(P){if(P.timing.start<V)return;let z=X.get(P.id);if(X.set(P.id,P),z)J[J.lastIndexOf(z)]=P;else{let M=J.length;while(M>0&&(J[M-1]?.timing.start??0)>P.timing.start)M--;if(J.splice(M,0,P),J.length>$1){let N=J.shift();if(N)X.delete(N.id);if(N===P)return}}H(P.id)}return{entries:()=>J,get:(P)=>X.get(P),nextId:()=>`${j.seed}-${++K}`,put:C,update(P,z){let M=X.get(P);if(M)C({...M,...z,id:P})},clear(){J=[],X.clear(),Q.clear(),V=j.now(),H(null)},subscribe(P){return Z.add(P),()=>{Z.delete(P)}},flush:Y,close(){B?.(),B=null,J=[],X.clear(),Q.clear(),Z.clear()}}}var v$=4*y;function h$(j){let $=[];for(let J of j.split(/\r?\n/)){let X=J.indexOf(":");if(X>0)$.push([J.slice(0,X).trim(),J.slice(X+1).trim()])}return $}function z3(j,$){let J=h$(j.getAllResponseHeaders()??""),X=j.responseURL||null;return{status:j.status,statusText:j.statusText,responseHeaders:J,contentType:m(J,"content-type"),finalUrl:X,redirected:X!==null&&X!==$.split("#",1)[0]}}function y$(j){if(typeof j!=="object"||j===null)return null;let $=Reflect.get(j,"byteLength")??Reflect.get(j,"size");return typeof $==="number"?$:null}function p$(j,$,J){let X=j.responseType,Z;if(X===""||X==="text")Z=b(j.responseText,$);else if(X!=="json")Z=c("binary",y$(j.response)??J,$||X);else if(J!==null&&J>v$)Z={kind:"text",text:"",size:J,truncated:!0,type:$};else Z=b(JSON.stringify(j.response)??"",$);return Z.size===0?null:Z}var M3=["error","abort","timeout"];function c$(j,$,J,X){let Z=null,Q=null,B=!1,G=null,V=()=>{j.removeEventListener("readystatechange",Y,!0),j.removeEventListener("progress",H,!0);for(let z of M3)j.removeEventListener(z,C,!0);j.removeEventListener("loadend",P,!0)};function K(){B=!0,V();try{let z=z3(j,J),M=j.status,N=Z??(M===0||M>=400?"failed":"ok"),V0=Number.parseInt(m(z.responseHeaders??[],"content-length"),10),K0=G??(Number.isFinite(V0)?V0:null),O0=Z?null:p$(j,z.contentType??"",K0);X.ended($,{...z,status:M===0?null:M,state:N,error:Q,responseBody:O0})}catch{X.ended($,{state:Z??"failed",error:Q})}}function Y(){try{if(j.readyState===2)X.responded($,z3(j,J))}catch{}if(j.readyState===4&&j.status!==0)K()}function H(z){let M=Reflect.get(z,"loaded");if(typeof M==="number")G=M}function C(z){Z=z.type==="abort"?"aborted":"failed",Q=z.type==="abort"?null:z.type}function P(z){if(j.readyState!==4)return;H(z),K()}j.addEventListener("readystatechange",Y,!0),j.addEventListener("progress",H,!0);for(let z of M3)j.addEventListener(z,C,!0);return j.addEventListener("loadend",P,!0),()=>{if(B)return;B=!0,V(),X.ended($,{state:"aborted"})}}function U3(j,$){if(typeof XMLHttpRequest!=="function")return;let J=new WeakMap,X=XMLHttpRequest.prototype;A(j,X,"open",(Z)=>function(...Q){let B=Z.apply(this,Q);try{if(J.get(this)?.drop?.(),J.delete(this),$.active()){let G=String(Q[0]).toUpperCase();J.set(this,{method:G,url:k(String(Q[1])),headers:[],drop:null})}}catch{}return B}),A(j,X,"setRequestHeader",(Z)=>function(...Q){let B=Z.apply(this,Q);return J.get(this)?.headers.push([String(Q[0]),String(Q[1])]),B}),A(j,X,"send",(Z)=>function(...Q){let B=J.get(this);if(!B||!$.active())return Z.apply(this,Q);let G=null;try{let{method:V,url:K,headers:Y}=B,H=D0(Q[0],m(Y,"content-type")),C=l(Error().stack,1);G=$.start("xhr",{method:V,url:K,headers:[...Y],body:H,initiator:C}),B.drop=c$(this,G,K,$)}catch{}try{return Z.apply(this,Q)}catch(V){if(B.drop?.(),B.drop=null,G!==null)$.set(G,{state:"failed",error:String(V)});throw V}})}var u$=100,G0=typeof performance>"u"?null:performance,I3=G0?G0.now.bind(G0):D;function d$(){let j=G0?G0.timeOrigin??D()-I3():0;return{now:I3,origin:j}}function i$(j){return k(j).split("#",1)[0]??j}function l$(j){return{...j,source:"frame",requestHeaders:j.requestHeaders.map(([$,J])=>[$,J]),responseHeaders:j.responseHeaders.map(([$,J])=>[$,J]),requestBody:j.requestBody&&{...j.requestBody},responseBody:j.responseBody&&{...j.responseBody},sizes:j.sizes&&{...j.sizes},timing:{...j.timing},phases:j.phases&&{...j.phases},messages:j.messages.map(($)=>({...$}))}}function n$(j){let{source:$,clock:J,origin:X}=j,Z=`${$.charAt(0)}${Math.floor(J.origin).toString(36)}${Math.floor(Math.random()*46656).toString(36)}`,Q=H3({seed:Z,now:()=>J.origin+J.now(),schedule:j.schedule}),B=[],G=!0,V=0,K=new Set,Y=[],H=tj(Q,J,$,()=>G&&V===0);function C(I,U){let S=i$(I);if(S.startsWith("data:"))return;if(!U)K.add(S);else Y=[...Y.slice(1-u$),{url:S,at:J.now()}]}function P(I){if(K.has(I.name))return!0;let U=Y.findIndex((S)=>{let W1=I.startTime-S.at;return S.url===I.name&&W1>=-B0&&W1<=G1});if(U<0)return!1;return Y.splice(U,1),!0}function z(I){try{if(P(I))return;let U=P3(Q.entries(),I,$);if(U)Q.update(U.id,C3(U,I,X));else Q.put(Y3(I,Q.nextId(),$,J,X))}catch{}}function M(){if(typeof PerformanceObserver!=="function")return()=>{};let I=new PerformanceObserver((U)=>{if(G)for(let S of U.getEntries())z(S)});for(let U of["navigation","resource"])try{I.observe({type:U,buffered:!0})}catch{}return()=>I.disconnect()}let N=null;function V0(I){let U=j.above?.()??null;if(U)U.adopt(U===N?I:Q.entries());N=U}function K0(I){if(Reflect.get(I,"persisted")===!0)return;for(let U of[...Q.entries()])if(U.state==="pending")Q.update(U.id,{state:"aborted"});Q.flush()}A(B,globalThis,"fetch",(I)=>B3(I,H,j.readFor)),U3(B,H),ej(B,H);let O0=M();if(j.above)Q.subscribe(V0),globalThis.addEventListener?.("pagehide",K0);let K1={version:j3,store:Q,quietly(I,U){C(I,!0),V++;try{return U()}finally{V--}},hush:C,adopt(I){for(let U of I)Q.put(l$(U))},uninstall(){if(G=!1,oj(B),O0(),globalThis.removeEventListener?.("pagehide",K0),Q.close(),q0()===K1)B1(null)}};return K1}function s$(){try{return window.parent===window?null:q0(window.parent)}catch{return null}}function _3(){if(q0())return;J3();let j=typeof window<"u"&&R(),$=typeof location>"u"?"":location.origin;B1(n$({source:j?"frame":"top",clock:d$(),origin:$,above:j?s$:void 0}))}var o$="devknobs:storage-presets",a$=1,F3=Symbol.for("devknobs.presets");function L3(j){return typeof j==="object"&&j!==null&&!Array.isArray(j)?Object.fromEntries(Object.entries(j)):{}}function V1(j){return Array.isArray(j)?j.map(L3):[]}function r$(){try{let j=JSON.parse(T("local")?.getItem(o$)??"null");return O(j,a$)?[]:V1(L3(j).presets)}catch{return[]}}function t$(j){let $=`${String(j.name)}=${String(j.value)}`;if($+=`; path=${typeof j.path==="string"?j.path:"/"}`,typeof j.domain==="string")$+=`; domain=${j.domain}`;if(typeof j.maxAge==="number")$+=`; max-age=${j.maxAge}`;if(typeof j.expires==="string")$+=`; expires=${j.expires}`;if(typeof j.sameSite==="string")$+=`; samesite=${j.sameSite}`;if(j.secure===!0)$+="; secure";return $}function e$(j){let $=[];for(let J=0;J<j.length;J++){let X=j.key(J);if(X!==null&&X!=="devknobs"&&!X.startsWith("devknobs:"))$.push(X)}for(let J of $)j.removeItem(J)}function j2(j,$,J){let X=[];for(let Z of["local","session"])try{let Q=Z==="local"?j.localStorage:j.sessionStorage;if(J)e$(Q);for(let B of V1($[Z]))try{if(typeof B.name==="string"&&typeof B.value==="string")Q.setItem(B.name,B.value)}catch{X.push(String(B.name))}}catch{X.push(`${Z}Storage`)}for(let Z of V1($.cookies))try{if(typeof Z.name==="string"&&typeof Z.value==="string")j.document.cookie=t$(Z)}catch{X.push(String(Z.name))}return X}function N3(){if(typeof window>"u")return 0;let j=Reflect.get(window,F3);if(typeof j==="number")return j;let $=0;try{if(!R())for(let J of r$()){if(J.onLoad!==!0)continue;j2(window,J,J.clearFirst===!0),$++}}catch{}return Reflect.set(window,F3,$),$}N3();if(sj(window))j1();else{let j=E1(),$=R(),J=$&&b1(j.scheme)?"system":j.scheme,{motion:X,contrast:Z,transparency:Q}=j;if(Zj({scheme:J,motion:X,contrast:Z,transparency:Q,touch:$&&M1(j.device)}),H1(j.clock),bj(j.ua),_3(),j1(),!$)Ij(j);Nj()}})();
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
valueParts,
|
|
14
14
|
varReferences,
|
|
15
15
|
variableTip
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-agwr37gw.js";
|
|
17
17
|
import {
|
|
18
18
|
flatParent,
|
|
19
19
|
isShadowRoot,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
segments,
|
|
32
32
|
toolToggle,
|
|
33
33
|
toolbar
|
|
34
|
-
} from "./index-
|
|
34
|
+
} from "./index-30fc6php.js";
|
|
35
35
|
import {
|
|
36
36
|
copyText
|
|
37
37
|
} from "./index-ztnjefrh.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
icon,
|
|
41
41
|
isDevknobs,
|
|
42
42
|
subscribe
|
|
43
|
-
} from "./index-
|
|
43
|
+
} from "./index-sxe5079a.js";
|
|
44
44
|
import {
|
|
45
45
|
SIDES,
|
|
46
46
|
authoredQuery,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
contentSize,
|
|
49
49
|
isOwnSheet,
|
|
50
50
|
ownInline
|
|
51
|
-
} from "./index-
|
|
51
|
+
} from "./index-xjhwp5cj.js";
|
|
52
52
|
|
|
53
53
|
// src/ui/domtree.ts
|
|
54
54
|
var ELEMENT = 1;
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
valueParts,
|
|
15
15
|
varReferences,
|
|
16
16
|
variableTip
|
|
17
|
-
} from "./react-
|
|
17
|
+
} from "./react-05jh9jv5.js";
|
|
18
18
|
import {
|
|
19
19
|
flatParent,
|
|
20
20
|
isShadowRoot,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
segments,
|
|
33
33
|
toolToggle,
|
|
34
34
|
toolbar
|
|
35
|
-
} from "./react-
|
|
35
|
+
} from "./react-16spgn0h.js";
|
|
36
36
|
import {
|
|
37
37
|
copyText
|
|
38
38
|
} from "./react-h9w04skh.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
icon,
|
|
42
42
|
isDevknobs,
|
|
43
43
|
subscribe
|
|
44
|
-
} from "./react-
|
|
44
|
+
} from "./react-ayg1bgw3.js";
|
|
45
45
|
import {
|
|
46
46
|
SIDES,
|
|
47
47
|
authoredQuery,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
contentSize,
|
|
50
50
|
isOwnSheet,
|
|
51
51
|
ownInline
|
|
52
|
-
} from "./react-
|
|
52
|
+
} from "./react-fm9y8dbn.js";
|
|
53
53
|
|
|
54
54
|
// src/ui/domtree.ts
|
|
55
55
|
var ELEMENT = 1;
|
|
@@ -2,8 +2,30 @@ import { type Bars } from "./browserui";
|
|
|
2
2
|
import { type Look } from "./browserkit";
|
|
3
3
|
import type { Rect } from "./mock";
|
|
4
4
|
export declare const BARS_CSS: string;
|
|
5
|
-
/**
|
|
6
|
-
export
|
|
5
|
+
/** Points of the screen to read the page's color under, with the page's box in it. */
|
|
6
|
+
export interface Probe {
|
|
7
|
+
page: Rect;
|
|
8
|
+
points: {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
}[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* What the bars show for the page in the frame, white and empty while it is
|
|
15
|
+
* out of reach. `probe` reads the page's color under the glass.
|
|
16
|
+
*/
|
|
17
|
+
export declare function readLook(frame: HTMLIFrameElement, probe?: Probe | null): Look;
|
|
18
|
+
/**
|
|
19
|
+
* What fills Safari's screen around the frame: the strip's color over the
|
|
20
|
+
* page and the bottom's under it, the page's color everywhere else. Under
|
|
21
|
+
* the bars the phone shows the page's content, or a fixed footer's color
|
|
22
|
+
* carried down. The frame ends above them: the band's picture of the page
|
|
23
|
+
* goes over the fill there, which is the content's color at the frame's
|
|
24
|
+
* bottom edge, or the footer's, where it has none. A
|
|
25
|
+
* minimized Safari has no strip: the page's content goes up under the status
|
|
26
|
+
* bar, with the scrim over it, unless a fixed or sticky bar holds the top.
|
|
27
|
+
*/
|
|
28
|
+
export declare function screenFill(look: Look, bars: Bars, page: Rect | null, height: number): string;
|
|
7
29
|
/** What the bars are drawn for. */
|
|
8
30
|
export interface BrowserView {
|
|
9
31
|
bars: Bars | null;
|
|
@@ -3,7 +3,18 @@ import type { Glyph, Mark } from "./browserui";
|
|
|
3
3
|
export interface Look {
|
|
4
4
|
/** The page's background, which fills the screen around the frame. */
|
|
5
5
|
background: string;
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* Safari's strip over the page, under the status bar: the color of a fixed
|
|
8
|
+
* or sticky bar touching the top of the viewport, else the page's.
|
|
9
|
+
*/
|
|
10
|
+
top: string;
|
|
11
|
+
/** What fills the screen under the viewport: a fixed bar's color touching its bottom, else the content at its bottom edge. */
|
|
12
|
+
bottom: string;
|
|
13
|
+
/** Is `bottom` a fixed bar's, carried down under the bars, where Safari shows the page past the viewport otherwise? */
|
|
14
|
+
footer: boolean;
|
|
15
|
+
/** The page's color under points of the screen, where Safari's glass takes its tint from. */
|
|
16
|
+
under: readonly Sample[];
|
|
17
|
+
/** Is that background dark, so Chrome's bars go dark over it too? Safari's glass reads `under`. */
|
|
7
18
|
dark: boolean;
|
|
8
19
|
/** Does the page get a dark `prefers-color-scheme`? Chrome's own colors follow it. */
|
|
9
20
|
scheme: "light" | "dark";
|
|
@@ -11,6 +22,12 @@ export interface Look {
|
|
|
11
22
|
canBack: boolean;
|
|
12
23
|
canForward: boolean;
|
|
13
24
|
}
|
|
25
|
+
/** The page's color at a point of the screen, in css px. */
|
|
26
|
+
export interface Sample {
|
|
27
|
+
x: number;
|
|
28
|
+
y: number;
|
|
29
|
+
color: string;
|
|
30
|
+
}
|
|
14
31
|
/** What the working buttons do to the frame. */
|
|
15
32
|
export interface Actions {
|
|
16
33
|
back(): void;
|