@vinena/knobs 0.6.6 → 0.7.1

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.
Files changed (116) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +13 -7
  3. package/THIRD_PARTY_NOTICES.md +3 -3
  4. package/dist/cli.d.ts +95 -0
  5. package/dist/cli.js +527 -0
  6. package/dist/{context-eawqn680.js → context-2r76ext7.js} +3 -3
  7. package/dist/{context-vd2xep5t.js → context-h1bdt8w3.js} +3 -3
  8. package/dist/early.global.js +7 -8
  9. package/dist/edit/html.d.ts +7 -3
  10. package/dist/edit/keep.d.ts +2 -2
  11. package/dist/{elementsview-n26sp8m7.js → elementsview-mcg6d5zp.js} +21 -19
  12. package/dist/{elementsview-dpm0xmb2.js → elementsview-mwr1s17z.js} +21 -19
  13. package/dist/engine/bezels.d.ts +2 -2
  14. package/dist/engine/check.d.ts +2 -2
  15. package/dist/engine/describe.d.ts +2 -2
  16. package/dist/engine/devices.d.ts +3 -3
  17. package/dist/engine/fit.d.ts +4 -4
  18. package/dist/engine/foldhand.d.ts +2 -2
  19. package/dist/engine/frame.d.ts +6 -6
  20. package/dist/engine/frames.d.ts +4 -4
  21. package/dist/engine/fresh.d.ts +12 -5
  22. package/dist/engine/header.d.ts +3 -1
  23. package/dist/engine/identity.d.ts +4 -4
  24. package/dist/engine/index.d.ts +7 -7
  25. package/dist/engine/locale.d.ts +2 -2
  26. package/dist/engine/morph.d.ts +2 -2
  27. package/dist/engine/native.d.ts +8 -8
  28. package/dist/engine/placeholder.d.ts +3 -3
  29. package/dist/engine/reload.d.ts +2 -2
  30. package/dist/engine/screen.d.ts +2 -2
  31. package/dist/engine/scrollkeep.d.ts +1 -1
  32. package/dist/engine/store.d.ts +11 -11
  33. package/dist/engine/storekeys.d.ts +34 -0
  34. package/dist/engine/style.d.ts +1 -1
  35. package/dist/engine/tabicon.d.ts +2 -2
  36. package/dist/engine/underneath.d.ts +1 -0
  37. package/dist/engine/width.d.ts +3 -3
  38. package/dist/{framekit-0as9t6a7.js → framekit-4v7nc3ea.js} +25 -20
  39. package/dist/{framekit-dknq662p.js → framekit-wyppj1se.js} +25 -20
  40. package/dist/grab/clipboard.d.ts +2 -0
  41. package/dist/{index-jfv7vavj.js → index-311fys81.js} +93 -29
  42. package/dist/index-3dcgysws.js +77 -0
  43. package/dist/{index-7vb2ct4s.js → index-3s4v7gw5.js} +11 -10
  44. package/dist/{index-ztnjefrh.js → index-585hs9tp.js} +5 -1
  45. package/dist/{index-za4ppxay.js → index-6t0w5s7p.js} +1 -1
  46. package/dist/{index-r1rdj05c.js → index-82y8x8vv.js} +14 -11
  47. package/dist/{index-dxga6h10.js → index-9targr2f.js} +26 -16
  48. package/dist/{index-x3sxssbs.js → index-a23nv5j4.js} +65 -45
  49. package/dist/{index-t4kssacm.js → index-abwqw8jh.js} +6 -1
  50. package/dist/{index-s6yzsvs4.js → index-bgzyc7rz.js} +22 -15
  51. package/dist/{index-t4wrs2a3.js → index-c1t6knbf.js} +20 -14
  52. package/dist/{index-7w0nm76e.js → index-cqymjce4.js} +20 -14
  53. package/dist/{index-69fvtkcm.js → index-dvtbh3c8.js} +24 -18
  54. package/dist/{index-ajs4na3f.js → index-k4w5v53q.js} +2 -2
  55. package/dist/{index-df35z48z.js → index-n31pn4ax.js} +20 -16
  56. package/dist/{index-ymqm185m.js → index-rps0bdq9.js} +1 -1
  57. package/dist/{index-a8ffw5ft.js → index-szd9bddn.js} +1 -1
  58. package/dist/{index-whehz74d.js → index-vhda420r.js} +32 -6
  59. package/dist/{index-xs29b55n.js → index-vmprrfwe.js} +5 -2
  60. package/dist/{index-20bc9yrj.js → index-vmz7htwn.js} +1 -1
  61. package/dist/index.d.ts +14 -8
  62. package/dist/index.global.js +176 -159
  63. package/dist/index.js +108 -43
  64. package/dist/instance.d.ts +7 -1
  65. package/dist/mark.d.ts +50 -0
  66. package/dist/{react-msn10fjb.js → react-4ezjf7mq.js} +24 -18
  67. package/dist/react-4qn9vsjw.js +78 -0
  68. package/dist/{react-73reavv4.js → react-4tcwpama.js} +1 -1
  69. package/dist/{react-k4pkm1p5.js → react-7eyps0cg.js} +2 -2
  70. package/dist/{react-10r2rczp.js → react-7tzwahsm.js} +14 -11
  71. package/dist/{react-yx3g9k55.js → react-amvrbng8.js} +5 -2
  72. package/dist/{react-5rq7bnsy.js → react-atw9y8ny.js} +5 -1
  73. package/dist/{react-4phtr2nd.js → react-dg4bjv3j.js} +1 -1
  74. package/dist/{react-vbk58f9m.js → react-hdneb4v3.js} +32 -6
  75. package/dist/{react-h9w04skh.js → react-j87bdhhe.js} +4 -1
  76. package/dist/{react-wtgvkf6g.js → react-mkafgzqf.js} +1 -1
  77. package/dist/{react-a1r0nr0g.js → react-ppyj3fg2.js} +65 -45
  78. package/dist/{react-0r5418av.js → react-rbmk30xk.js} +92 -29
  79. package/dist/{react-y9gr8yt2.js → react-rxw73n04.js} +1 -1
  80. package/dist/{react-5h7pxnax.js → react-tet7swk2.js} +22 -15
  81. package/dist/{react-5ekfj7g3.js → react-w94cfn87.js} +20 -16
  82. package/dist/{react-v08ywmtw.js → react-wzd3cfg8.js} +11 -10
  83. package/dist/{react-2b7725je.js → react-x209et38.js} +26 -16
  84. package/dist/react.d.ts +3 -1
  85. package/dist/react.js +111 -44
  86. package/dist/{replay-ehgxp9py.js → replay-3xqgt3xg.js} +8 -8
  87. package/dist/{replay-461gcdh1.js → replay-48gn27bj.js} +8 -8
  88. package/dist/storage/onload.d.ts +1 -1
  89. package/dist/{storageview-5p1y11b5.js → storageview-2rvwk0v7.js} +20 -17
  90. package/dist/{storageview-kxzpnfvr.js → storageview-6vq7nz02.js} +20 -17
  91. package/dist/styles/force.d.ts +3 -1
  92. package/dist/types.d.ts +4 -4
  93. package/dist/ui/actions.d.ts +3 -3
  94. package/dist/ui/bindings.d.ts +1 -1
  95. package/dist/ui/catalog.d.ts +14 -14
  96. package/dist/ui/changes.d.ts +1 -1
  97. package/dist/ui/colors.d.ts +1 -1
  98. package/dist/ui/deviceknobs.d.ts +2 -2
  99. package/dist/ui/editors.d.ts +3 -3
  100. package/dist/ui/foldslider.d.ts +2 -2
  101. package/dist/ui/icons.d.ts +5 -2
  102. package/dist/ui/keys.d.ts +1 -1
  103. package/dist/ui/list.d.ts +10 -10
  104. package/dist/ui/palette.d.ts +2 -2
  105. package/dist/ui/panel.d.ts +2 -0
  106. package/dist/ui/pin.d.ts +2 -2
  107. package/dist/ui/prefs.d.ts +1 -1
  108. package/dist/ui/rows.d.ts +3 -3
  109. package/dist/ui/settings.d.ts +11 -1
  110. package/dist/ui/storageview.d.ts +2 -2
  111. package/dist/ui/stylesview.d.ts +3 -3
  112. package/dist/ui/swatches.d.ts +2 -2
  113. package/package.json +5 -2
  114. package/skills/{devknobs → knobs}/SKILL.md +52 -51
  115. package/dist/index-5tv6sr74.js +0 -23
  116. package/dist/react-t2qnewz2.js +0 -24
@@ -1,8 +1,7 @@
1
- (()=>{var Y1=(j,$)=>()=>(j&&($=j(j=0)),$);var o0,N0=()=>{},gj=(j)=>j.__REACT_DEVTOOLS_GLOBAL_HOOK__,W$=(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),Y$=(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,P$,pj,kj,uj=(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)&&$()},C$=(j,$)=>{for(let J of P$)J.target===j&&J.listener($)},H$=(j,$)=>{for(let J of pj)J(j,$)},z$=(j)=>Object.prototype.toString.call(j)==="[object Map]",cj=(j)=>(z$(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),C$($,Z))},mj=(j,$=globalThis)=>{j&&uj(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);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,H)=>{e0.add(Y),K.set(H,Y)}),(V.size>0||pj.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:(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&&uj(j,$);let J=!1,X=gj($);if(!X)return;let Z=cj(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&&Y$(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?.()},M$=(j=globalThis)=>Object.hasOwn(j,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),ij=(j,$=globalThis)=>M$($)?(t0(j,$),gj($)??mj(j,$)):mj(j,$);var lj=Y1(()=>{o0=Object.defineProperty,yj=new Set,e0=new Set,a0=new WeakMap,P$=new Set,pj=new Set,kj=new WeakMap});var I$={};var nj=Y1(()=>{lj();try{ij()}catch{}});var q3=Symbol.for("devknobs.clock"),g=globalThis[q3]??={Date,clock:null},Y0=g.Date;function q(){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 O3(j){g.clock=j&&j.mode!=="system"?{...j}:null}function W0(){return g.clock?D3(g.clock,q()):q()}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 $2=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 I1(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",w3="fresh",f3="data-devknobs-fresh",S0="devknobs:fresh-reload",E3=1,b3=1e4,k3="devknobs:locale-",U1=Symbol.for("devknobs.fresh");function F1(j){try{return new URLSearchParams(j).getAll(A0).includes(w3)}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,$=q()-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(f3)}catch{}return window.name===T0&&F1(window.location?.search??"")}function _1(){if(typeof window>"u")return!1;let j=Reflect.get(window,U1);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,U1,$),$}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 q1(j){return Math.min(Math.max(j,0.25),4)}var p3="devknobs",u3=2,c3="devknobs:place",d3=2,w1=["device","scheme","text","locale"],D1=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:D1,top:D1,edge:"none",tab:"top",docked:!1,handle:!0,devIcon:"auto",realPhone:!1,pinned:[...w1]}},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 f(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 w(j,$){return typeof j==="string"?j:$}function D(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=f(j),X=Number.isFinite(D(J.y,D(J.top,Number.NaN)));return{side:_(J.side,Q7,$.side),y:D(J.y,$.y),top:D(J.top,D(J.y,$.top)),edge:_(J.edge,O1,X?"none":$.edge),tab:_(J.tab,O1,X?"none":$.tab),docked:L(J.docked,$.docked)}}function f1(j,$){let J=S1(A1($,d3),W.panel),X=f(A1(j,u3)),Z=f(X.locale),Q=f(X.geo),B=f(X.clock),G=f(X.network),V=f(X.ua),K=f(X.panel),Y=w(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:w(Z.lang,W.locale.lang),dir:_(Z.dir,a3,W.locale.dir)},pseudo:L(X.pseudo,W.pseudo),geo:{preset:w(Q.preset,W.geo.preset),lat:D(Q.lat,W.geo.lat),lng:D(Q.lng,W.geo.lng),accuracy:D(Q.accuracy,W.geo.accuracy),timeZone:w(Q.timeZone,W.geo.timeZone),error:_(Q.error,r3,W.geo.error),route:w(Q.route,W.geo.route),speed:D(Q.speed,W.geo.speed)},timeZone:w(X.timeZone,"")||W.timeZone,clock:{mode:_(B.mode,t3,W.clock.mode),at:D(B.at,W.clock.at),since:D(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:q1(C),mat:R1(X.mat,V7,"blue"),vision:_(X.vision,G7,W.vision),ua:{preset:w(V.preset,W.ua.preset),custom:w(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),realPhone:L(K.realPhone,W.panel.realPhone),pinned:X.panel===void 0?[...w1]:W7(K.pinned)}}}function T1(j,$){try{return T(j)?.getItem($)??null}catch{return null}}function E1(){let j=f1(T1("session",p3),T1("local",c3));return{...j,panel:{...j.panel,realPhone:W.panel.realPhone}}}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"},x2={...P7,device:"none",panel:{docked:!1}};function w0(j){return typeof j==="number"&&j>0}function k1(j){return w0(j.width)||w0(j.height)||j.frame||w0(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 f0(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 u1(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="(not (min-width: 0px))",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 U7(j){return new RegExp(`\\(\\s*${j}\\s*(?::\\s*([a-z-]+)\\s*)?\\)`,"gi")}function _7(j,$){if(j===void 0||j==="")return $!=="no-preference"&&$!=="none";return j.toLowerCase()===$}function F7(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 L7(j,$,J){return j.replace(U7($),(X,Z)=>_7(Z,J)?z7:M7)}function N7(j,$,J){if(J==="system")return j;if(!j.toLowerCase().includes($))return j;let X=F7(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 I7.some((J)=>$.includes(J))}var M0=Symbol.for("devknobs.early"),c1=new WeakMap,x=new Set,v=new WeakMap,e=new WeakMap,I0=new WeakSet,r1=256,d1=r1,E=l1,z0=null,U0=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=c1.get(X);if(Q===void 0){if(Q=u1(X)??Z,!h0(Q))return;c1.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 q7(){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 D7(j){try{let $=y1(a1(j,E));return U0?U0.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(I0.has(j)||!e.has(j))return;I0.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)I0.add(Q);f0("media",S7),x7();let X=Object.getOwnPropertyDescriptor(MediaQueryList.prototype,"matches"),Z=X?.get;if(!X||!Z)return;z0=X,U0=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)?D7(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 w7(j){E=j,T7(),q7(),Xj(),p0(),$j()}function f7(){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,U0=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:I0.has(X)})}return g0=j,x.clear(),E=l1,Xj(),p0(),f7(),$}function Zj(j){let $=window;if(M0 in $)return;w7(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 u0=[1,0.82,0.64];function c0(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[$(u0[0]),$(u0[1]),$(u0[2])]}function g7(j){return C0(j)?I1(j):null}function Bj(j){if(k7(j))return Qj[j];let $=g7(j);if(!$)return Qj.blue;let[J,X,Z]=m7($),Q=[c0(J),c0(X),c0(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 Pj(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 Cj(j,$){let J=Wj(j);if(J){let Z=Pj(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 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 Ij=2147483645,j0="early",y7="devknobs:snapshot",p7=1,u7=3000;function c7(j){if(!j)return`html{overflow:hidden!important}
2
- body>:not([data-devknobs]){content-visibility:hidden!important}`;let J=Bj(j);return`html{overflow:hidden!important}
3
- body>:not([data-devknobs]){content-visibility:hidden!important}
4
- html::after{content:"";position:fixed;inset:0;z-index:${Ij-1};background:${d0(J.srgb)};pointer-events:none}
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])}var Mj=/^rgb\(\d{1,3}, \d{1,3}, \d{1,3}\)$/;function i7(j){if(typeof j!=="object"||j===null)return null;let $=(P)=>Reflect.get(j,P),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=(P)=>{let z=$(P);return typeof z==="string"&&Mj.test(z)?z:J},Y=K("top"),H=K("bottom"),C=$("header");if(typeof C!=="boolean")return null;return{background:J,top:Y,bottom:H,header:C,footer:$("footer")===!0,under:[],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=c7(g1(j)?null:j.mat),window.setTimeout(n7,u7);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:${Ij}`;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,s7=1e4,o7=2000,a7=1e4,r7=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 t7(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 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=q){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: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$(t7(J),X,window.location.pathname,q());if(Q)$.setItem(l0,JSON.stringify(n(Q,Lj)));else $.removeItem(l0);j=Z}catch{return}if(j)J$(window,j)}var X$={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"},X$,...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"},qj={...Sj,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,{...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,qj)},{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"},qj)},{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 Z$.find(($)=>$.id===j)}function Q$(j){if(j.preset==="custom")return j.custom.trim();return Tj(j.preset)?.userAgent??""}function B$(j){return j.replace(/^Mozilla\//,"")}var wj=["userAgent","appVersion","platform","vendor","maxTouchPoints","userAgentData"],Oj=Symbol.for("devknobs.ua");function G$(j){return typeof j==="object"&&j!==null&&"originals"in j}function fj(j){let $=Reflect.get(j,Oj);if(G$($))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 V$={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=Q$(j);if(!J||Z===""){K$($);return}let Q=fj($);if(Q.originals??=new Map(wj.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",xj(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",xj(X,$));else Reflect.deleteProperty(J,"userAgentData")}function K$(j=globalThis){let $=fj(j),J=Ej(j);if(!$.originals)return;if(J)for(let X of wj)s0($,J,X);$.originals=null}function j1(){if(Object.hasOwn(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"))return;Promise.resolve().then(() => nj())}var U$=Symbol.for("devknobs.owner");function sj(j){return typeof Reflect.get(j,U$)==="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 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 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 q0(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(L$(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 u(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 N$=/^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&&!N$.test(J[0]))J.shift();return J.slice($,$+12).join(`
8
- `)}var q$=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)||q$.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 D$(j){return typeof j==="object"&&j!==null&&Reflect.get(j,"version")===2}function D0(j=globalThis){try{let $=Reflect.get(j,Z0);return D$($)?$: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 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,$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 x$(j,$,J){if($==="GET"||$==="HEAD")return null;if(j.body===null||j.bodyUsed)return null;return u(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=X3(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=q0(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 w$(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:u("opaque",null,"")});else if(J.body===null)j.ended($,{});else if(T$(B))j.set($,{responseBody:u("stream",null,B)});else if(!X1(B))j.set($,{responseBody:u("binary",S$(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()||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{w$($,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 c(j,$){let J=Reflect.get(j,$);return typeof J==="string"?J:""}function G3(j){return j.split("#",1)[0]??j}function f$(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&&f$(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:c(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:c(j,"initiatorType")||j.entryType,protocol:c(j,"nextHopProtocol")}}var E$={fetch:"fetch",xmlhttprequest:"xhr",other:"eventsource"};function P3(j,$,J){let X=E$[c($,"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:c($,"nextHopProtocol"),initiatorType:c($,"initiatorType"),status:j.status||W3($),contentType:j.contentType||c($,"contentType"),timing:{...j.timing,end:j.timing.start+Z,duration:Z}}}var b$=50;function k$(j){let $=setTimeout(j,b$);return()=>clearTimeout($)}function H3(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 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 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 z3(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=u("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 M3=["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",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: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($,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 I3(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=q0(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=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):q;function u$(){let j=G0?G0.timeOrigin??q()-U3():0;return{now:U3,origin:j}}function c$(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=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(U,I){let S=c$(U);if(S.startsWith("data:"))return;if(!I)K.add(S);else Y=[...Y.slice(1-p$),{url:S,at:J.now()}]}function P(U){if(K.has(U.name))return!0;let I=Y.findIndex((S)=>{let W1=U.startTime-S.at;return S.url===U.name&&W1>=-B0&&W1<=G1});if(I<0)return!1;return Y.splice(I,1),!0}function z(U){try{if(P(U))return;let I=P3(Q.entries(),U,$);if(I)Q.update(I.id,C3(I,U,X));else Q.put(Y3(U,Q.nextId(),$,J,X))}catch{}}function M(){if(typeof PerformanceObserver!=="function")return()=>{};let U=new PerformanceObserver((I)=>{if(G)for(let S of I.getEntries())z(S)});for(let I of["navigation","resource"])try{U.observe({type:I,buffered:!0})}catch{}return()=>U.disconnect()}let N=null;function V0(U){let I=j.above?.()??null;if(I)I.adopt(I===N?U:Q.entries());N=I}function K0(U){if(Reflect.get(U,"persisted")===!0)return;for(let I of[...Q.entries()])if(I.state==="pending")Q.update(I.id,{state:"aborted"});Q.flush()}A(B,globalThis,"fetch",(U)=>B3(U,H,j.readFor)),I3(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(U,I){C(U,!0),V++;try{return I()}finally{V--}},hush:C,adopt(U){for(let I of U)Q.put(d$(I))},uninstall(){if(G=!1,oj(B),O0(),globalThis.removeEventListener?.("pagehide",K0),Q.close(),D0()===K1)B1(null)}};return K1}function l$(){try{return window.parent===window?null:D0(window.parent)}catch{return null}}function _3(){if(D0())return;J3();let j=typeof window<"u"&&R(),$=typeof location>"u"?"":location.origin;B1(i$({source:j?"frame":"top",clock:u$(),origin:$,above:j?l$:void 0}))}var n$="devknobs:storage-presets",s$=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 o$(){try{let j=JSON.parse(T("local")?.getItem(n$)??"null");return O(j,s$)?[]:V1(L3(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 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 o$()){if(J.onLoad!==!0)continue;t$(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(),!$)Uj(j);Nj()}})();
1
+ (()=>{var N1=(j,$)=>()=>(j&&($=j(j=0)),$);var B1,f0=()=>{},rj=(j)=>j.__REACT_DEVTOOLS_GLOBAL_HOOK__,x$=(j)=>{let $=j.current.memoizedState;return $===null||$!==void 0&&($.element===null||$.element===void 0)},tj=(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{}},ej=(j=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(j&&("getFiberRoots"in j)&&j._isBippyHook!==!0),A$=(j=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>{if(!j||typeof j.inject!="function"||ej(j))return!1;try{return Function.prototype.toString.call(j.inject).includes("(injected)")}catch{return!1}},j3,K1,V1,S$,$3,oj,J3=(j,$)=>{j3.add(j);let J=V1.get(j)??new Set;J.add($),V1.set(j,J)},W1=(j)=>{for(let $ of j3)V1.get($)?.has(j)&&$()},T$=(j,$)=>{for(let J of S$)J.target===j&&J.listener($)},f$=(j,$)=>{for(let J of $3)J(j,$)},E$=(j)=>Object.prototype.toString.call(j)==="[object Map]",X3=(j)=>(E$(j.renderers)||(j.renderers=new Map),j.renderers),Z3=(j,$,J,X,Z)=>{J.set(X,Z),K1.add(Z),j._instrumentationIsActive||(j._instrumentationIsActive=!0,W1($));let Q=oj.get($)??new WeakSet;oj.set($,Q),!Q.has(Z)&&(Q.add(Z),T$($,Z))},aj=(j,$=globalThis)=>{j&&J3(j,$);let J=new Map,X=new Map,Z=(B)=>{let V=X.get(B)??new Set;return X.set(B,V),V},Q=0,G={_instrumentationIsActive:!1,_instrumentationSource:"bippy-0.7.3",_isBippyHook:!0,checkDCE:tj,getFiberRoots:Z,hasUnsupportedRendererAttached:!1,inject:(B)=>{let V=++Q;return Z3(G,$,J,V,B),V},on:f0,onCommitFiberRoot:(B,V)=>{let W=Z(B);x$(V)?W.delete(V):W.add(V)},onCommitFiberUnmount:f0,onPostCommitFiberRoot:f0,renderers:J,supportsFiber:!0,supportsFlight:!0};try{if(B1($,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!0,enumerable:!0,get:()=>G,set:(B)=>{if(B&&typeof B=="object"){let V=G.renderers;G=B;let W=X3(G);V.forEach((K,C)=>{K1.add(K),W.set(C,K)}),(V.size>0||$3.size>0)&&Y1(j,$),f$(G,$)}}}),$===globalThis&&typeof window<"u"){let B=window.hasOwnProperty.bind(window),V=Object.getOwnPropertyDescriptor(window,"hasOwnProperty"),W=!1,K=()=>{V?B1(window,"hasOwnProperty",V):Reflect.deleteProperty(window,"hasOwnProperty")};B1(window,"hasOwnProperty",{configurable:!0,value:(C)=>!W&&C==="__REACT_DEVTOOLS_GLOBAL_HOOK__"?(W=!0,K(),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,!1):B(C),writable:!0})}}catch{Y1(j,$)}return G},Y1=(j,$=globalThis)=>{j&&J3(j,$);let J=!1,X=rj($);if(!X)return;let Z=X3(X);if(!X._instrumentationSource){X.checkDCE=tj,X.supportsFiber=!0,X.supportsFlight=!0,X.hasUnsupportedRendererAttached=!1,X._instrumentationSource="bippy-0.7.3",X._instrumentationIsActive=!1;let Q=ej(X);Q||(X.on=f0),Z.size?(Z.forEach((B)=>K1.add(B)),X._instrumentationIsActive=!0,W1($),J=!0):!Q&&A$(X)&&(X._instrumentationIsActive=!0,W1($),J=!0);let G=X.inject;X.inject=(B)=>{let V=G.call(X,B);return Z3(X,$,Z,V,B),V}}!J&&(Z.size||X._instrumentationIsActive)&&j?.()},b$=(j=globalThis)=>Object.hasOwn(j,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),Q3=(j,$=globalThis)=>b$($)?(Y1(j,$),rj($)??aj(j,$)):aj(j,$);var G3=N1(()=>{B1=Object.defineProperty,j3=new Set,K1=new Set,V1=new WeakMap,S$=new Set,$3=new Set,oj=new WeakMap});var w$={};var B3=N1(()=>{G3();try{Q3()}catch{}});var m3=Symbol.for("devknobs.clock"),v=globalThis[m3]??={Date,clock:null},U0=v.Date;function N(){return U0.now()}function v3(j,$){if(j.mode==="frozen")return j.at;if(j.mode==="offset")return Math.floor(j.at+($-j.since)*j.speed);return $}function h3(j){v.clock=j&&j.mode!=="system"?{...j}:null}function M0(){return v.clock?v3(v.clock,N()):N()}function y3(j,$){return new Proxy(j,{construct(J,X,Z){if(X.length===0&&v.clock)return Reflect.construct(J,[M0()],Z);return Reflect.construct(J,$?$.args(X):X,Z)},apply(J,X,Z){if(!v.clock&&!$?.on())return Reflect.apply(J,X,Z);return String(new U0(M0()))},get(J,X,Z){if(X==="now")return M0;if(X==="parse"&&$)return $.parse;return Reflect.get(J,X,Z)}})}var O1={instant:(j)=>j,zonedDateTimeISO:(j,$)=>j.toZonedDateTimeISO($),plainDateTimeISO:(j,$)=>j.toZonedDateTimeISO($).toPlainDateTime(),plainDateISO:(j,$)=>j.toZonedDateTimeISO($).toPlainDate(),plainTimeISO:(j,$)=>j.toZonedDateTimeISO($).toPlainTime()},p3=Object.keys(O1);function u3(){return globalThis.Temporal?.Now}function c3(j,$,J){return function(X){let Z=J(X),Q=globalThis.Temporal;if(!v.clock||!Q?.Instant)return $.call(this,Z);let G=Q.Instant.fromEpochMilliseconds(M0()),B=Q.Now?.timeZoneId,V=typeof B==="function"?B.call(Q.Now):void 0;return O1[j](G,Z??V)}}var D1=Symbol.for("devknobs.early.clock");function R1(j){let $=globalThis;if(D1 in $||j.mode==="system")return;h3(j);let J=[],X=(Q,G,B)=>{let V=Reflect.get(Q,G);if(!Reflect.set(Q,G,B))return;J.push(()=>{if(Reflect.get(Q,G)===B)Reflect.set(Q,G,V)})};X(globalThis,"Date",y3(U0)),X(U0.prototype,"constructor",globalThis.Date);let Z=u3();for(let Q of p3){let G=Z?.[Q];if(Z&&typeof G==="function"){let B=c3(Q,G,(V)=>V);X(Z,Q,B)}}$[D1]={release:()=>{for(let Q of J.reverse())Q()}}}var I0=["closed","open"];var k0=[{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 g0(j){return k0.find(($)=>$.id===j)}function x1(j){for(let $ of k0){let J=I0.find((X)=>$.postures?.[X].id===j);if(J)return{device:$.id,posture:J}}return}var I2=k0.flatMap((j)=>{let{postures:$}=j;return $?I0.map((J)=>({...j,...$[J]})):[j]});function A1(j){return g0(j)?.touch===!0}function F0(j){return typeof j==="string"&&/^#[0-9a-f]{6}$/.test(j)}function S1(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,(B)=>B+B):J.match(/../g),[Z=0,Q=0,G=0]=(X??[]).map((B)=>Number.parseInt(B,16));return{red:Z,green:Q,blue:G,alpha:1}}function d3(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 d3(j)>$}function t(j,$){return{v:$,...j}}function m0(j){if(j==="knobs")return"devknobs";return j.startsWith("knobs:")?`devknobs${j.slice(5)}`:j}function v0(j){if(j==="knobs"||j.startsWith("knobs:"))return j;if(j==="devknobs")return"knobs";return j.startsWith("devknobs:")?`knobs${j.slice(8)}`:null}function T1(j){return v0(j)!==null}function R(j,$){if(!j)return null;return j.getItem(m0($))}function i(j,$,J){if(!j)return;let X=m0($);if(j.setItem(X,J),X!==$)j.setItem($,J)}function l(j,$){if(!j)return;j.removeItem($),j.removeItem(m0($))}var n={mark:"data-devknobs",frame:"data-devknobs-frame",force:"data-devknobs-force",hide:"data-devknobs-hide",replay:"data-devknobs-replay",href:"data-devknobs-href",icon:"data-devknobs-icon",keys:"data-devknobs-keys",fresh:"data-devknobs-fresh",early:"data-devknobs-early"},s=n.mark;function _0(j){return`data-knobs${j.slice(s.length)}`}var D2=new Set(Object.values(n).map(_0));function i3(j,$,J=""){j.setAttribute(_0($),J),j.setAttribute($,J)}function e(j,$){return j.hasAttribute(_0($))||j.hasAttribute($)}function f1(j,$="]"){return`[${_0(j)}${$},[${j}${$}`}function L0(j,$=""){i3(j,s,$)}function h0(j){return e(j,s)}function q0(j){return f1(s,j===void 0?"]":`="${j}"]`)}function y0(j,$,J=""){return j.querySelector(`${J}[data-knobs="${$}"]`)??j.querySelector(`${J}[${s}="${$}"]`)}var O2=`${q0()},${f1(s,"] *")}`;var l3="devknobs",n3="fresh",s3="knobs",o3=n.fresh,p0="knobs:fresh-reload",a3=1,r3=1e4,t3="knobs:locale-",E1=Symbol.for("devknobs.fresh");function w1(j){try{let $=new URLSearchParams(j);return[s3,l3].some((J)=>$.getAll(J).includes(n3))}catch{return!1}}function e3(j){let $=v0(j);return $!==null&&!$.startsWith(t3)}function j7(j){if(!j)return 0;try{let $=JSON.parse(j);if(typeof $!=="object"||$===null||O($,a3))return 0;let J=Reflect.get($,"at");return typeof J==="number"?J:0}catch{return 0}}function $7(){try{let j=window.sessionStorage,$=N()-j7(R(j,p0));if(l(j,p0),$>=0&&$<r3)return;let J=[];for(let X=0;X<j.length;X++){let Z=j.key(X);if(Z!==null&&e3(Z))J.push(Z)}for(let X of J)j.removeItem(X)}catch{}}function J7(){try{l(window.sessionStorage,p0)}catch{}}function X7(){try{let j=window.frameElement;if(j)return e(j,o3)}catch{}return window.name===u0&&w1(window.location?.search??"")}function b1(){if(typeof window>"u")return!1;let j=Reflect.get(window,E1);if(typeof j==="boolean")return j;let $=!1;try{if(x())$=X7();else if($=w1(window.location?.search??""),$)$7();else J7()}catch{$=!1}return Reflect.set(window,E1,$),$}function f(j){try{if(typeof window>"u")return null;if(j==="session")return b1(),window.sessionStorage??null;return b1()?null:window.localStorage??null}catch{return null}}var k1=20,g1=40;function m1(j){return Math.min(Math.max(j,0.25),4)}var Z7="knobs",Q7=2,G7="knobs:place",B7=2,i1=["device","scheme","text","locale"],v1=128,V7=new Map([["speed","motion"],["pseudo","locale"],["timeZone","clock"],["ua","device"],["grabColor","debug"]]),Y={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:k1,timeZone:"",error:"none",route:"",speed:g1},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:v1,top:v1,edge:"none",tab:"top",docked:!1,handle:!0,devIcon:"auto",realPhone:!1,pinned:[...i1]}},W7=["light","dark","system"],Y7=["reduce","system"],K7=["more","system"],P7=["reduce","system"],H7=["ltr","rtl","system"],C7=["none","denied","unavailable","timeout"],z7=["system","offset","frozen"],M7=["offline","system"],U7=["slow-2g","2g","3g","4g","system"],I7=["on","off","system"],F7=["auto","expanded","minimized"],_7=["auto","compact","bottom","top","off"],L7=["portrait","landscape"],h1=["top","bottom","none"],q7=["left","right"],N7=["auto","on","off"],D7=["none","protanopia","deuteranopia","tritanopia","achromatopsia","blur"],O7=["blue","green","magenta","purple","red","graphite"],R7=["auto","blue","green","pink","orange","purple","cyan"];function b(j){return typeof j==="object"&&j!==null?j:{}}function F(j,$,J){return $.includes(j)?j:J}function y1(j,$,J){return F0(j)?j:F(j,$,J)}function E(j,$){return typeof j==="string"?j:$}function D(j,$){return typeof j==="number"&&Number.isFinite(j)?j:$}function L(j,$){return typeof j==="boolean"?j:$}function j0(j,$,J){if(j===$)return $;if(typeof j==="number"&&Number.isFinite(j)&&j>0)return j;return J}function p1(j,$){return typeof j==="number"&&Number.isFinite(j)&&j>=0?j:$}function x7(j){if(!Array.isArray(j))return[];let $=j.filter((J)=>typeof J==="string");return Array.from(new Set($.map((J)=>V7.get(J)??J)))}function u1(j,$){if(!j)return null;try{let J=JSON.parse(j);return O(J,$)?null:J}catch{return null}}function c1(j,$){let J=b(j),X=Number.isFinite(D(J.y,D(J.top,Number.NaN)));return{side:F(J.side,q7,$.side),y:D(J.y,$.y),top:D(J.top,D(J.y,$.top)),edge:F(J.edge,h1,X?"none":$.edge),tab:F(J.tab,h1,X?"none":$.tab),docked:L(J.docked,$.docked)}}function l1(j,$){let J=c1(u1($,B7),Y.panel),X=b(u1(j,Q7)),Z=b(X.locale),Q=b(X.geo),G=b(X.clock),B=b(X.network),V=b(X.ua),W=b(X.panel),K=E(X.device,Y.device),C=x1(K),H=j0(X.zoom,"fit",Y.zoom);return{scheme:F(X.scheme,W7,Y.scheme),motion:F(X.motion,Y7,Y.motion),speed:p1(X.speed,Y.speed),contrast:F(X.contrast,K7,Y.contrast),transparency:F(X.transparency,P7,Y.transparency),locale:{lang:E(Z.lang,Y.locale.lang),dir:F(Z.dir,H7,Y.locale.dir)},pseudo:L(X.pseudo,Y.pseudo),geo:{preset:E(Q.preset,Y.geo.preset),lat:D(Q.lat,Y.geo.lat),lng:D(Q.lng,Y.geo.lng),accuracy:D(Q.accuracy,Y.geo.accuracy),timeZone:E(Q.timeZone,Y.geo.timeZone),error:F(Q.error,C7,Y.geo.error),route:E(Q.route,Y.geo.route),speed:D(Q.speed,Y.geo.speed)},timeZone:E(X.timeZone,"")||Y.timeZone,clock:{mode:F(G.mode,z7,Y.clock.mode),at:D(G.at,Y.clock.at),since:D(G.since,Y.clock.since),speed:p1(G.speed,Y.clock.speed),header:L(G.header,Y.clock.header)},network:{online:F(B.online,M7,Y.network.online),type:F(B.type,U7,Y.network.type),saveData:F(B.saveData,I7,Y.network.saveData)},text:j0(X.text,"system",Y.text),spacing:L(X.spacing,Y.spacing),width:j0(X.width,"full",Y.width),height:j0(X.height,"full",Y.height),device:C?.device??(g0(K)?K:Y.device),orientation:F(X.orientation,L7,Y.orientation),posture:C?.posture??F(X.posture,[...I0],Y.posture),mock:L(X.mock,Y.mock),touchPointer:L(X.touchPointer,Y.touchPointer),browser:F(X.browser,_7,Y.browser),bars:X.browserMin===!0?"minimized":F(X.bars,F7,Y.bars),edgeToEdge:L(X.edgeToEdge,Y.edgeToEdge),frame:L(X.frame,Y.frame),dpr:j0(X.dpr,"system",Y.dpr),zoom:H==="fit"?H:m1(H),mat:y1(X.mat,O7,"blue"),vision:F(X.vision,D7,Y.vision),ua:{preset:E(V.preset,Y.ua.preset),custom:E(V.custom,Y.ua.custom)},overflow:L(X.overflow,Y.overflow),outlines:L(X.outlines,Y.outlines),grabColor:y1(X.grabColor,R7,"auto"),panel:{open:L(W.open,Y.panel.open),...c1(W,J),handle:L(W.handle,Y.panel.handle),devIcon:F(W.devIcon,N7,Y.panel.devIcon),realPhone:L(W.realPhone,Y.panel.realPhone),pinned:X.panel===void 0?[...i1]:x7(W.pinned)}}}function d1(j,$){try{return R(f(j),$)}catch{return null}}function n1(){let j=l1(d1("session",Z7),d1("local",G7));return{...j,panel:{...j.panel,realPhone:Y.panel.realPhone}}}var A7=n.frame,u0="devknobs-frame";function x(){try{let j=window.frameElement;if(j&&e(j,A7))return!0}catch{}return window.name===u0}function s1(j){if(j==="system")return!1;try{return window.frameElement?.style.getPropertyValue("color-scheme")===j}catch{return!1}}var S7={width:"full",height:"full",frame:!1,dpr:"system",vision:"none"},t2={...S7,device:"none",panel:{docked:!1}};function c0(j){return typeof j==="number"&&j>0}function o1(j){return c0(j.width)||c0(j.height)||j.frame||c0(j.dpr)||j.vision!=="none"}function a1(j){return o1(j)||j.panel?.docked===!0}function r1(j){return j.panel?.docked===!0&&!o1(j)}var t1=["text","media"],N0=new Map,$0=null,o=null;function e1(j,$,J){for(let X=j;X<t1.length;X++){let Z=N0.get(t1[X]);if(Z)return Z($,(Q)=>e1(X+1,Q,J))}return J.call(window,$)}function jj(j){return($0??window.matchMedia).call(window,j)}function d0(j,$){if(N0.set(j,$),o)return;let J=window.matchMedia,X=function(Q){let G=String(Q);return o===X?e1(0,G,J):J.call(window,G)};$0=J,o=X,window.matchMedia=X}function i0(j){if(N0.delete(j),N0.size>0||!o)return;if(window.matchMedia===o&&$0)window.matchMedia=$0;o=null,$0=null}var $j=Symbol.for("devknobs.inline");function T7(j){let $=Reflect.get(j,$j);return typeof $==="object"&&$!==null?$:null}function l0(j,$,J){let X=T7(j);if(J===null||J===""){if(X)Reflect.deleteProperty(X,$);return}if(X)Reflect.set(X,$,J);else Reflect.set(j,$j,{[$]:J})}var f7=new WeakMap;function Jj(j){let $=f7.get(j);return $&&j.media.mediaText===$.written?$.original:void 0}var Gj={scheme:"system",motion:"system",contrast:"system",transparency:"system",touch:!1},E7="(min-width: 0px)",b7="(not (min-width: 0px))",a0={scheme:"prefers-color-scheme",motion:"prefers-reduced-motion",contrast:"prefers-contrast",transparency:"prefers-reduced-transparency"},Bj=Object.keys(a0),Vj=[["pointer","coarse"],["any-pointer","coarse"],["hover","none"],["any-hover","none"]],w7=[...Bj.map((j)=>a0[j]),...Vj.map(([j])=>j)];function Wj(j){return[...Bj.map(($)=>[a0[$],j[$]]),...Vj.map(([$,J])=>[$,j.touch?J:"system"])]}function k7(j){return new RegExp(`\\(\\s*${j}\\s*(?::\\s*([a-z-]+)\\s*)?\\)`,"gi")}function g7(j,$){if(j===void 0||j==="")return $!=="no-preference"&&$!=="none";return j.toLowerCase()===$}function m7(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 v7(j,$,J){return j.replace(k7($),(X,Z)=>g7(Z,J)?E7:b7)}function h7(j,$,J){if(J==="system")return j;if(!j.toLowerCase().includes($))return j;let X=m7(j);if(X.length===0)return j;return X.map((Z)=>v7(Z,$,J)).join(", ")}function Yj(j,$){let J=j;for(let[X,Z]of Wj($))J=h7(J,X,Z);return J}function r0(j){let $=j.toLowerCase();return w7.some((J)=>$.includes(J))}var O0=Symbol.for("devknobs.early"),Xj=new WeakMap,A=new Set,h=new WeakMap,Q0=new WeakMap,R0=new WeakSet,Kj=256,Zj=Kj,w=Gj,D0=null,x0=null,X0=null,t0=null,A0=!1,n0=!1,o0=null,Z0=null,a=0,J0=null;function Pj(j,$,J){for(let X=0;X<j.length;X++){let Z=j[X];if(!Z)continue;let Q=Z.styleSheet;if(Q)Hj(Q,$,J);let G=Z.media;if(G&&typeof G.mediaText==="string")$(Z);let B=Z.cssRules;if(B&&B!==j)Pj(B,$,J)}}function Hj(j,$,J){if(J.has(j))return;J.add(j);let X=null;try{X=j.cssRules}catch{return}if(X)Pj(X,$,J)}function e0(){let j=new Set,$=[...Array.from(document.styleSheets),...document.adoptedStyleSheets??[]];for(let J of $)Hj(J,(X)=>{let Z=X.media.mediaText,Q=Xj.get(X);if(Q===void 0){if(Q=Jj(X)??Z,!r0(Q))return;Xj.set(X,Q)}let G=Yj(Q,w);if(G===Z)return;try{X.media.mediaText=G}catch{}},j)}function Qj(){if(a)return;a=requestAnimationFrame(()=>{a=0,e0()})}function y7(){if(Z0||typeof MutationObserver>"u")return;Z0=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(h0(J))continue;if(X==="LINK")J.addEventListener("load",Qj,{once:!0});Qj()}}),Z0.observe(document.documentElement,{childList:!0,subtree:!0})}function Cj(){return Wj(w).some(([,j])=>j!=="system")}function p7(j){try{let $=jj(Yj(j,w));return x0?x0.call($):$.matches}catch{return!1}}function zj(){for(let j of Array.from(A)){let $=j.deref();if(!$){A.delete(j);continue}let J=$.matches;if(J===h.get($))continue;h.set($,J),$.dispatchEvent(new MediaQueryListEvent("change",{media:$.media,matches:J}))}}function Mj(j){if(o0){o0(j);return}if(!j.isTrusted)return;let $=j.currentTarget;if(!Cj()){h.set($,j.matches);return}if(j.stopImmediatePropagation(),n0)return;n0=!0,queueMicrotask(()=>{n0=!1,zj()})}function s0(j){if(R0.has(j)||!Q0.has(j))return;R0.add(j),h.set(j,j.matches),(t0??j.addEventListener).call(j,"change",Mj)}function u7(j,$){if(Q0.set(j,$),h.set(j,j.matches),A.add(new WeakRef(j)),A.size<Zj)return;for(let J of A)if(!J.deref())A.delete(J);Zj=Math.max(Kj,A.size*2)}var c7=["addEventListener","addListener","onchange"];function d7(){let j=MediaQueryList.prototype;X0=new Map(c7.map((Q)=>[Q,Object.getOwnPropertyDescriptor(j,Q)]));let $=j.addEventListener;t0=$,Object.defineProperty(j,"addEventListener",{configurable:!0,writable:!0,value:function(...G){if(G[1]&&String(G[0])==="change")s0(this);$.apply(this,G)}});let J=j.addListener;if(typeof J==="function")Object.defineProperty(j,"addListener",{configurable:!0,writable:!0,value:function(...G){if(G[0])s0(this);J.apply(this,G)}});let X=X0.get("onchange"),Z=X?.set;if(X&&Z)Object.defineProperty(j,"onchange",{...X,set(Q){if(Q!==null&&Q!==void 0)s0(this);Z.call(this,Q)}})}function i7(){if(!X0)return;let j=MediaQueryList.prototype;for(let[$,J]of X0)if(J)Object.defineProperty(j,$,J);else Reflect.deleteProperty(j,$);X0=null,t0=null}function l7(j,$){let J=$(j);if(r0(j))u7(J,j);return J}function n7(){if(A0)return;let j=window,$=j[O0];j[O0]=null;let J=$?.release(Mj)??[];A0=!0;for(let{list:Q,query:G,heard:B,guarded:V}of J)if(Q0.set(Q,G),h.set(Q,B),A.add(new WeakRef(Q)),V!==!1)R0.add(Q);d0("media",l7),d7();let X=Object.getOwnPropertyDescriptor(MediaQueryList.prototype,"matches"),Z=X?.get;if(!X||!Z)return;D0=X,x0=Z,Object.defineProperty(MediaQueryList.prototype,"matches",{configurable:!0,enumerable:X.enumerable,get(){if(!Cj())return Z.call(this);let Q=Q0.get(this)??this.media;return r0(Q)?p7(Q):Z.call(this)}})}function Uj(){let j=document.documentElement;if(J0===null)J0=j.style.getPropertyValue("color-scheme");let $=w.scheme==="system"?J0:w.scheme;if($)j.style.setProperty("color-scheme",$);else j.style.removeProperty("color-scheme");let J=w.scheme!=="system"&&$!==J0;l0(j,"color-scheme",J?j.style.getPropertyValue("color-scheme"):null)}function s7(j){w=j,n7(),y7(),Uj(),e0(),zj()}function o7(){if(Z0?.disconnect(),Z0=null,a)cancelAnimationFrame(a),a=0;if(A0){if(i0("media"),i7(),D0)Object.defineProperty(MediaQueryList.prototype,"matches",D0);D0=null,x0=null,A0=!1}J0=null}function a7(j){let $=[];for(let J of A){let X=J.deref();if(!X)continue;$.push({list:X,query:Q0.get(X)??X.media,heard:h.get(X)??X.matches,guarded:R0.has(X)})}return o0=j,A.clear(),w=Gj,Uj(),e0(),o7(),$}function Ij(j){let $=window;if(O0 in $)return;s7(j),$[O0]={release:a7}}var Fj={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)"}},r7=["blue","green","magenta","purple","red","graphite"];function J1(j){return`radial-gradient(140% 100% at 50% 0%, ${j[0]}, ${j[1]} 60%, ${j[2]})`}function t7(j){return r7.some(($)=>$===j)}var j1=[1,0.82,0.64];function $1(j){return`rgb(${Math.round(j.red)}, ${Math.round(j.green)}, ${Math.round(j.blue)})`}function e7(j){let $=(J)=>({red:j.red*J,green:j.green*J,blue:j.blue*J,alpha:1});return[$(j1[0]),$(j1[1]),$(j1[2])]}function j$(j){return F0(j)?S1(j):null}function _j(j){if(t7(j))return Fj[j];let $=j$(j);if(!$)return Fj.blue;let[J,X,Z]=e7($),Q=[$1(J),$1(X),$1(Z)];return{srgb:Q,p3:Q}}var $$=Symbol.for("devknobs.own"),Nj=Symbol.for("devknobs.name"),Lj=Symbol.for("devknobs.text"),qj=new WeakMap;function X1(j){return j.nodeType===9}function J$(j){return X1(j)?j:j.ownerDocument??document}function Dj(j){let J=(X1(j)?j:j.ownerDocument)?.defaultView?.CSSStyleSheet;if(typeof J!=="function"||typeof J.prototype.replaceSync!=="function")return null;return"adoptedStyleSheets"in j?J:null}function Oj(j,$){let J=qj.get($);if(J)return J;let X={get textContent(){let Z=Reflect.get($,Lj);return typeof Z==="string"?Z:""},set textContent(Z){Reflect.set($,Lj,Z??""),$.replaceSync(Z??"")},sheet:$,remove(){j.adoptedStyleSheets=j.adoptedStyleSheets.filter((Z)=>Z!==$)}};return qj.set($,X),X}function Rj(j,$,J){let X=new $;if(Reflect.set(X,$$,!0),J!==void 0)Reflect.set(X,Nj,J);return j.adoptedStyleSheets=[...j.adoptedStyleSheets,X],Oj(j,X)}function xj(j,$){let J=Dj(j);if(J){let Z=Rj(j,J);return Z.textContent=$,Z}let X=J$(j).createElement("style");if(X.textContent=$,X1(j))(j.head??j.documentElement).appendChild(X);else j.append(X);return X}function S0(j,$=document){let J="adoptedStyleSheets"in $?$.adoptedStyleSheets.find((X)=>Reflect.get(X,Nj)===j):void 0;return J?Oj($,J):y0($,j,"style")}function Aj(j,$=document){let J=S0(j,$);if(J)return J;let X=Dj($);if(X)return Rj($,X,j);let Z=$.createElement("style");return L0(Z,j),($.head??$.documentElement).appendChild(Z),Z}function Sj(j,$=document){S0(j,$)?.remove()}var fj=2147483645,G0="early",X$="knobs:snapshot",Z$=1,Q$=3000;function G$(j){let $=`html{overflow:hidden!important}
2
+ body>:not(${q0()}){content-visibility:hidden!important}`;if(!j)return $;let J=_j(j);return`${$}
3
+ html::after{content:"";position:fixed;inset:0;z-index:${fj-1};background:${J1(J.srgb)};pointer-events:none}
4
+ @media (color-gamut:p3){html::after{background:${J1(J.p3)}}}`}function B$(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 Tj=/^rgb\(\d{1,3}, \d{1,3}, \d{1,3}\)$/;function V$(j){if(typeof j!=="object"||j===null)return null;let $=(P)=>Reflect.get(j,P),J=$("background"),X=$("scheme"),Z=$("host"),Q=[$("dark"),$("canBack"),$("canForward")];if(typeof J!=="string"||!Tj.test(J))return null;if(X!=="light"&&X!=="dark"||typeof Z!=="string")return null;let[G,B,V]=Q;if(typeof G!=="boolean"||typeof B!=="boolean")return null;if(typeof V!=="boolean")return null;let W=(P)=>{let z=$(P);return typeof z==="string"&&Tj.test(z)?z:J},K=W("top"),C=W("bottom"),H=$("header");if(typeof H!=="boolean")return null;return{background:J,top:K,bottom:C,header:H,footer:$("footer")===!0,under:[],dark:G,scheme:X,host:Z,canBack:B,canForward:V}}function W$(j,$){try{let J=R(f("session"),X$);if(!J)return null;let X=JSON.parse(J);if(typeof X!=="object"||X===null||O(X,Z$))return null;let Z=Reflect.get(X,"key"),Q=Reflect.get(X,"css"),G=Reflect.get(X,"html"),B=V$(Reflect.get(X,"look"));if(Z!==B$(j,$)||typeof Q!=="string")return null;if(typeof G!=="string"||!B)return null;return{key:Z,css:Q,html:G,look:B}}catch{return null}}function Y$(){for(let j of Array.from(document.querySelectorAll(q0(G0))))j.remove();Sj(G0)}function Ej(j){if(!a1(j)||!document.head)return;let $=Aj(G0);$.textContent=G$(r1(j)?null:j.mat),window.setTimeout(Y$,Q$);let J=W$(j,window);if(!J)return;let X=document.createElement("div");L0(X,G0),X.style.cssText=`position:fixed;inset:0;z-index:${fj}`;let Z=X.attachShadow({mode:"open"});Z.innerHTML=J.html;for(let B of Array.from(Z.querySelectorAll("[style]")))B.style.cssText=B.getAttribute("style")??"";xj(Z,J.css);let Q=()=>{if(S0(G0)!==$)return!0;if(!document.body)return!1;return document.body.append(X),!0};if(Q())return;let G=new MutationObserver(()=>{if(Q())G.disconnect()});G.observe(document.documentElement,{childList:!0})}var Z1="knobs:scroll",kj=1,K$=1e4,P$=2000,H$=1e4,C$=20,bj=["wheel","touchstart","keydown","mousedown"];function wj(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 z$(j){if(!j)return null;let $;try{$=JSON.parse(j)}catch{return null}if(typeof $!=="object"||$===null||O($,kj))return null;let J=Reflect.get($,"at");if(typeof J!=="number")return null;let X={at:J},Z=wj(Reflect.get($,"page")),Q=wj(Reflect.get($,"frame"));if(Z)X.page=Z;if(Q)X.frame=Q;return X}function M$(j,$){let J=$-j;return!(J>=0&&J<K$)}function U$(j,$,J,X){if(!j||M$(j.at,X))return{place:null,rest:null};let Z=j[$],Q=$==="page"?"frame":"page",G=j[Q],B=G?{at:j.at,[Q]:G}:null;if(!Z||Z.path!==J)return{place:null,rest:B};return{place:{x:Z.x,y:Z.y},rest:B}}function I$(j,$){let{target:J}=j,X=Math.abs($.x-J.x)<=1&&Math.abs($.y-J.y)<=1,Z=j.puts>=C$;if($.now-j.start>=H$||j.loadedAt!==null&&$.now-j.loadedAt>=P$)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 F$(j,$,J=N){let X={target:$,start:J(),loadedAt:null,puts:0},Z=!1,Q=()=>{Z=!0;for(let B of bj)j.removeEventListener(B,Q,!0)},G=()=>{if(Z)return;let B=J();if(X.loadedAt===null&&j.document.readyState==="complete")X.loadedAt=B;let V=j.document.documentElement,W=I$(X,{x:j.scrollX,y:j.scrollY,maxX:V?V.scrollWidth-V.clientWidth:0,maxY:V?V.scrollHeight-V.clientHeight:0,now:B});if(W==="put"||W==="last")X.puts++,j.scrollTo({left:$.x,top:$.y,behavior:"instant"});if(W==="last"||W==="done")Q();else j.requestAnimationFrame(G)};for(let B of bj)j.addEventListener(B,Q,!0);G()}function gj(){if(typeof window>"u")return;let j=null;try{let $=f("session"),J=R($,Z1);if(!$||J===null)return;let X=x()?"frame":"page",{place:Z,rest:Q}=U$(z$(J),X,window.location.pathname,N());if(Q)i($,Z1,JSON.stringify(t(Q,kj)));else l($,Z1);j=Z}catch{return}if(j)F$(window,j)}var _$={brand:"Not/A)Brand",version:"24.0.0.0"};function uj(j){return j.split(".")[0]??j}function T0(j,$=!1){let J=`Chrome/${uj("154.0.8037.98")}.0.0.0 ${$?"Mobile ":""}Safari/537.36`;return`Mozilla/5.0 (${j}) AppleWebKit/537.36 (KHTML, like Gecko) ${J}`}function B0(j,$){let J=[{brand:"Chromium",version:"154.0.8037.98"},_$,...j?[j]:[]];return{brands:J.map(({brand:X,version:Z})=>({brand:X,version:uj(Z)})),hints:{...$,fullVersionList:J,uaFullVersion:j?.version??"154.0.8037.98"}}}var Q1={brand:"Google Chrome",version:"154.0.8037.98"},cj={model:"",bitness:"64"},mj={...cj,platformVersion:"19.0.0",architecture:"x86"},vj="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",L$=[{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:T0("Linux; Android 10; K",!0),platform:"Linux armv81",vendor:"Google Inc.",mobile:!0,uaPlatform:"Android",maxTouchPoints:5,...B0(Q1,{platformVersion:"16.0.0",model:"Pixel 10",architecture:"",bitness:""})},{id:"ipad-safari",label:"iPad Safari",userAgent:vj,platform:"MacIntel",vendor:"Apple Computer, Inc.",mobile:!1,brands:[],uaPlatform:"iOS",maxTouchPoints:5},{id:"mac-safari",label:"Mac Safari",userAgent:vj,platform:"MacIntel",vendor:"Apple Computer, Inc.",mobile:!1,brands:[],uaPlatform:"macOS",maxTouchPoints:0},{id:"mac-chrome",label:"Mac Chrome",userAgent:T0("Macintosh; Intel Mac OS X 10_15_7"),platform:"MacIntel",vendor:"Google Inc.",mobile:!1,uaPlatform:"macOS",maxTouchPoints:0,...B0(Q1,{...cj,platformVersion:"26.7.1",architecture:"arm"})},{id:"windows-chrome",label:"Windows Chrome",userAgent:T0("Windows NT 10.0; Win64; x64"),platform:"Win32",vendor:"Google Inc.",mobile:!1,uaPlatform:"Windows",maxTouchPoints:0,...B0(Q1,mj)},{id:"windows-edge",label:"Windows Edge",userAgent:`${T0("Windows NT 10.0; Win64; x64")} Edg/154.0.4258.53`,platform:"Win32",vendor:"Google Inc.",mobile:!1,uaPlatform:"Windows",maxTouchPoints:0,...B0({brand:"Microsoft Edge",version:"154.0.4258.53"},mj)},{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,...B0(null,{platformVersion:"6.0.1",model:"Nexus 5X",architecture:"",bitness:""})}];function dj(j){return L$.find(($)=>$.id===j)}function q$(j){if(j.preset==="custom")return j.custom.trim();return dj(j.preset)?.userAgent??""}function N$(j){return j.replace(/^Mozilla\//,"")}var ij=["userAgent","appVersion","platform","vendor","maxTouchPoints","userAgentData"],hj=Symbol.for("devknobs.ua");function D$(j){return typeof j==="object"&&j!==null&&"originals"in j}function lj(j){let $=Reflect.get(j,hj);if(D$($))return $;let J={originals:null};return Reflect.set(j,hj,J),J}function nj(j){let $=Reflect.get(j,"Navigator");return typeof $==="function"?$.prototype:null}function y(j,$,J){Object.defineProperty(j,$,{configurable:!0,enumerable:!0,get:()=>J})}function G1(j,$,J){let X=j.originals?.get(J);if(X)Object.defineProperty($,J,X);else Reflect.deleteProperty($,J)}function yj(j){return j.map(({brand:$,version:J})=>({brand:$,version:J}))}var O$={brands:[],mobile:!1,uaPlatform:""};function pj(j,$){let J=Object.freeze(j.brands.map((V)=>Object.freeze({...V}))),X=()=>({brands:yj(J),mobile:j.mobile,platform:j.uaPlatform}),Z=j.hints,Q=()=>({architecture:Z?.architecture??"",bitness:Z?.bitness??"",fullVersionList:yj(Z?.fullVersionList??[]),model:Z?.model??"",platformVersion:Z?.platformVersion??"",uaFullVersion:Z?.uaFullVersion??""}),G=Reflect.get($,"NavigatorUAData"),B=typeof G==="function"?G.prototype:Object.prototype;return Object.create(B,{brands:{enumerable:!0,get:()=>J},mobile:{enumerable:!0,get:()=>j.mobile},platform:{enumerable:!0,get:()=>j.uaPlatform},getHighEntropyValues:{value:(V)=>{try{let W=X(),K=Q();for(let C of Array.from(V,String))if(Object.hasOwn(K,C))W[C]=K[C];return Promise.resolve(W)}catch(W){return Promise.reject(W)}}},toJSON:{value:X}})}function sj(j,$=globalThis){let J=nj($),X=j.preset==="custom"?void 0:dj(j.preset),Z=q$(j);if(!J||Z===""){R$($);return}let Q=lj($);if(Q.originals??=new Map(ij.map((G)=>[G,Object.getOwnPropertyDescriptor(J,G)])),y(J,"userAgent",Z),y(J,"appVersion",X?.appVersion??N$(Z)),!X){for(let G of["platform","vendor","maxTouchPoints"])G1(Q,J,G);if(Q.originals.get("userAgentData"))y(J,"userAgentData",pj(O$,$));else G1(Q,J,"userAgentData");return}if(y(J,"platform",X.platform),y(J,"vendor",X.vendor),y(J,"maxTouchPoints",X.maxTouchPoints),X.brands.length>0)y(J,"userAgentData",pj(X,$));else Reflect.deleteProperty(J,"userAgentData")}function R$(j=globalThis){let $=lj(j),J=nj(j);if(!$.originals)return;if(J)for(let X of ij)G1($,J,X);$.originals=null}function P1(){if(Object.hasOwn(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"))return;Promise.resolve().then(() => B3())}var k$=Symbol.for("devknobs.owner");function V3(j){return typeof Reflect.get(j,k$)==="function"}function g$(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 S(j,$,J,X){let Z=Reflect.get($,J);if(typeof Z!=="function")return;let Q=Object.hasOwn($,J),G=X(Z);if(g$(G,Z),Reflect.set($,J,G))j.push({target:$,key:J,original:Z,value:G,own:Q})}function W3(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 H1=300,p=65536,C1=200,Y3=4096;var m$=/^text\/|[/+](json|xml|javascript|ecmascript|x-www-form-urlencoded|graphql|yaml)\b|\/svg/i;function z1(j){return m$.test(j)}var W0=/�+$/;function k(j,$,J=p){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(W0,""),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(W0,""):Z,size:null,truncated:!0,type:$}}function V0(j,$,J){return{kind:j,text:"",size:$,truncated:!1,type:J}}function v$(j,$){let J=[],X=0;for(let[Z,Q]of j){let G=typeof Q==="string"?`${Z}=${Q}`:`${Z}=(file ${Q.name}, ${Q.type||"no type"}, ${Q.size} bytes)`;if(J.push(G),X+=G.length+1,X>$)break}return J.join(`
5
+ `)}function u(j,$){return typeof j==="function"&&$ instanceof j}function E0(j,$,J=p){if(j===void 0||j===null)return null;if(typeof j==="string")return k(j,$||"text/plain;charset=UTF-8",J);if(u(globalThis.URLSearchParams,j))return k(String(j),$||"application/x-www-form-urlencoded;charset=UTF-8",J);if(u(globalThis.FormData,j))return{...k(v$(j,J),$||"multipart/form-data",J),kind:"form",size:null};if(u(globalThis.Blob,j))return V0("binary",j.size,$||j.type||"Blob");if(u(globalThis.ArrayBuffer,j))return V0("binary",j.byteLength,$||"ArrayBuffer");if(ArrayBuffer.isView(j))return V0("binary",j.byteLength,$||"ArrayBufferView");if(u(globalThis.ReadableStream,j))return V0("stream",null,$);return null}function c(j,$,J){return V0(j,$,J)}var M1=2000;async function K3(j,$,J=p,X=M1){if(!j.body){let K=await j.blob(),C=await K.slice(0,J).text(),H=K.size>J;return{record:{kind:"text",text:H?C.replace(W0,""):C,size:K.size,truncated:H,type:$},complete:!0}}let Z=j.body.getReader(),Q=new TextDecoder,G="",B=0,V=!1,W=setTimeout(()=>{V=!0,Z.cancel().catch(()=>{})},X);try{for(;;){let{done:K,value:C}=await Z.read();if(K)break;let H=J-B;if(C.byteLength>H)return G+=Q.decode(C.subarray(0,H)),Z.cancel().catch(()=>{}),{record:{kind:"text",text:G.replace(W0,""),size:null,truncated:!0,type:$},complete:!1};G+=Q.decode(C,{stream:!0}),B+=C.byteLength}}finally{clearTimeout(W)}if(G+=Q.decode(),V)return{record:{kind:"text",text:G.replace(W0,""),size:null,truncated:!0,timedOut:!0,type:$},complete:!1};return{record:{kind:"text",text:G,size:B,truncated:!1,type:$},complete:!0}}function g(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 U1(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 P3(j,$,J,X){return{active:X,start(Z,Q){let G=j.nextId();return j.put({...U1(G,Z,J,$,$.now()),method:Q.method,url:Q.url,requestHeaders:Q.headers,requestBody:Q.body,initiator:Q.initiator,referrerPolicy:Q.referrerPolicy??""}),G},set:(Z,Q)=>j.update(Z,Q),responded(Z,Q){let G=j.get(Z)?.timing;if(!G)return;let B=G.response??$.now()-G.at;j.update(Z,{...Q,timing:{...G,response:B}})},ended(Z,Q){let G=j.get(Z)?.timing;if(!G)return;let B=G.duration??$.now()-G.at;j.update(Z,{...Q,timing:{...G,end:G.start+B,duration:B}})},message(Z,Q){let G=j.get(Z)?.messages;if(!G)return;let{text:B,truncated:V}=k(Q.data,"",Y3),W={...Q,data:B,truncated:V,time:$.origin+$.now()};j.update(Z,{messages:[...G.slice(1-C1),W]})}}}var h$=/^at |@/;function r(j,$){if(typeof j!=="string")return"";let J=j.split(`
6
+ `).map((X)=>X.trim()).filter((X)=>X!=="");if(J[0]!==void 0&&!h$.test(J[0]))J.shift();return J.slice($,$+12).join(`
7
+ `)}var y$=new Set(["open","error"]);function H3(j,$){let J=Reflect.get(globalThis,"EventSource");if(typeof J!=="function")return;let X=new WeakMap,Z=EventTarget.prototype.addEventListener;function Q(B,V){let W=g(B.url),K=()=>$.start("eventsource",{method:"GET",url:W,headers:[],body:null,initiator:V}),C=(P,z)=>{Z.call(B,P,(M)=>{try{z(M)}catch{}})},H={id:K(),open:!1,types:new Set,listen(P){if(H.types.has(P)||y$.has(P))return;H.types.add(P),C(P,(z)=>{if(H.id===null)return;let M=Reflect.get(z,"data"),q=Reflect.get(z,"lastEventId");$.message(H.id,{type:z.type,data:String(M??""),id:typeof q==="string"?q:""})})}};X.set(B,H),H.listen("message"),C("open",()=>{if(H.id===null){if(!$.active())return;H.id=K()}H.open=!0,$.responded(H.id,{status:200,state:"ok",contentType:"text/event-stream"})}),C("error",()=>{if(H.id===null)return;$.ended(H.id,H.open?{}:{state:"failed",error:"EventSource failed to connect"}),H.id=null,H.open=!1})}S(j,globalThis,"EventSource",(B)=>{function V(...W){if(!new.target)return Reflect.apply(B,this,W);let K=Reflect.construct(B,W,new.target);try{if($.active())Q(K,r(Error().stack,1))}catch{}return K}return V.prototype=B.prototype,V});let G=Reflect.get(J,"prototype");if(typeof G!=="object"||G===null)return;S(j,G,"addEventListener",()=>function(...B){try{if(typeof B[0]==="string")X.get(this)?.listen(B[0])}catch{}return Reflect.apply(Reflect.get(Object.getPrototypeOf(G),"addEventListener"),this,B)}),S(j,G,"close",(B)=>function(...V){try{let W=X.get(this);if(W&&W.id!==null)$.ended(W.id,W.open?{}:{state:"aborted"}),W.id=null}catch{}return B.apply(this,V)})}var C3=2,Y0=Symbol.for("devknobs.requests"),z3=Symbol.for("devknobs.quiet");function p$(j){return typeof j==="object"&&j!==null&&Reflect.get(j,"version")===2}function b0(j=globalThis){try{let $=Reflect.get(j,Y0);return p$($)?$:null}catch{return null}}function I1(j){if(j)Reflect.set(globalThis,Y0,j);else Reflect.deleteProperty(globalThis,Y0)}function M3(){let j=Reflect.get(globalThis,Y0);if(typeof j!=="object"||j===null)return;let $=Reflect.get(j,"uninstall");try{if(typeof $==="function")$.call(j)}catch{}Reflect.deleteProperty(globalThis,Y0)}function u$(j){return typeof j==="object"&&j!==null&&"url"in j&&"method"in j&&"headers"in j&&"clone"in j}function K0(j,$){return typeof j==="object"&&j!==null?Reflect.get(j,$):void 0}function c$(j){try{return typeof j==="object"&&j!==null&&Reflect.get(j,z3)===!0}catch{return!1}}function U3(j){let $=[];if(typeof j!=="object"||j===null)return $;if(u(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 I3(j){return j instanceof Error?`${j.name}: ${j.message}`:String(j)}function F3(j){return typeof j==="object"&&j!==null&&Reflect.get(j,"aborted")===!0}function d$(j,$,J){if($==="GET"||$==="HEAD")return null;if(j.body===null||j.bodyUsed)return null;return c(z1(J)?"stream":"binary",null,J)}function i$(j,$){let J=u$(j)?j:null,X=String(K0($,"method")??J?.method??"GET").toUpperCase(),Z=K0($,"headers"),Q=U3(Z===void 0?J?.headers:Z),G=m(Q,"content-type"),B=K0($,"body"),V=J&&(B===void 0||B===null)?d$(J,X,G):null,W=E0(B,G)??V,K=String(K0($,"referrerPolicy")??J?.referrerPolicy??"");return{request:{method:X,url:g(J?J.url:String(j)),headers:Q,body:W,referrerPolicy:K},signal:K0($,"signal")??J?.signal}}function l$(j){let $=Number.parseInt(m(j,"content-length"),10);return Number.isFinite($)?$:null}function n$(j){return/^text\/event-stream\b/i.test(j.trim())}function s$(j,$,J,X,Z){let Q=U3(J.headers),G=m(Q,"content-type"),B=J.type==="opaque"||J.type==="opaqueredirect";if(j.responded($,{status:J.status,statusText:J.statusText,state:J.ok||B?"ok":"failed",responseHeaders:Q,contentType:G,redirected:J.redirected,finalUrl:J.url||null}),B)j.set($,{responseBody:c("opaque",null,"")});else if(J.body===null)j.ended($,{});else if(n$(G))j.set($,{responseBody:c("stream",null,G)});else if(!z1(G))j.set($,{responseBody:c("binary",l$(Q),G)});else K3(J.clone(),G,void 0,Z).then(({record:V,complete:W})=>{let K=V.size===0?null:V;if(W)j.ended($,{responseBody:K});else j.set($,{responseBody:K})},(V)=>{j.ended($,{state:F3(X)?"aborted":"failed",error:I3(V)})})}function _3(j,$,J=M1){return function(){let Z=arguments;if(!$.active()||c$(Z[1]))return Reflect.apply(j,this,Z);let Q=null,G;try{let W=i$(Z[0],Z[1]);G=W.signal,Q=$.start("fetch",{...W.request,initiator:r(Error().stack,1)})}catch{}let B=Reflect.apply(j,this,Z);if(Q===null)return B;let V=Q;return B.then((W)=>{try{s$($,V,W,G,J)}catch{}return W},(W)=>{try{$.ended(V,{state:F3(G)?"aborted":"failed",error:I3(W)})}catch{}throw W})}}var F1=250,P0=5;function _(j,$){let J=Reflect.get(j,$);return typeof J==="number"&&Number.isFinite(J)?J:0}function d(j,$){let J=Reflect.get(j,$);return typeof J==="string"?J:""}function L3(j){return j.split("#",1)[0]??j}function o$(j){try{return new URL(j).origin}catch{return""}}function q3(j,$){let J=_(j,"transferSize"),X=_(j,"encodedBodySize"),Z=_(j,"decodedBodySize"),Q=J+X+Z===0&&o$(j.name)!==$;return{transfer:J,encoded:X,decoded:Z,hidden:Q}}function N3(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 D3(j){return _(j,"responseStatus")||null}function O3(j,$,J,X,Z){let Q=U1($,j.entryType==="navigation"?"navigation":"resource",J,X,j.startTime),G=D3(j),B=_(j,"responseEnd")||j.startTime+j.duration,V=_(j,"responseStart"),W=Math.max(0,B-j.startTime);return{...Q,url:j.name,state:G!==null&&G>=400?"failed":"ok",status:G,contentType:d(j,"contentType"),sizes:q3(j,Z),timing:{...Q.timing,response:V>0?Math.max(0,V-j.startTime):null,end:Q.timing.start+W,duration:W},phases:N3(j),initiatorType:d(j,"initiatorType")||j.entryType,protocol:d(j,"nextHopProtocol")}}var a$={fetch:"fetch",xmlhttprequest:"xhr",other:"eventsource"};function R3(j,$,J){let X=a$[d($,"initiatorType")];if(!X)return null;let Z=L3($.name),Q=_($,"responseEnd")||$.startTime+$.duration,G=null;for(let B of j){if(B.kind!==X||B.source!==J||B.sizes!==null)continue;let V=$.startTime-B.timing.at;if(!(X==="eventsource"&&V<=P0&&B.timing.at<=Q+P0)&&(V<-P0||V>F1)||L3(B.url)!==Z)continue;if(!G||Math.abs(V)<Math.abs($.startTime-G.timing.at))G=B}return G}function x3(j,$,J){let X=_($,"responseEnd")||$.startTime+$.duration,Z=Math.max(0,X-j.timing.at);return{sizes:q3($,J),phases:N3($),protocol:d($,"nextHopProtocol"),initiatorType:d($,"initiatorType"),status:j.status||D3($),contentType:j.contentType||d($,"contentType"),timing:{...j.timing,end:j.timing.start+Z,duration:Z}}}var r$=50;function t$(j){let $=setTimeout(j,r$);return()=>clearTimeout($)}function A3(j){let $=j.schedule??t$,J=[],X=new Map,Z=new Set,Q=new Set,G=null,B=!1,V=Number.NEGATIVE_INFINITY,W=0;function K(){if(G?.(),G=null,Q.size===0&&!B)return;let P=[];for(let z of Q){let M=X.get(z);if(M)P.push(M)}Q.clear(),B=!1;for(let z of Array.from(Z))z(P)}function C(P){if(Z.size===0)return;if(P===null)B=!0;else Q.add(P);G??=$(K)}function H(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>H1){let q=J.shift();if(q)X.delete(q.id);if(q===P)return}}C(P.id)}return{entries:()=>J,get:(P)=>X.get(P),nextId:()=>`${j.seed}-${++W}`,put:H,update(P,z){let M=X.get(P);if(M)H({...M,...z,id:P})},clear(){J=[],X.clear(),Q.clear(),V=j.now(),C(null)},subscribe(P){return Z.add(P),()=>{Z.delete(P)}},flush:K,close(){G?.(),G=null,J=[],X.clear(),Q.clear(),Z.clear()}}}var e$=4*p;function j2(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 S3(j,$){let J=j2(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 $2(j){if(typeof j!=="object"||j===null)return null;let $=Reflect.get(j,"byteLength")??Reflect.get(j,"size");return typeof $==="number"?$:null}function J2(j,$,J){let X=j.responseType,Z;if(X===""||X==="text")Z=k(j.responseText,$);else if(X!=="json")Z=c("binary",$2(j.response)??J,$||X);else if(J!==null&&J>e$)Z={kind:"text",text:"",size:J,truncated:!0,type:$};else Z=k(JSON.stringify(j.response)??"",$);return Z.size===0?null:Z}var T3=["error","abort","timeout"];function X2(j,$,J,X){let Z=null,Q=null,G=!1,B=null,V=()=>{j.removeEventListener("readystatechange",K,!0),j.removeEventListener("progress",C,!0);for(let z of T3)j.removeEventListener(z,H,!0);j.removeEventListener("loadend",P,!0)};function W(){G=!0,V();try{let z=S3(j,J),M=j.status,q=Z??(M===0||M>=400?"failed":"ok"),C0=Number.parseInt(m(z.responseHeaders??[],"content-length"),10),z0=B??(Number.isFinite(C0)?C0:null),w0=Z?null:J2(j,z.contentType??"",z0);X.ended($,{...z,status:M===0?null:M,state:q,error:Q,responseBody:w0})}catch{X.ended($,{state:Z??"failed",error:Q})}}function K(){try{if(j.readyState===2)X.responded($,S3(j,J))}catch{}if(j.readyState===4&&j.status!==0)W()}function C(z){let M=Reflect.get(z,"loaded");if(typeof M==="number")B=M}function H(z){Z=z.type==="abort"?"aborted":"failed",Q=z.type==="abort"?null:z.type}function P(z){if(j.readyState!==4)return;C(z),W()}j.addEventListener("readystatechange",K,!0),j.addEventListener("progress",C,!0);for(let z of T3)j.addEventListener(z,H,!0);return j.addEventListener("loadend",P,!0),()=>{if(G)return;G=!0,V(),X.ended($,{state:"aborted"})}}function f3(j,$){if(typeof XMLHttpRequest!=="function")return;let J=new WeakMap,X=XMLHttpRequest.prototype;S(j,X,"open",(Z)=>function(...Q){let G=Z.apply(this,Q);try{if(J.get(this)?.drop?.(),J.delete(this),$.active()){let B=String(Q[0]).toUpperCase();J.set(this,{method:B,url:g(String(Q[1])),headers:[],drop:null})}}catch{}return G}),S(j,X,"setRequestHeader",(Z)=>function(...Q){let G=Z.apply(this,Q);return J.get(this)?.headers.push([String(Q[0]),String(Q[1])]),G}),S(j,X,"send",(Z)=>function(...Q){let G=J.get(this);if(!G||!$.active())return Z.apply(this,Q);let B=null;try{let{method:V,url:W,headers:K}=G,C=E0(Q[0],m(K,"content-type")),H=r(Error().stack,1);B=$.start("xhr",{method:V,url:W,headers:[...K],body:C,initiator:H}),G.drop=X2(this,B,W,$)}catch{}try{return Z.apply(this,Q)}catch(V){if(G.drop?.(),G.drop=null,B!==null)$.set(B,{state:"failed",error:String(V)});throw V}})}var Z2=100,H0=typeof performance>"u"?null:performance,E3=H0?H0.now.bind(H0):N;function Q2(){let j=H0?H0.timeOrigin??N()-E3():0;return{now:E3,origin:j}}function G2(j){return g(j).split("#",1)[0]??j}function B2(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 V2(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=A3({seed:Z,now:()=>J.origin+J.now(),schedule:j.schedule}),G=[],B=!0,V=0,W=new Set,K=[],C=P3(Q,J,$,()=>B&&V===0);function H(I,U){let T=G2(I);if(T.startsWith("data:"))return;if(!U)W.add(T);else K=[...K.slice(1-Z2),{url:T,at:J.now()}]}function P(I){if(W.has(I.name))return!0;let U=K.findIndex((T)=>{let q1=I.startTime-T.at;return T.url===I.name&&q1>=-P0&&q1<=F1});if(U<0)return!1;return K.splice(U,1),!0}function z(I){try{if(P(I))return;let U=R3(Q.entries(),I,$);if(U)Q.update(U.id,x3(U,I,X));else Q.put(O3(I,Q.nextId(),$,J,X))}catch{}}function M(){if(typeof PerformanceObserver!=="function")return()=>{};let I=new PerformanceObserver((U)=>{if(B)for(let T of U.getEntries())z(T)});for(let U of["navigation","resource"])try{I.observe({type:U,buffered:!0})}catch{}return()=>I.disconnect()}let q=null;function C0(I){let U=j.above?.()??null;if(U)U.adopt(U===q?I:Q.entries());q=U}function z0(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()}S(G,globalThis,"fetch",(I)=>_3(I,C,j.readFor)),f3(G,C),H3(G,C);let w0=M();if(j.above)Q.subscribe(C0),globalThis.addEventListener?.("pagehide",z0);let L1={version:C3,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(B2(U))},uninstall(){if(B=!1,W3(G),w0(),globalThis.removeEventListener?.("pagehide",z0),Q.close(),b0()===L1)I1(null)}};return L1}function W2(){try{return window.parent===window?null:b0(window.parent)}catch{return null}}function b3(){if(b0())return;M3();let j=typeof window<"u"&&x(),$=typeof location>"u"?"":location.origin;I1(V2({source:j?"frame":"top",clock:Q2(),origin:$,above:j?W2:void 0}))}var Y2="knobs:storage-presets",K2=1,w3=Symbol.for("devknobs.presets");function k3(j){return typeof j==="object"&&j!==null&&!Array.isArray(j)?Object.fromEntries(Object.entries(j)):{}}function _1(j){return Array.isArray(j)?j.map(k3):[]}function P2(){try{let j=JSON.parse(R(f("local"),Y2)??"null");return O(j,K2)?[]:_1(k3(j).presets)}catch{return[]}}function H2(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 C2(j){let $=[];for(let J=0;J<j.length;J++){let X=j.key(J);if(X!==null&&!T1(X))$.push(X)}for(let J of $)j.removeItem(J)}function z2(j,$,J){let X=[];for(let Z of["local","session"])try{let Q=Z==="local"?j.localStorage:j.sessionStorage;if(J)C2(Q);for(let G of _1($[Z]))try{if(typeof G.name==="string"&&typeof G.value==="string")Q.setItem(G.name,G.value)}catch{X.push(String(G.name))}}catch{X.push(`${Z}Storage`)}for(let Z of _1($.cookies))try{if(typeof Z.name==="string"&&typeof Z.value==="string")j.document.cookie=H2(Z)}catch{X.push(String(Z.name))}return X}function g3(){if(typeof window>"u")return 0;let j=Reflect.get(window,w3);if(typeof j==="number")return j;let $=0;try{if(!x())for(let J of P2()){if(J.onLoad!==!0)continue;z2(window,J,J.clearFirst===!0),$++}}catch{}return Reflect.set(window,w3,$),$}g3();if(V3(window))P1();else{let j=n1(),$=x(),J=$&&s1(j.scheme)?"system":j.scheme,{motion:X,contrast:Z,transparency:Q}=j;if(Ij({scheme:J,motion:X,contrast:Z,transparency:Q,touch:$&&A1(j.device)}),R1(j.clock),sj(j.ua),b3(),P1(),!$)Ej(j);gj()}})();
@@ -13,10 +13,14 @@
13
13
  import type { Change, EditKind, EditPlace, EditTarget } from "./log";
14
14
  /** The html edits, by their kind. */
15
15
  export type HtmlKind = Extract<EditKind, "text" | "attr" | "html" | "hide" | "delete" | "move">;
16
- /** The attribute a hidden element carries. devknobs' own, so the tree and a copy leave it out. */
17
- export declare const HIDE_ATTRIBUTE = "data-devknobs-hide";
16
+ /**
17
+ * The attribute a hidden element carries. knobs' own, so the tree and a copy leave it out.
18
+ * Both names are written, but hide is matched and read by the old name only, so an older
19
+ * copy that takes off only `data-devknobs-hide` shows the element again.
20
+ */
21
+ export declare const HIDE_ATTRIBUTE: "data-devknobs-hide";
18
22
  /** What hides an element and all in it, as the browsers' tools hide one: its box keeps its place. */
19
- export declare const HIDE_CSS = "[data-devknobs-hide], [data-devknobs-hide] * { visibility: hidden !important; }";
23
+ export declare const HIDE_CSS: string;
20
24
  /** The node that stands where `node` stood, after edits put others in its place. Null where none does. */
21
25
  export declare function successor(node: Node): Node | null;
22
26
  /**
@@ -41,7 +41,7 @@ export interface Replayed {
41
41
  skipped: Skipped[];
42
42
  }
43
43
  /** Where the edits of a page are kept in `localStorage`, its path after it. */
44
- export declare const EDITS_KEY = "devknobs:edits:";
44
+ export declare const EDITS_KEY = "knobs:edits:";
45
45
  /** The version `EDITS_KEY` keeps. Bump it with a new shape, see stored.ts. */
46
46
  export declare const EDITS_VERSION = 1;
47
47
  /** The most edits kept for a page: the first ones, as a later edit goes on from those before. */
@@ -52,7 +52,7 @@ export declare const MAX_BYTES: number;
52
52
  export declare const MAX_PAGES = 20;
53
53
  /** Why an edit was not made again. */
54
54
  export declare const REASONS: {
55
- readonly invalid: "not an edit devknobs reads";
55
+ readonly invalid: "not an edit knobs reads";
56
56
  readonly missing: "not found on the page";
57
57
  readonly rule: "its rule is not on the page";
58
58
  readonly changed: "the page has another value now";
@@ -5,7 +5,7 @@ import {
5
5
  HTML_MIN,
6
6
  forcedSelector,
7
7
  forcing
8
- } from "./react-2b7725je.js";
8
+ } from "./react-x209et38.js";
9
9
  import"./react-97b5b8j4.js";
10
10
  import {
11
11
  HIDE_ATTRIBUTE,
@@ -30,7 +30,7 @@ import {
30
30
  rulesOf,
31
31
  successor,
32
32
  textEdit
33
- } from "./react-msn10fjb.js";
33
+ } from "./react-4ezjf7mq.js";
34
34
  import {
35
35
  compareSpecificity,
36
36
  edits,
@@ -39,11 +39,11 @@ import {
39
39
  readSavedEdit,
40
40
  specificity,
41
41
  splitList
42
- } from "./react-5ekfj7g3.js";
42
+ } from "./react-w94cfn87.js";
43
43
  import {
44
44
  boxValue,
45
45
  sizeText
46
- } from "./react-wtgvkf6g.js";
46
+ } from "./react-mkafgzqf.js";
47
47
  import {
48
48
  TITLE_MAX,
49
49
  crumbText,
@@ -55,7 +55,7 @@ import {
55
55
  swatchOf,
56
56
  valueParts,
57
57
  variableTip
58
- } from "./react-73reavv4.js";
58
+ } from "./react-4tcwpama.js";
59
59
  import {
60
60
  NEW_RULE_SHEET,
61
61
  cssOff,
@@ -77,13 +77,13 @@ import {
77
77
  valueText,
78
78
  varReferences,
79
79
  variableNames
80
- } from "./react-4phtr2nd.js";
80
+ } from "./react-dg4bjv3j.js";
81
81
  import {
82
82
  elementSelector
83
- } from "./react-5rq7bnsy.js";
83
+ } from "./react-atw9y8ny.js";
84
84
  import {
85
85
  copyText
86
- } from "./react-h9w04skh.js";
86
+ } from "./react-j87bdhhe.js";
87
87
  import {
88
88
  button,
89
89
  el,
@@ -94,31 +94,33 @@ import {
94
94
  segments,
95
95
  toolToggle,
96
96
  toolbar
97
- } from "./react-y9gr8yt2.js";
97
+ } from "./react-rxw73n04.js";
98
98
  import {
99
99
  getState,
100
100
  subscribe
101
- } from "./react-a1r0nr0g.js";
101
+ } from "./react-ppyj3fg2.js";
102
102
  import {
103
103
  isMac
104
- } from "./react-5h7pxnax.js";
104
+ } from "./react-tet7swk2.js";
105
105
  import {
106
106
  comboLabel,
107
107
  isDevknobs,
108
108
  letterMatches,
109
109
  typesInField,
110
110
  withShift
111
- } from "./react-vbk58f9m.js";
111
+ } from "./react-hdneb4v3.js";
112
112
  import {
113
113
  SIDES,
114
114
  boxModel,
115
115
  contentSize,
116
116
  ownInline
117
- } from "./react-0r5418av.js";
117
+ } from "./react-rbmk30xk.js";
118
118
  import"./react-fp73vhyd.js";
119
119
  import {
120
- __require
121
- } from "./react-t2qnewz2.js";
120
+ __require,
121
+ isMarked,
122
+ ownSelector
123
+ } from "./react-4qn9vsjw.js";
122
124
 
123
125
  // src/edit/text.ts
124
126
  var MARKUP_KINDS = new Set(["text", "attr", "html", "hide", "delete", "move"]);
@@ -305,7 +307,7 @@ function promptText(edits2) {
305
307
  var COPIED = "copied";
306
308
  var NOT_COPIED = "could not copy";
307
309
  var COPIED_FOR = 1200;
308
- var AGENT_NOTE = "agents read and apply edits: devknobs.edits() / setEdits()";
310
+ var AGENT_NOTE = "agents read and apply edits: knobs.edits() / setEdits()";
309
311
  function keptLine(kept, missed) {
310
312
  const made = `${kept} ${kept === 1 ? "edit" : "edits"} kept from before the reload`;
311
313
  return missed > 0 ? `${made}, ${missed} could not be found` : made;
@@ -480,7 +482,7 @@ var found = new WeakMap;
480
482
  var locateSource = (element) => {
481
483
  let pending = found.get(element);
482
484
  if (!pending) {
483
- pending = import("./context-eawqn680.js").then(({ grabEntry }) => grabEntry(element)).then(({ source }) => {
485
+ pending = import("./context-2r76ext7.js").then(({ grabEntry }) => grabEntry(element)).then(({ source }) => {
484
486
  if (!source || source.origin !== "app")
485
487
  return null;
486
488
  return source.lineNumber ? `${source.filePath}:${source.lineNumber}` : source.filePath;
@@ -1617,7 +1619,7 @@ function isFrame(element) {
1617
1619
  return element.namespaceURI === "http://www.w3.org/1999/xhtml" && (element.localName === "head" || element.localName === "body");
1618
1620
  }
1619
1621
  function holdsOwn(element) {
1620
- return element.querySelector("[data-devknobs]") !== null;
1622
+ return element.querySelector(ownSelector()) !== null;
1621
1623
  }
1622
1624
  function actionsFor(row) {
1623
1625
  if (!row || row.pseudo !== null)
@@ -2784,7 +2786,7 @@ function isOwn(record) {
2784
2786
  if (record.type !== "childList")
2785
2787
  return false;
2786
2788
  const nodes = [...Array.from(record.addedNodes), ...Array.from(record.removedNodes)];
2787
- return nodes.length > 0 && nodes.every((node) => isElement2(node) && node.hasAttribute("data-devknobs"));
2789
+ return nodes.length > 0 && nodes.every((node) => isElement2(node) && isMarked(node));
2788
2790
  }
2789
2791
  function knobsOf(state) {
2790
2792
  return JSON.stringify({ ...state, panel: null });
@@ -4,7 +4,7 @@ import {
4
4
  HTML_MIN,
5
5
  forcedSelector,
6
6
  forcing
7
- } from "./index-dxga6h10.js";
7
+ } from "./index-9targr2f.js";
8
8
  import"./index-58jdczmj.js";
9
9
  import {
10
10
  HIDE_ATTRIBUTE,
@@ -29,7 +29,7 @@ import {
29
29
  rulesOf,
30
30
  successor,
31
31
  textEdit
32
- } from "./index-69fvtkcm.js";
32
+ } from "./index-dvtbh3c8.js";
33
33
  import {
34
34
  compareSpecificity,
35
35
  edits,
@@ -38,11 +38,11 @@ import {
38
38
  readSavedEdit,
39
39
  specificity,
40
40
  splitList
41
- } from "./index-df35z48z.js";
41
+ } from "./index-n31pn4ax.js";
42
42
  import {
43
43
  boxValue,
44
44
  sizeText
45
- } from "./index-ymqm185m.js";
45
+ } from "./index-rps0bdq9.js";
46
46
  import {
47
47
  TITLE_MAX,
48
48
  crumbText,
@@ -54,7 +54,7 @@ import {
54
54
  swatchOf,
55
55
  valueParts,
56
56
  variableTip
57
- } from "./index-za4ppxay.js";
57
+ } from "./index-6t0w5s7p.js";
58
58
  import {
59
59
  NEW_RULE_SHEET,
60
60
  cssOff,
@@ -76,13 +76,13 @@ import {
76
76
  valueText,
77
77
  varReferences,
78
78
  variableNames
79
- } from "./index-a8ffw5ft.js";
79
+ } from "./index-szd9bddn.js";
80
80
  import {
81
81
  elementSelector
82
- } from "./index-t4kssacm.js";
82
+ } from "./index-abwqw8jh.js";
83
83
  import {
84
84
  copyText
85
- } from "./index-ztnjefrh.js";
85
+ } from "./index-585hs9tp.js";
86
86
  import {
87
87
  button,
88
88
  el,
@@ -93,31 +93,33 @@ import {
93
93
  segments,
94
94
  toolToggle,
95
95
  toolbar
96
- } from "./index-20bc9yrj.js";
96
+ } from "./index-vmz7htwn.js";
97
97
  import {
98
98
  getState,
99
99
  subscribe
100
- } from "./index-x3sxssbs.js";
100
+ } from "./index-a23nv5j4.js";
101
101
  import {
102
102
  isMac
103
- } from "./index-s6yzsvs4.js";
103
+ } from "./index-bgzyc7rz.js";
104
104
  import {
105
105
  comboLabel,
106
106
  isDevknobs,
107
107
  letterMatches,
108
108
  typesInField,
109
109
  withShift
110
- } from "./index-whehz74d.js";
110
+ } from "./index-vhda420r.js";
111
111
  import {
112
112
  SIDES,
113
113
  boxModel,
114
114
  contentSize,
115
115
  ownInline
116
- } from "./index-jfv7vavj.js";
116
+ } from "./index-311fys81.js";
117
117
  import"./index-a974q3aa.js";
118
118
  import {
119
- __require
120
- } from "./index-5tv6sr74.js";
119
+ __require,
120
+ isMarked,
121
+ ownSelector
122
+ } from "./index-3dcgysws.js";
121
123
 
122
124
  // src/edit/text.ts
123
125
  var MARKUP_KINDS = new Set(["text", "attr", "html", "hide", "delete", "move"]);
@@ -304,7 +306,7 @@ function promptText(edits2) {
304
306
  var COPIED = "copied";
305
307
  var NOT_COPIED = "could not copy";
306
308
  var COPIED_FOR = 1200;
307
- var AGENT_NOTE = "agents read and apply edits: devknobs.edits() / setEdits()";
309
+ var AGENT_NOTE = "agents read and apply edits: knobs.edits() / setEdits()";
308
310
  function keptLine(kept, missed) {
309
311
  const made = `${kept} ${kept === 1 ? "edit" : "edits"} kept from before the reload`;
310
312
  return missed > 0 ? `${made}, ${missed} could not be found` : made;
@@ -479,7 +481,7 @@ var found = new WeakMap;
479
481
  var locateSource = (element) => {
480
482
  let pending = found.get(element);
481
483
  if (!pending) {
482
- pending = import("./context-vd2xep5t.js").then(({ grabEntry }) => grabEntry(element)).then(({ source }) => {
484
+ pending = import("./context-h1bdt8w3.js").then(({ grabEntry }) => grabEntry(element)).then(({ source }) => {
483
485
  if (!source || source.origin !== "app")
484
486
  return null;
485
487
  return source.lineNumber ? `${source.filePath}:${source.lineNumber}` : source.filePath;
@@ -1616,7 +1618,7 @@ function isFrame(element) {
1616
1618
  return element.namespaceURI === "http://www.w3.org/1999/xhtml" && (element.localName === "head" || element.localName === "body");
1617
1619
  }
1618
1620
  function holdsOwn(element) {
1619
- return element.querySelector("[data-devknobs]") !== null;
1621
+ return element.querySelector(ownSelector()) !== null;
1620
1622
  }
1621
1623
  function actionsFor(row) {
1622
1624
  if (!row || row.pseudo !== null)
@@ -2783,7 +2785,7 @@ function isOwn(record) {
2783
2785
  if (record.type !== "childList")
2784
2786
  return false;
2785
2787
  const nodes = [...Array.from(record.addedNodes), ...Array.from(record.removedNodes)];
2786
- return nodes.length > 0 && nodes.every((node) => isElement2(node) && node.hasAttribute("data-devknobs"));
2788
+ return nodes.length > 0 && nodes.every((node) => isElement2(node) && isMarked(node));
2787
2789
  }
2788
2790
  function knobsOf(state) {
2789
2791
  return JSON.stringify({ ...state, panel: null });